Tuesday, May 24, 2016

How to: erate a kernel log after random reboot


Once in a while, a software bug in the kernel will cause a random reboot, so in order to help kernel developers to fix and troubleshoot the reboots, a kernel log need to be submitted to the developer for further analysis and hopefully ld to a bug fix.
Most Android kernels have "RAM Consoles" to save the necessary kernel logs immediately after reboot in the RAM. The users can then retrieve this RAM log on a subsequent reboot to submit to kernel developers. Here is a quick tour on how to do that.

[ Using ADB ]
adb shellsu /proc/last_kmsg > /sdcard/last_kmsg.txtexitexitadb pull /sdcard/last_kmsg.txtFile last_kmsg.txt will be loed in the same loion as adb.exe executable.


[ Using android terminal app ]
su /proc/last_kmsg > /sdcard/last_kmsg.txtexitexitadb pull /sdcard/last_kmsg.txtFile last_kmsg.txt will be loed on your SD-card.

[ Using Root Explorer / ES Explorer with Root ]
go to /proc foldercopy last_kmsg to /sdcard/rename last_kmsg to last_kmsg.txtFile last_kmsg.txt will be loed on your SD-card.
The best method to share the last_kmsg.txt content is to upload it to pastebin.com and send a link to the developer.
Source: faux123 (Google +)

Have any questions or comments? Feel free to share!Also, if you like this article, plse use media sharing buttons (Twitter, G+, Facebook) below this post!

No comments:

Post a Comment