adb shell "su -c 'cat /proc/kmsg'" | tee kernel.logshell
adb shell "su -c 'cat /proc/kmsg'" | tee kernel.log
adb shell cat /proc/last_kmsg > last_kmsgoop
adb shell cat /proc/last_kmsg > last_kmsg
adb shell cat /sys/fs/pstore/console-ramoops > last_kmsgrest
adb shell cat /sys/fs/pstore/console-ramoops > last_kmsg
adb shell su -c "echo 0 > /proc/sys/kernel/kptr_restrict"code
adb shell su -c "echo 0 > /proc/sys/kernel/kptr_restrict"