I have a problem with my device. When I do
adb reboot then it stuck on boot in a loop.
But, when I do
adb shell and then
reboot, it works fine.
I searched over the internet and understand that both have different behavior:
adb rebootworks like you plug the phone battery out. Means, it will not close any application, not show any pretty Restarting splash screen.
/system/bin/rebootexecutable and it does a soft reboot with closing opened application, showing the splash screen, etc..
To verify that
/system/bin/reboot, I have moved the
/system/bin/reboot to another place and as expected the
reboot command not working anymore so I put it back after confirmation.
adb reboot to use
I want to do it from within the Android device that makes it a general solution for all users of the device. I know I can execute
adb shell reboot but other users will not do this.
Is there any way of doing this?