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?
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.Sign up to join this community
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).
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