android手机开机log抓取命令如下:
adb reboot
adb wait-for-device shell logcat -v threadtime > C:\Users\ynwang\Desktop\img\2.log //获取logcat
adb wait-for-device shell dmesg > C:\Users\ynwang\Desktop\img\kernel2.log //获取kernel log
停止保存:
Ctrl+C
wait-for-device: 等待android设备处于在线状态之后执行命令,也就是说等正确连接到设备后立即执行后面的命令.