user755499
user755499

Reputation: 2290

How to capture/log Android reboot cause

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

Answers (1)

tnjin
tnjin

Reputation: 47

use this command in adb shell:

cat /proc/last_kmsg 

you can see the cause of last reboot

Upvotes: 2

Related Questions