I run the commands from my laptop. but can't understand what is the different, it's look like both commands are just restart the mobile device.

What is the different between adb reboot vs adb shell reboot?


No difference. Ultimately both set sys.powerctl property to reboot,<reason> (1, 2). init then handles the property to proceed a proper shutdown or reboot (3). reason string optionally describes why the device was rebooted (see persist.sys.boot.reason property after reboot).

When executing adb shell reboot you make adb run shell: /system/bin/sh which then executes /system/bin/reboot binary. You can also set the system property manually:

~$ adb shell setprop reboot,just_testing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.