Sample Header Ad - 728x90

Android Enthusiasts

Q&A for enthusiasts and power users of the Android operating system

Latest Questions

2 votes
2 answers
704 views
Does Android support a default terminal application?
##### Premise Considering that: 1. Both `plasma-systemsettings.fc41`'s `kcm_componentchooser` and 1. `windows.immersivecontrolpanel_10.0.8.1000` support a default terminal, and the availability of brilliant terminals like Termux for AOSP ...this seems like it would be an obvious feature (at least co...
##### Premise Considering that: 1. Both plasma-systemsettings.fc41's kcm_componentchooser and 1. windows.immersivecontrolpanel_10.0.8.1000 support a default terminal, and the availability of brilliant terminals like Termux for AOSP ...this seems like it would be an obvious feature (at least configurable via com.android.settings.Settings$DevelopmentSettingsDashboardActivity). ##### Problem However, I don't see any obvious method exposed via com.google.android.permissioncontroller/com.android.permissioncontroller.role.ui.DefaultAppListActivity's GUI: Screenshot Undermentioned is a screenshot of how it is done in KDE Plasma Version: 6.3.2's kcmshell6 kcm_componentchooser: Screenshot ##### Query Is this provided by AOSP ≤ V14? Is it expected to be provided by ≥ V15?
RokeJulianLockhart (556 rep)
Jun 7, 2023, 11:48 PM • Last activity: Jun 5, 2025, 05:43 PM
27 votes
2 answers
66860 views
Running own executable on Android shell
I need a specific command line tool and I have made a C program in my Linux shell. I have compiled the program with an ARM cross-compiler. I have then moved the program into the Android file system and tried to run it. The output is permission denied. What do I have to do, in order to run my own com...
I need a specific command line tool and I have made a C program in my Linux shell. I have compiled the program with an ARM cross-compiler. I have then moved the program into the Android file system and tried to run it. The output is permission denied. What do I have to do, in order to run my own compiled programs in Android file system?
Nuno Santos (371 rep)
May 16, 2013, 10:41 AM • Last activity: May 28, 2025, 11:23 PM
-1 votes
1 answers
5709 views
Opening CMD app on Android
I have got a software that I use on my pc, it is some kind of console that runs on CMD. Can I port or open the software in my phone? The file extension in the software is .exe but once I open it it opens Command Prompt, so I believe its a CMD app. Can Terminal Emulator open it? If so how do I do it?
I have got a software that I use on my pc, it is some kind of console that runs on CMD. Can I port or open the software in my phone? The file extension in the software is .exe but once I open it it opens Command Prompt, so I believe its a CMD app. Can Terminal Emulator open it? If so how do I do it?
Sh.z (1 rep)
Jan 26, 2017, 05:51 PM • Last activity: Apr 3, 2025, 11:19 PM
0 votes
1 answers
4630 views
How to change font scale from Terminal
I know these two commands to change density and resolution via Terminal: wm density wm size But how do I change the scale of system-wide font via Terminal?
I know these two commands to change density and resolution via Terminal: wm density wm size But how do I change the scale of system-wide font via Terminal?
Shayan (137 rep)
Sep 13, 2018, 08:58 PM • Last activity: Mar 24, 2025, 10:07 AM
2 votes
2 answers
5753 views
Limiting Display Frame Rate to Lower
Is in Android there is an available database set for limits display frame rate? If they’re available, is using ADB/Root (Terminal), or how, or even it can't? I've been searching this for years, and not get an answer yet. Actually, this is for tweaking to trigger any benefits. This like my other phon...
Is in Android there is an available database set for limits display frame rate? If they’re available, is using ADB/Root (Terminal), or how, or even it can't? I've been searching this for years, and not get an answer yet. Actually, this is for tweaking to trigger any benefits. This like my other phone embedded feature is Xperia STAMINA mode which is it can set the display frame rate (to 2x lower from 30 fps) for battery saving. But... I mean is not only for that. Many others too that can benefit. So, is this can available on a pure Android system? Or this only self-made for manufacture's hardware so that not possible available on others except Xperia devices? If there are other threads that I don't know. Please let me know. I'll understand it, and try if it makes sense.
Agus Fadillah Sani (91 rep)
Dec 26, 2020, 05:53 AM • Last activity: Mar 15, 2025, 12:41 PM
2 votes
2 answers
4328 views
How to launch Android apps from terminal?
In Linux, I like to launch the applications from the terminal. Most of the time it is the fastest way to launch apps, especially on repeated use. In Android, there are good launchers like **FAST App Search Tool** that will do the job well. But I am still interested in launching apps from the termina...
In Linux, I like to launch the applications from the terminal. Most of the time it is the fastest way to launch apps, especially on repeated use. In Android, there are good launchers like **FAST App Search Tool** that will do the job well. But I am still interested in launching apps from the terminal. For that, I installed *JS Terminal*, but I can't see any app names. Even pressing *Ctrl + T* doesn't show any app name.
totti (403 rep)
May 27, 2015, 03:37 PM • Last activity: Dec 20, 2024, 07:57 PM
0 votes
0 answers
15 views
How to open an app from a terminal app in an Android device?
I would like to open any pre-installed app like WhatsApp.
I would like to open any pre-installed app like WhatsApp.
Sunil Kumar Das (101 rep)
Dec 19, 2024, 04:03 PM
0 votes
1 answers
3645 views
How to send SMS from terminal in background on Android?
I'm trying to send text message (SMS) from my Android terminal app in background (sim 1 or 2). I can send message in foreground using this command: ```bash am start -a android.intent.action.SENDTO -d sms:121 --es sms_body "test text" --ez exit_on_sent true; input keyevent 22; input keyevent 66; ```...
I'm trying to send text message (SMS) from my Android terminal app in background (sim 1 or 2). I can send message in foreground using this command:
am start -a android.intent.action.SENDTO -d sms:121 --es sms_body "test text" --ez exit_on_sent true;
input keyevent 22;
input keyevent 66;
But this command don't work in background. So, how can I send message in background from my terminal? **Note: Android version 6.0. Rooted device**
Rabib (1 rep)
Feb 9, 2020, 12:21 PM • Last activity: Dec 13, 2024, 03:02 AM
0 votes
0 answers
388 views
Change Home Screen Wallpaper Using ADB
How can I change the Home Screen wallpaper via ADB? I know this question has been asked before, but none of the answers I read provided a way to instruct the phone to set only the Home Screen wallpaper. The Lock Screen wallpaper should remain unchanged. For example, the following command works fine,...
How can I change the Home Screen wallpaper via ADB? I know this question has been asked before, but none of the answers I read provided a way to instruct the phone to set only the Home Screen wallpaper. The Lock Screen wallpaper should remain unchanged. For example, the following command works fine, but immediately after I send it to my Xiaomi phone, I get a popup window asking me which wallpaper to change: Home Screen, Lock Screen, or both. ~~~ adb shell am start \ -a android.intent.action.ATTACH_DATA \ -c android.intent.category.DEFAULT \ -d file:///path/to/my/image/on/device.jpg \ -t 'image/*' \ -e mimeType 'image/*' ~~~ I'm looking for a way to change the Home Screen wallpaper automatically, without any manual intervention.
Alex (1 rep)
Oct 7, 2024, 12:22 PM
0 votes
2 answers
2397 views
Opening an HTML file located in Terminal IDE working directory
For some reasons, I am producing some HTML files from Terminal IDE. However, I can't seem to open any of them located in the working directory. Say we have /data/data/com.spartacusrex.spartacuside/files/index.html Firefox shows nothing after I enter the URL file:///data/data/com.spartacusrex.spartac...
For some reasons, I am producing some HTML files from Terminal IDE. However, I can't seem to open any of them located in the working directory. Say we have /data/data/com.spartacusrex.spartacuside/files/index.html Firefox shows nothing after I enter the URL file:///data/data/com.spartacusrex.spartacuside/files/index.html And Chrome complains 'Access denied'. I don't want to root the device. Any walkaround?
Y. Pei (113 rep)
Jun 16, 2015, 02:16 PM • Last activity: Jul 31, 2024, 11:03 AM
3 votes
2 answers
3851 views
How can I open the power menu in Android without pressing the power button?
The power button on my Android phone is dodgy and doesn't always work. I think it's on its last legs so I want to avoid pressing it if possible to extend its lifespan! I know nothing about coding or how Android works. But I was wondering if it is possible to send the button press event to the system...
The power button on my Android phone is dodgy and doesn't always work. I think it's on its last legs so I want to avoid pressing it if possible to extend its lifespan! I know nothing about coding or how Android works. But I was wondering if it is possible to send the button press event to the system using this sort of code somehow: KeyEvent#KEYCODE_POWER . Is there a way I can open the power menu via the screen only? Is there something I can type into a terminal (how do you get a terminal in Android?) that would open the power menu?
glauco (31 rep)
Apr 15, 2022, 09:47 PM • Last activity: Jul 17, 2024, 03:53 PM
4 votes
2 answers
20080 views
How to send all internet traffic to a SOCKS5 proxy server in local network?
I got the inspiration [here][1]. It looks like AFWall+ is able to create a NAT forwarding policy to keep all traffic going through a SOCKS5 proxy and fool Google apps into thinking they are not connected via a VPN (Google apps implement additional security measures when connecting via `VPNService` a...
I got the inspiration here . It looks like AFWall+ is able to create a NAT forwarding policy to keep all traffic going through a SOCKS5 proxy and fool Google apps into thinking they are not connected via a VPN (Google apps implement additional security measures when connecting via VPNService and if you are in China you will not pass the security check - the security check requests don't go through VPN, so they will EOF because GFW will kill these requests, read more here ). So my question is, if let's say I have a socks5 server running at 192.168.1.1:1088 which tunnels all connections via vmess protocol (aka V2Ray) to remote servers in the US, how do I create my custom script? I have tried:
IP6TABLES=/system/bin/ip6tables
IPTABLES=/system/bin/iptables
ULIMIT=/system/bin/ulimit
PORT=1088
SERVER=192.168.1.1
$ULIMIT -n 4096
$IP6TABLES -F
$IP6TABLES -A INPUT -j DROP
$IP6TABLES -A OUTPUT -j DROP
$IPTABLES -t nat -F OUTPUT
$IPTABLES -t nat -A OUTPUT -o lo -j RETURN
$IPTABLES -t nat -A OUTPUT -d 127.0.0.1 -j RETURN
$IPTABLES -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination $SERVER:$PORT
$IPTABLES -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination $SERVER:$PORT
$IPTABLES -t nat -A OUTPUT -p tcp -j DNAT --to-destination $SERVER:$PORT
$IPTABLES -t nat -A OUTPUT -p udp -j DNAT --to-destination $SERVER:$PORT
This does not work. So: 1. Did I create a wrong script? How do I create a script that does what I want to do? 2. Are there other settings that I should enable first? I didn't tick any app so I assume that means all app go through custom script, right?
Aero Windwalker (1124 rep)
Feb 20, 2020, 02:35 AM • Last activity: Jun 19, 2024, 05:43 AM
4 votes
2 answers
1905 views
Can I use the file command on Android?
The UNIX `file` command, which tells you what is inside a file, is seemingly not available either in Busybox or the system directory of Android. Is there any way to run `file` on Android? (via Terminal Emulator, etc) Preferably without having to be rooted...
The UNIX file command, which tells you what is inside a file, is seemingly not available either in Busybox or the system directory of Android. Is there any way to run file on Android? (via Terminal Emulator, etc) Preferably without having to be rooted...
Kidburla (522 rep)
Feb 9, 2016, 07:56 PM • Last activity: May 9, 2024, 02:02 PM
7 votes
4 answers
3118 views
How to write Android shell history to file?
Using [Terminal Emulator for Android][1], is there a way to enable a persistent command history? So far, I've tried the following: * Initial command of `export HISTFILE=$HOME/.mksh_history` * User mksh profile */data/data/jackpal.androidterm/app_HOME/.mkshrc* containing `export HISTFILE=$HOME/.mksh_...
Using Terminal Emulator for Android , is there a way to enable a persistent command history? So far, I've tried the following: * Initial command of export HISTFILE=$HOME/.mksh_history * User mksh profile */data/data/jackpal.androidterm/app_HOME/.mkshrc* containing export HISTFILE=$HOME/.mksh_history * System mksh profile */system/etc/mkshrc* containing export HISTFILE=/data/data/jackpal.androidterm/app_HOME/.mksh_history (though preferably the solution does not involve writing to */system*) I'm able to get other Android shells (ash and bash) to write histories into *app_HOME* without issue. I'm also able to get mksh to write *HISTFILE* on Linux without issue.
Six (360 rep)
Jul 26, 2016, 02:16 AM • Last activity: Apr 15, 2024, 04:22 PM
4 votes
1 answers
974 views
How to run Python 2 and Python 3 CLI programs on Android 14 phones?
It looks like all the methods which used to work for running Python 2 and Python 3 CLI programs on Android phones is now outdated: * SL4A * QPython * Termux + python packages I can't believe we can't run Python CLI programs on Android 14. How would I go about it?
It looks like all the methods which used to work for running Python 2 and Python 3 CLI programs on Android phones is now outdated: * SL4A * QPython * Termux + python packages I can't believe we can't run Python CLI programs on Android 14. How would I go about it?
Victor Ramos (193 rep)
Apr 8, 2024, 01:54 PM • Last activity: Apr 9, 2024, 10:40 AM
5 votes
1 answers
6659 views
Where can I get more information on the sm tool (command) used in the Terminal
I have seen the `sm` tool used a few places for example [here][1]. The way I understand it, it is a storage management tool but I haven't been successful in finding any more info about it. Where can I find more information on this tool? [1]: https://android.stackexchange.com/questions/145457/i-want-...
I have seen the sm tool used a few places for example here . The way I understand it, it is a storage management tool but I haven't been successful in finding any more info about it. Where can I find more information on this tool?
Sruly (1028 rep)
Nov 20, 2018, 09:25 PM • Last activity: Mar 23, 2024, 05:08 PM
3 votes
0 answers
4447 views
How to enable/disable VPN via adb/termux/terminal?
I have a VPN configured on my android device running Lineage OS 18.1 (Android 11). I'm not using any third party apps, I'm simply using the standard Android settings to specify my VPN login data etc. Now I'm looking for a simple way to enable7disable the VPN connection form the terminal without disr...
I have a VPN configured on my android device running Lineage OS 18.1 (Android 11). I'm not using any third party apps, I'm simply using the standard Android settings to specify my VPN login data etc. Now I'm looking for a simple way to enable7disable the VPN connection form the terminal without disruption. I found a hacky way to do it by launching the VPN settings activity and then sending a bunch of key events to click on the connect/disconnect button. Connect:
am start -a android.intent.action.MAIN -n com.android.settings/.Settings\$VpnSettingsActivity && input keyevent 20 && input keyevent 23 && input keyevent 61 && input keyevent 61 && input keyevent 61 && input keyevent 61 && input keyevent 61 && input keyevent 61 && input keyevent 66
Disconnect:
am start -a android.intent.action.MAIN -n com.android.settings/.Settings\$VpnSettingsActivity && input keyevent 20 && input keyevent 23 && input keyevent 61 && input keyevent 66
But first of all, this will open the settings dialog in the foreground, disrupting whatever I have been doing and secondly this whole method relies on the UI to have a specific amount of fields and buttons.
Forivin (247 rep)
Jul 21, 2022, 12:43 PM • Last activity: Feb 21, 2024, 09:53 PM
1 votes
4 answers
6074 views
Closing/killing "Android Terminal Emulator" app
I have a Sprint LG G3 running Android 4.4.2. I'm using [Android Terminal Emulator](https://github.com/jackpal/Android-Terminal-Emulator/wiki) by Jackpal. It respawns after I close the app. I see the terminal process and the child shell but killing that way seems too manual. When I closed the only wi...
I have a Sprint LG G3 running Android 4.4.2. I'm using [Android Terminal Emulator](https://github.com/jackpal/Android-Terminal-Emulator/wiki) by Jackpal. It respawns after I close the app. I see the terminal process and the child shell but killing that way seems too manual. When I closed the only window from the dropdown list at the top, it closes temporarily, then reappears in the "Recent apps" list. There is an un-swipeable notification that says "Terminal session is running". When I tap on either the thumbnail or notification, the "Window 1" comes back. The only workaround I've found is rebooting. Any better ideas to really close this app?
tbc0 (111 rep)
Sep 6, 2014, 10:33 PM • Last activity: Feb 12, 2024, 07:05 AM
0 votes
0 answers
1241 views
Using Termux to Backup Android's Contact List
In Termux's website's main page, they write (among other stuff): >"use rsync to store backups of your contact list on a remote server" This makes me wonder: Android's Contact List is stored in an SQLite DB, which is a file on the phone's internal storage. rsync synchronizes files. So If I understand...
In Termux's website's main page, they write (among other stuff): >"use rsync to store backups of your contact list on a remote server" This makes me wonder: Android's Contact List is stored in an SQLite DB, which is a file on the phone's internal storage. rsync synchronizes files. So If I understand the required implementation behind this idea, then what they mean by the quoted sentence, is that you can simply synchronize the whole SQLite DB file, to a remote server. The problem is: What happens when the day comes, and you need to **Restore** your Contacts DB? I assume that Android will not let you copy the SQLite DB file that you saved aside, over the current (new, and empty) Contact List's SQLite DB file, So how will we do the restoration? I hope someone understood their idea in this sentence..
spaceman (111 rep)
Apr 17, 2019, 12:56 PM • Last activity: Jan 21, 2024, 04:33 PM
1 votes
1 answers
1608 views
Why does Terminal Emulator for Android has completely different commands comparing to GNU/Linux?
I installed Terminal Emulator for Android hoping I could easily get root access, install apps via terminal, etc. So, thinking Android is a Linux distribution, I felt that it must have a terminal emulator (to really feel I'm using Linux), but when I tried some commands, none of them worked! Why? What...
I installed Terminal Emulator for Android hoping I could easily get root access, install apps via terminal, etc. So, thinking Android is a Linux distribution, I felt that it must have a terminal emulator (to really feel I'm using Linux), but when I tried some commands, none of them worked! Why? What commands are used on Android?
VIPaul (23 rep)
Dec 28, 2014, 04:32 PM • Last activity: Dec 25, 2023, 04:32 AM
Showing page 1 of 20 total questions