Timeline for What's the best way to restart Android via command line (remotely)?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 5, 2016 at 23:19 | comment | added | unforgettableidSupportsMonica |
Dear acy: Firelord's late answer (su -c 'am start -a android.intent.action.REBOOT' ) works for me on Android 4.1.2, and seems to me to be the best of the existing answers. If it works for you on Android 4.1.1, or if you're too busy to try it, please click the green checkmark in order to make it float to the top of the answer section.
|
|
Mar 8, 2016 at 22:14 | answer | added | Firelord♦ | timeline score: 17 | |
Dec 14, 2015 at 1:45 | comment | added | unforgettableidSupportsMonica |
su -c "reboot" runs the reboot command, which is defined in reboot.c . reboot.c hasn't changed much over the years. It has always called sync() and then rebooted the device. Also, thanks to this commit, modern versions of reboot.c also unmount all filesystems. Android 4.1.1 includes the commit I mentioned, and so I don't see how su -c "reboot" on Android 4.1.1 could ever cause filesystem corruption.
|
|
Sep 19, 2014 at 4:32 | answer | added | palswim | timeline score: 11 | |
Apr 15, 2013 at 16:55 | history | tweeted | twitter.com/#!/StackAndroid/status/323841908080267264 | ||
Apr 15, 2013 at 16:09 | answer | added | t0mm13b | timeline score: 14 | |
Apr 15, 2013 at 15:58 | history | asked | acy | CC BY-SA 3.0 |