使用脚本导出android 手机log

来源:互联网 发布:linux网络连接命令 编辑:程序博客网 时间:2024/06/01 07:27

在平时的工作中,可能我们会需要抓取各种各样的log,但是每次都要经历,adb shell ,,, adb pull ...等各类繁琐的抓取过程。

或者使用软件抓取比如intel的MTPA软件。


这里提供几句脚本,在windows系统中直接抓取log、省时省力

adb wait-for-devicechoice /t 1 /d y /n >nuladb rootchoice /t 5 /d y /n >nuladb remountchoice /t 5 /d y /n >nuladb pull /data/anr/traces.txt anr_logschoice /t 5 /d y /n >nuladb pull /cache cache_logschoice /t 5 /d y /n >nuladb pull /mnt/sdcard/logs sdcard_logschoice /t 5 /d y /n >nuladb pull /data/logs logspause

保存成bat文件

0 0