Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在开发过程中,我遇到了崩溃,并显示了内核恐慌上传模式。
有没有办法以某种方式连接到设备并提取日志?
我希望这就是您正在寻找的...来源:StackOverflow Android 创建一个 RAM 控制台并尝试将最后一个内核消息缓冲区保存在 RAM 中(假设电源没有熄灭)。您可以通过 proc 接口访问此文件,并且在系统上它是文字可读的:
cat /proc/last_kmsg
更多信息参见内核代码@drivers/staging/android/ram_console.c
drivers/staging/android/ram_console.c