Where does Android store shutdown logs?


I know that the boot up log can be obtained by pulling out contents of kmsg or dmesg through ADB.
But I’m not aware of how to retrieve the shutdown logs in Android as there’s no /var folder in Android (place where most desktop linux distros generally store their shutdown logs).

So how can I obtain the shutdown logs in Android?


One work around I found for collecting shutdown logs in Android is to run adb pull /proc/kmsg C:\Logs.txt on the host PC and then switch off the device. You will get the logs till the USB communication between the host and the device snaps! I know this is only one case out of the numerous shutdown scenarios but I haven’t found satisfactory answers for other cases!

Answered By – Pavan Manjunath

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published