T
Termux2w ago

Termux-api commands fail in proot

Termux api commands run in proot output the following message: "/data/data/com.termux/files/usr/bin/am: 30: exec: /system/bin/app_process: Operation not permitted". The same does not happen in non-proot Termux where the command just works. Example command "$termux-toast test" They worked at some point, which means I probably have broken something without noticing. Thanks in advance for you help!
No description
Solution:
Fixed by copying and binding app_process from android img (https://github.com/termux/proot-distro/issues/516)
GitHub
[General]: Can't run termux-api commands inside a proot anymore. ·...
Description The termux-api commands stopped working inside a proot recently, maybe from permission changes or something in Android 15 or OneUI 7 update, because they were working inside a proot bef...
Jump to solution
2 Replies
᲼
OP2w ago
I think I broke something pretty important as termux-x11 does also not work anymore. It fails with a similar error:
termux-x11
/data/data/com.termux/files/usr/bin/termux-x11: 7: exec: /system/bin/app_process: Operation not permitted
termux-x11
/data/data/com.termux/files/usr/bin/termux-x11: 7: exec: /system/bin/app_process: Operation not permitted
This is my script for starting proot
#!/bin/bash
clear
proot-distro login archlinux --shared-tmp --user admin
#!/bin/bash
clear
proot-distro login archlinux --shared-tmp --user admin
The problem seems to be when the command exec /system/bin/app_process -Xnoimage-dex2oat / com.termux.termuxam.Am broadcast --user 0 -n com.termux.api/.TermuxApiReceiver --es socket_input id1 --es socket_output id2 --es api_method Clipboard is called
Solution
᲼
2w ago
Fixed by copying and binding app_process from android img (https://github.com/termux/proot-distro/issues/516)
GitHub
[General]: Can't run termux-api commands inside a proot anymore. ·...
Description The termux-api commands stopped working inside a proot recently, maybe from permission changes or something in Android 15 or OneUI 7 update, because they were working inside a proot bef...

Did you find this page helpful?