Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
0
votes
1
answers
41
views
If termux can not run on Android 10, why it can above it?
As [this][1] post explains, Google has simply forbidden executables in writable app home directories from Android 10, making termux not working any more on Android 10. However, I have multiple machines with much higher android versions and Termux runs in them without any problem. On my only Android...
As this post explains, Google has simply forbidden executables in writable app home directories from Android 10, making termux not working any more on Android 10.
However, I have multiple machines with much higher android versions and Termux runs in them without any problem.
On my only Android 10 phone (motorola moto e7), it does not (playstore says it is incompatible; f-droid version stops with cryptic error message).
What is going on? Can I somehow trick termux into the moto e7, maybe an older version?
peterh
(1176 rep)
Jul 13, 2025, 01:18 PM
• Last activity: Jul 13, 2025, 03:32 PM
1
votes
1
answers
30
views
What's causing the nav bar buttons to show the wrong colour when running Termux?
They're white on white, with just a faint drop shadow that indicates that the buttons are actually there. The issue only affects one app; Termux. Is this an Android problem or a Termux problem, and what can I do to fix it? [![1]][1] The device is a Samsung Galaxy Tab A7 SM-T500 running Android 12 wi...
They're white on white, with just a faint drop shadow that indicates that the buttons are actually there. The issue only affects one app; Termux. Is this an Android problem or a Termux problem, and what can I do to fix it?
[!
]
The device is a Samsung Galaxy Tab A7 SM-T500 running Android 12 with Samsung's One UI 4.1.


Jonathan Holvey
(175 rep)
Jun 20, 2025, 07:01 AM
• Last activity: Jun 22, 2025, 05:37 AM
7
votes
3
answers
24012
views
How to Play Sound from Termux when using Linux?
I have a problem with audio streaming that I can not listen audio from Pulseaudio when using VNC with a Linux Desktop Environment. However it works if I export the audio to XSDL. But the problem is that after I exit the application the sound does not work in the background. I know that Pulseaudio on...
I have a problem with audio streaming that I can not listen audio from Pulseaudio when using VNC with a Linux Desktop Environment.
However it works if I export the audio to XSDL. But the problem is that after I exit the application the sound does not work in the background.
I know that Pulseaudio only supports Xorg servers, so how to stream audio to VNC or any other application on Android and to run it in the background.
I know that there is an application Simple Protocol Player that listens to pulseaudio sound from Xorg Server, but it does not work for me and I do not know the reason.
Maher_2000
(113 rep)
Dec 24, 2018, 08:08 AM
• Last activity: Jun 17, 2025, 10:40 PM
1
votes
1
answers
146
views
Use SSH tunnel along with a proxy
I have installed "Termux" app on my Android device. I can this use this command on Termux app to create a Socks 5 tunnel to my remote VPS on port `1080`: ``` ssh -D 1080 user@22.15x.20y.150 ``` Then I use "Exclave" app to proxy my Android device through that port. But as soon as I activate the conne...
I have installed "Termux" app on my Android device. I can this use this command on Termux app to create a Socks 5 tunnel to my remote VPS on port
1080
:
ssh -D 1080 user@22.15x.20y.150
Then I use "Exclave" app to proxy my Android device through that port.
But as soon as I activate the connection on Exclave app, the ssh
connection on Termux app is terminated. Consequently the Exclave app cannot connect the Android device through the ssh
tunnel to the Internet.
I'm not sure, but it looks like a cycle problem or loop problem to me.
So far, I couldn't find a way to modify Exclave app to exclude the ssh
Socks 5 connection from the proxy.
What are the solutions to this problem?
I'm open to any solution that might possibly solve my original problem. Thanks.
Megidd
(242 rep)
May 18, 2025, 07:01 AM
• Last activity: May 18, 2025, 07:26 AM
1
votes
2
answers
3966
views
Permission denied when opening files from Termux
I have an issue with file permission in Termux. For instance, I installed c4droid and copied the Termux `/include` and `/lib` folders content in the `/c4droid` folder where the headers are being looked for at compilation. I changed the owner and group to the correct name and mode to 777, but at comp...
I have an issue with file permission in Termux.
For instance, I installed c4droid and copied the Termux
/include
and /lib
folders content in the /c4droid
folder where the headers are being looked for at compilation. I changed the owner and group to the correct name and mode to 777, but at compilation, it says "cannot open ****.h permission denied".
Same thing with a worldlist that comes from the SD card that I put on a folder meant to be used with hydra, not only have I have to use root access to unzip the file and move it around, but hydra itself can't open it.
What is this so important thing that I am missing about Termux and filed ownership and permissions?
Yvain
(121 rep)
Jul 1, 2019, 11:54 PM
• Last activity: May 10, 2025, 04:07 AM
0
votes
1
answers
12541
views
Error installing Aircrack in Termux (E: Unable to locate package aircrack-ng)
An error is occurring when I try to install aircrack-ng in Termux.\ **E: Unable to locate package aircrack-ng** When I try to use `apt` or `pkg` to search for aircrack, it doesn't find anything either. Here are the outputs: [The error][1] ``` ~ $ pkg install aircrack-ng Checking availability of curr...
An error is occurring when I try to install aircrack-ng in Termux.\
**E: Unable to locate package aircrack-ng**
When I try to use
apt
or pkg
to search for aircrack, it doesn't find anything either. Here are the outputs:

