(OK) New location of last_kmsg on Android 6.0 and above: /sys/fs/pstore/console-ramoops


https://sites.google.com/site/zhuoweisite/blog/newlocationoflastkmsgonandroid60andabovesysfspstoreconsole-ramoops


On Android, diagnosing kernel crashes often requires a developer to read the /proc/last_kmsg file, which stores previous kernel logs after a reboot. Unfortunately it went missing in Android 6.0.

It turns out that it was moved to /sys/fs/pstore/console-ramoops. It still works the same way as before (cat /sys/fs/pstore/console-ramoops will display the previous kernel log)

posted @ 2016-09-02 20:51  张同光  阅读(283)  评论(0编辑  收藏  举报