Execute a script in /sdcard location on termux via adb without physical access to remote android device #3249
-
can someone provide adb am start intent command for this. on remote system i have termux insyalled freshly and it has setup.sh in /sdcard i have seen mixplorer app to run termux commands from app itself |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
can dev give a common adb shel pm or adb shell appops i tried to extract permission from manifest and supply them to xargs -n1 adb shell pm grant common script to |
Beta Was this translation helpful? Give feedback.
-
Thanks for the script that uses "run-as" |
Beta Was this translation helpful? Give feedback.
The
adb
shell
user does not requestRUN_COMMAND
permission, so it cannot sendRUN_COMMAND
intents. You could userun-as
command over adb if using github debug builds (not F-Droid) or if you have rooted your device, then can send intent withsu
inside theadb shell
.