Reputation: 2290
While developing my android custom ROM, I need to know that - is there a way to log or capture the cause of android reboot, whether user manually powered off / rebooted the devices or wether system_server got restarted by adb kill or it was watchdog who restarted the device.
Help Appreciated ! Thanks
Upvotes: 3
Views: 10479
Reputation: 47
use this command in adb shell:
cat /proc/last_kmsg
you can see the cause of last reboot
Upvotes: 2