简体   繁体   中英

how to run binary in android without adb shell

when you run a binary in adb shell, if you exit adb, then the process is over too.

So is there a way to run a binary without adb's help?

If you have busybox installed on your device, then you could use 'busybox nohup [your binary] &' command. This way it will keep running even after you close adb

This works for me:

sh -c "your-binary-or-command" &

Then you can exit the adb shell by pressing ctrl+D and it will continue to run.

You can kill it by going back into the adb shell then

kill -s KILL <PID>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM