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
-
|
Thanks for the script that uses "run-as" |
Beta Was this translation helpful? Give feedback.
-
|
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.
The
adbshelluser does not requestRUN_COMMANDpermission, so it cannot sendRUN_COMMANDintents. You could userun-ascommand over adb if using github debug builds (not F-Droid) or if you have rooted your device, then can send intent withsuinside theadb shell.