简单地整理了部分adb shell的命令,参考了其他技术大牛的整理的内容,盗用一下。
//输出系统状态信息至F:\test\dumpstate.txt,由于需要root权限,所以没root的过的手机输出为空
adb shell dumptate >F:\test\dumpstate.txt
//输出过去系统的状态,log,一般操作过程中未抓取log的时候一旦出现问题就使用这个命令来查看
adb shell bugreport >F:\test\bugreport.txt
//输出内核信息
adb shell dmesg
//输出当前缓冲区日志 并保存
adb shell logcat >F:\test\bugreport.txt