~ $ pkg install aircrack-ng
Checking availability of current mirror:
[*] https://packages-cf.termux.dev/apt/termux-main : ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package aircrack-ng
~ $ apt install aircrack-ng
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package aircrack-ng
~ $

~ $ pkg search aircrack-ng
Checking availability of current mirror:
[*] https://packages-cf.termux.dev/apt/termux-main : ok
Sorting... Done
Full Text Search... Done
~ $ apt search aircrack
Sorting... Done
Full Text Search... Done
~ $ apt search aircrack-ng
Sorting... Done
Full Text Search... Done
~ $
I thought it wasn't finding the package, so I decided to use git
to clone the aircrack repository on GitHub and install from there, but I don't even know if there's a way to do that or how to do it.
Note: I'm quite a beginner so I apologize if something doesn't make sense.
Frostinho
(11 rep)
Apr 27, 2023, 01:41 AM
• Last activity: May 2, 2025, 02:05 AM
0
votes
0
answers
915
views
How to fix the error "adb: no devices/emulators found" in Termux
I am using Termux to run a Linux environment on an Android device. When I try to run the command adb shell getprop ro.build.fingerprint I get the error "no devices/emulators found". I have already enabled the USB Debugging in the Developer Options. I have installed the program ```adb``` by executing...
I am using Termux to run a Linux environment on an Android device.
When I try to run the command
adb shell getprop ro.build.fingerprint
I get the error "no devices/emulators found". I have already enabled the USB Debugging in the Developer Options. I have installed the program
by executing install android-tools
.
I have also tried killing and starting the servers via
adb kill-server
adb start-server
But I still get the same error. I would appreciate it if someone could help me fix it!
Pustam Raut
(101 rep)
Apr 7, 2025, 09:55 AM
1
votes
1
answers
43
views
How to make files from Termux visible in Slack?
Files created/downloaded in Termux and placed in storage/downloads is invisible to Slack until the whole phone is rebooted, or so it seems. On the flip side, files created/downloaded in Slack is immediately visible in Termux. Is there any way to make the files visible to Slack without a reboot? Thin...
Files created/downloaded in Termux and placed in storage/downloads is invisible to Slack until the whole phone is rebooted, or so it seems. On the flip side, files created/downloaded in Slack is immediately visible in Termux.
Is there any way to make the files visible to Slack without a reboot?
Things I've tried:
- restarting slack
- force-stopping and restarting slack
- Uninstall the entire slack app, and reinstall it
- running sync in Termux
- restarting both Termux and slack multiple times
Phone Samsung S24U, Android 14, not rooted.
hanshenrik
(263 rep)
Mar 9, 2025, 12:46 PM
• Last activity: Mar 13, 2025, 11:21 AM
1
votes
0
answers
127
views
How to make gocryptfs mount from Termux root shell available to other apps?
I have a similar goal as discussed here 5,5 years ago: But I'd prefer to use a file-based approach on-top of a "removable storage" setup managed by Android, so I can dynamically choose how much of it I want to use to store my private encrypted files only readable by this phone and other devices wher...
I have a similar goal as discussed here 5,5 years ago:
But I'd prefer to use a file-based approach on-top of a "removable storage" setup managed by Android, so I can dynamically choose how much of it I want to use to store my private encrypted files only readable by this phone and other devices where I enter the key - and how much for unencrypted files I can share with other people by removing the microSD-card from my phone.
I managed to easily setup a gocryptfs volume using the DroidFS app installed via F-Droid and also mount it via a Termux root shell with
gocryptfs /storage/67DF-FCFD/DroidFS /mnt/crypt -nosyslog -allow_other
The remaining obstacle is how to make that decrypted view = mount of my gocryptfs volume available for any app to read from and write to?
I thought I could use a bind mount, see also: and
But so far everything I tried failed:
# mount | grep /crypt
/storage/67DF-FCFD/DroidFS on /mnt/crypt type fuse.gocryptfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=1048576)
tmpfs on /mnt/crypt type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=3900340k,nr_inodes=975085,mode=755,gid=1000)
# ls -alih /mnt/crypt/1/
total 5.2M
1048987 -rwxrwx---. 1 root media_rw 773K Mar 11 22:06 IMG_20250311_220628_348196.jpg
1048988 -rwxrwx---. 1 root media_rw 2.1M Mar 11 22:06 IMG_20250311_220639_873732.jpg
1048989 -rwxrwx---. 1 root media_rw 2.1M Mar 11 22:06 IMG_20250311_220644_933558.jpg
# nsenter -m -t pgrep rs.media.module
-- mount -o bind /mnt/crypt/1 /storage/emulated/0/crypt
CANNOT LINK EXECUTABLE "mount": library "/data/data/com.termux/files/usr/lib/libtermux-exec.so" not found: needed by main executable
$ su -Mc mount -o bind /mnt/crypt/1 /storage/emulated/0/crypt
mount: '/mnt/crypt/1'->'/storage/emulated/0/crypt': No such file or directory
Please help! Thank you :)
xogoxec344
(11 rep)
Mar 12, 2025, 10:04 AM
• Last activity: Mar 12, 2025, 10:06 AM
2
votes
0
answers
567
views
Convenient way of checking is Shizuku server is running?
How can you check if Shizuku is running before executing the start command? I am running Shizuku on non rooted device and I noticed it randomly stops sometimes when wireless debugging becomes disabled (and this is expected AFAIK). I already have a task in Tasker that starts Shizuku, but I want it to...
How can you check if Shizuku is running before executing the start command?
I am running Shizuku on non rooted device and I noticed it randomly stops sometimes when wireless debugging becomes disabled (and this is expected AFAIK). I already have a task in Tasker that starts Shizuku, but I want it to run only when the server is not running already otherwise I could let it simply run all day but didn't want to stick to that route.
Some users were suggesting using Termux:Tasker plugin and some adb commands to check for the
%result
but the plugin doesn't work on my device so am stuck.
xavier_fakerat
(10345 rep)
Dec 31, 2023, 12:36 PM
• Last activity: Mar 8, 2025, 02:16 AM
2
votes
0
answers
645
views
Creating permanent swapfile acting as virtual RAM
I have made a swap file on my Android device that acts as virtual RAM. But I have an issue where the swap file is reset every time the Android device is reset. Even though I have made a permanent swap file as shown in the below method, still the swap file is reset after rebooting the Android device....
I have made a swap file on my Android device that acts as virtual RAM. But I have an issue where the swap file is reset every time the Android device is reset.
Even though I have made a permanent swap file as shown in the below method, still the swap file is reset after rebooting the Android device. How can I achieve the permanent swap file? Can someone help me?
---
Create a permanent swap file
dd if=/dev/zero of=/$PREFIX/tmp/swapfile bs=1048576 count=4096
mkswap /$PREFIX/tmp/swapfile
swapon /$PREFIX/tmp/swapfile
chmod 600 /$PREFIX/tmp/swapfile
termux-setup-storage
Create Termux boot directory
mkdir -p ~/.termux/boot/
Create a script for the line below
touch start_swap.sh
Add in the following line inside the directory created
#!/data/data/com.termux/files/usr/bin/sh
swapon /$PREFIX/tmp/swapfile
Making the script for swap file executable
chmod +x ~/.termux/boot/start_swap.sh
Set swappiness to 100 and make it persistent:
echo 100 | sudo tee /proc/sys/vm/swappiness
echo 'vm.swappiness=100' | sudo tee -a /etc/sysctl.conf
Stress test the memory
pkg install stress
stress --vm 1 --vm-bytes 3G --vm-hand 0
Wan Ammar
(21 rep)
Jul 25, 2024, 02:31 AM
• Last activity: Mar 3, 2025, 11:35 AM
1
votes
0
answers
233
views
How can I launch a camera app from the command line, and have it stored somewhere predictable on android?
Basically... I am writing a script on Termux and I need to take and store a photography. I tried to start "android.media.action.IMAGE_CAPTURE" via am supplying it with the uri of both a non existent and empty file for that sake, but I was unable to get it to work consistently... More details [Here][...
Basically... I am writing a script on Termux and I need to take and store a photography. I tried to start "android.media.action.IMAGE_CAPTURE" via am supplying it with the uri of both a non existent and empty file for that sake, but I was unable to get it to work consistently... More details Here . So I am reconsidering my approach...
Do you guys know some way (built-in way, third party app or library, Termux specific command, idk) to be able to launch some camera app in order to be able to point the camera and take the photo, and then return to the terminal in order to handle it.
It would be nice to write it directly into Termux's storage, but it's fine if I can write it literally anywhere.
Lucastegano X
(11 rep)
Feb 4, 2025, 05:49 PM
• Last activity: Feb 6, 2025, 01:14 PM
3
votes
1
answers
2331
views
dumpsys battery in Termux
I am trying to get battery info in Termux. I granted `android.permission.DUMP` and `android.permission.PACKAGE_USAGE_STATS` via ADB for `com.termux` (Termux app) Then I opened Termux and types in `/system/bin/dumpsys battery`. It displays this error message: ``` Can't find service: battery ``` and e...
I am trying to get battery info in Termux.
I granted
android.permission.DUMP
and android.permission.PACKAGE_USAGE_STATS
via ADB for com.termux
(Termux app)
Then I opened Termux and types in /system/bin/dumpsys battery
. It displays this error message:
Can't find service: battery
and exits with code 0.
I can confirm that I can get those info via ADB using the same command (e.g. getting battery level with /system/bin/dumpsys battery | grep level
)
Am I missing some permissions for Termux app? Or are there some more fixes? Please help.
Edit: I am aware of the existence of termux-battery-status
command in Termux. It's output is not too informative. So I will not accept answers telling me to use the command.
sudoer
(159 rep)
Dec 26, 2022, 03:35 AM
• Last activity: Jan 31, 2025, 10:14 PM
2
votes
1
answers
105
views
What does a crossed out (strikethrough) session, colored in red, specify in Termux?
I've experienced multiple unresponsive Termux sessions on [Oneplus 5T][1] by nothing more intensive than opening around five webpages in `lynx` (each in their own... again, session in `tmux`; Ctrl + B , C on the keyboard). I've waited for several days and the sessions don't appear to recover. Have t...
I've experienced multiple unresponsive Termux sessions on Oneplus 5T by nothing more intensive than opening around five webpages in
lynx
(each in their own... again, session in tmux
; Ctrl + B, C on the keyboard).
I've waited for several days and the sessions don't appear to recover.
Have the following sessions crashed outright or does Termux consider them to be in some frozen state?

user598527
(798 rep)
Nov 26, 2022, 04:16 PM
• Last activity: Jan 13, 2025, 04:58 PM
0
votes
3
answers
20739
views
Trying to delete a folder with Termux
I'm trying to delete a file Android will not let me delete it. Trying to use Termux, I can't seem to find the file. I used termux-setup-storage, and per the instructions entered: cd /storage/sdcard0/FilesAndFolders And get bash: cd: /storage/sdcard0/FilesAndFolders: No such file or directory I'm wor...
I'm trying to delete a file Android will not let me delete it. Trying to use Termux, I can't seem to find the file. I used termux-setup-storage, and per the instructions entered:
cd /storage/sdcard0/FilesAndFolders
And get
bash: cd: /storage/sdcard0/FilesAndFolders: No such file or directory
I'm working with Android 11, and I am a real novice at this. I can't figure out what file path they want. Suggestions?
Even though I'm using:
rm -rf [directory name]
it still comes back saying the Directory is not empty.
No command I try deletes this file. The file name at the end of the string has a black diamond with a question mark on it.
I tried SD Maid to no avail, Termux didn't work. I'm considering a factory reset as my only option. The file is a .mp4. I tried
*.MP4
, but no luck. I've tried deleting the folder and the file in every way I could find. I traced the file from the tree, sometimes it tells me the file doesn't exist when I can see it in the tree.
Is there any way to delete this file?
Jimmy B
(11 rep)
Aug 13, 2023, 12:59 PM
• Last activity: Jan 12, 2025, 07:00 PM
2
votes
1
answers
390
views
How to call termux binaries from a root shell?
Important things: 1. Termux binaries are in `/data/data/com.termux/files/usr/bin` 2. Termux libraries are in `/data/data/com.termux/files/usr/lib` 3. Android binaries are in `/system/bin` 4. Android libraries are (mostly) in `/system/lib64` I am trying to execute termux binaries from a root shell (o...
Important things:
1. Termux binaries are in
/data/data/com.termux/files/usr/bin
2. Termux libraries are in /data/data/com.termux/files/usr/lib
3. Android binaries are in /system/bin
4. Android libraries are (mostly) in /system/lib64
I am trying to execute termux binaries from a root shell (on a rooted phone, after a successful "su" command). Most of them work, although they are not in the PATH.
On ordinary Linuxes, the environment variable LD_LIBRARY_PATH
could do the trick. However, the so-named "ordinary linuxes" are mostly open source linux distributions based on the GNU Libc, which has a dynamic linker (named "ld.so"), which can interpret it.
However, Android binaries are using another libc, and another linker. My tests show it is in /system/bin/linker64
and it does not honor LD_LIBRARY_PATH
.
So, how could I execute termux tools from a root shell, which they can find /data/data/com.termux/files/usr/lib
if needed?
peterh
(1176 rep)
Dec 28, 2024, 11:27 PM
• Last activity: Dec 31, 2024, 04:30 PM
1
votes
1
answers
205
views
Termux Running easyrsa as `sudo -u root` gives me No such file or directory
I'm trying to run a sh script (easyrsa) while being in `sudo -u root` environment. sudo -u root sh /data/data/com.termux/files/home/openvpn/easy-rsa/easyrsa3/easyrsa This gives me an error telling me that OpenSSL is not present (I assume because I'm running it in a different environment) And when I...
I'm trying to run a sh script (easyrsa) while being in
sudo -u root
environment.
sudo -u root sh /data/data/com.termux/files/home/openvpn/easy-rsa/easyrsa3/easyrsa
This gives me an error telling me that OpenSSL is not present (I assume because I'm running it in a different environment)
And when I try
sudo -u root /data/data/com.termux/files/home/openvpn/easy-rsa/easyrsa3/easyrsa
It gives me "No such file or directory".
I tried every possible combination of commands but just can't seem to get it right.
The main issue is I'm trying to run easyrsa from a web dashboard for generating certificates, and this dashboard is running as sudo -u root
and for some strange reason, it just can't find the files in termux home.
/data/data/com.termux/files/home/openvpn/easy-rsa/easyrsa3/easyrsa
is my location of the easyrsa shell file
xMidNight-.
(21 rep)
Dec 18, 2024, 10:14 PM
• Last activity: Dec 20, 2024, 03:38 AM
2
votes
1
answers
291
views
Termux: am command - start intent without activity class
I'm trying to launch an intent to a shortcut of a flow on Automate (by Llamalabs) using the am command supplied by Termux, but the am command needs the Activity Class parameter to run the shortcut and I can't find it. Automate was able to run it fine without an activity class, but I just can't figur...
I'm trying to launch an intent to a shortcut of a flow on Automate (by Llamalabs) using the am command supplied by Termux, but the am command needs the Activity Class parameter to run the shortcut and I can't find it. Automate was able to run it fine without an activity class, but I just can't figure out how to do it with the am command.
**How can I accomplish running a intent without an Activity class on the am command?**
I did try running commands like this:
`
am start -a com.llamalab.automate.intent.action.START_FLOW -d content://com.llamalab.automate.provider/flows/58/statements/ -c android.intent.category.DEFAULT
`
But it resulted in this output
Starting: Intent { act=com.llamalab.automate.intent.action.START_FLOW cat=[android.intent.category.DEFAULT] dat=content://com.llamalab.automate.provider/... }
Error: Activity not started, unable to resolve Intent { act=com.llamalab.automate.intent.action.START_FLOW cat=[android.intent.category.DEFAULT] dat=content://com.llamalab.automate.provider/... flg=0x10000000 }
And I tried researching more on the am command, but still with no luck. I did find the monkey command built into the Android shell, but that doesn't work as it keeps saying that the window manager isn't running.
Parameters I have on the shortcut for the intent:
Data URI: content://com.llamalab.automate.provider/flows/58/statements/1
Action: com.llamalab.automate.intent.action.START_FLOW
Package: com.llamalab.automate
LilData777
(161 rep)
Dec 4, 2024, 04:34 PM
• Last activity: Dec 12, 2024, 05:17 PM
0
votes
0
answers
76
views
Unable to remount root partition: "Operation not permitted"
I have a device, rooted through the KernelSU. I granted root access to the Termux app using the KernelSU app. Now I have access to the `su` command, and theoretically should be able to use the `mount` command within the `su` shell. But when I try to use it for my root partition `/`, it says: `mount:...
I have a device, rooted through the KernelSU. I granted root access to the Termux app using the KernelSU app. Now I have access to the
su
command, and theoretically should be able to use the mount
command within the su
shell. But when I try to use it for my root partition /
, it says:
mount: '/dev/block/dm-2'->'/': Operation not permitted
What I want is to mount the root as read-write, but any mount operation I've tried failed.
The commands I've tried:
mount -o rw,remount /
mount -o ro,remount /
Or maybe there's another way to make the root writable?
Nikitf777
(11 rep)
Nov 20, 2024, 07:29 PM
• Last activity: Nov 20, 2024, 09:31 PM
0
votes
0
answers
74
views
how to query termux wakelock
I'm currently developing a small application for temporarily monitoring sensors in c, that should initiate a wakelock and release it after it ran but not release it, if a wakelock was aquired before execution. essentially this is my goal: was wake lock present before the application was executed? -...
I'm currently developing a small application for temporarily monitoring sensors in c, that should initiate a wakelock and release it after it ran but not release it, if a wakelock was aquired before execution.
essentially this is my goal:
was wake lock present before the application was executed?
- ignore it
wasn't it present before the application was executed?
- obtain and clear it throughout the lifetime of this application
---
when running
termux-notification-list
, I can check if a wakelock is currently present by searching through it's output until I find this:
{
"id": 1337,
"tag": "",
"key": "0|com.termux|1337|null|10179",
"group": "",
"packageName": "com.termux",
"title": "Termux",
"content": "1 session (wake lock held)",
"when": "2024-11-04 15:14:24"
}
### is there a better way to figure out if a wakelock is currently in place?
I consider querying notifications a bad idea, as notifications can be discarded even if they are permanent.
GottZ
(101 rep)
Nov 4, 2024, 02:27 PM
Showing page 1 of 20 total questions