Android: How to get kernel logs after kernel panic?

后端 未结 6 1746
暖寄归人
暖寄归人 2020-12-04 15:09

I am using an Android Custom ROM on my device, also with a custom boot.img (custom kernel + cmdline + ramdisk). I now want to be able to view the kernel logs immediately aft

6条回答
  •  广开言路
    2020-12-04 15:21

    It seems at Android-7.0 or above, the last_kmesg log is moved to: /sys/fs/pstore/console-ramoops, so try:

    cat /sys/fs/pstore/console-ramoops
    

    it works well for me on nexus-5x

提交回复
热议问题