Print out Android kernel log

adb shell "su -c 'cat /proc/kmsg'" | tee kernel.log

adb shell cat /proc/last_kmsg > last_kmsg

adb shell cat /sys/fs/pstore/console-ramoops > last_kmsg

adb shell su -c "echo 0 > /proc/sys/kernel/kptr_restrict"

posted @ 2017-12-26 11:36  jeremyatchina  阅读(139)  评论(0编辑  收藏  举报