Android Question How to switch off/on an Android phone via USB signal?

Mr Blue Sky

Active Member
Licensed User
Longtime User
hello all and happy new year, someone has already try to turn on an Android phone via the USB port I will be interested to know the procedure if it is possible ?
 

Peter Simpson

Expert
Licensed User
Longtime User
Hello,
I believe that running the following adb command powers down an Android device via USB, but turning it on, hmm, goof luck with that.

B4X:
adb shell reboot -p

Enjoy...
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
Turning it off should be possible by using the adb command @Peter Simpson suggested in his post. It could probably be done, without USB connection, also by using Accessibility Services.

Turning it on is probably very difficult unless there are some pre-installed binaries on the phone. Found this (not tested by me though):

Source:
If you enabled USB debugging and installed Minimal ADB & Fastboot before the phone turned off, go to your computer and launch the tool. Plug in your phone via USB, then type adb reboot and hit enter. Also try adb reboot recovery. This will not work for all phones when they are switched off, but it is worth a try.

Fastboot info;
https://www.androidcentral.com/android-z-what-fastboot
 
Upvote 0
Top