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!

Solution:Jump to 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...
2 Replies
I think I broke something pretty important as termux-x11 does also not work anymore. It fails with a similar error:
This is my script for starting proot
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 calledSolution
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...