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"