Termux Api Commands #3512
-
is there anyway to run termux-api commands after using su, no matter if i switch user to termux itself, no termux-api command work. Ofcourse i added path of bin and did not change the shell. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The problem with Termux:API is that its command line frontend tool ( As you are doing so under |
Beta Was this translation helpful? Give feedback.
The problem with Termux:API is that its command line frontend tool (
termux-api
, usable by all API wrapper scripts) creates socket files which must be accessible by Termux:API application.As you are doing so under
su
, the sockets will have ownership and SELinux labels preventing Termux:API from accessing them.