使用脚本导出android 手机log

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

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


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

adb wait-for-device
choice /t 1 /d y /n >nul
adb root
choice /t 5 /d y /n >nul
adb remount
choice /t 5 /d y /n >nul
adb pull /data/anr/traces.txt anr_logs
choice /t 5 /d y /n >nul
adb pull /cache cache_logs
choice /t 5 /d y /n >nul
adb pull /mnt/sdcard/logs sdcard_logs
choice /t 5 /d y /n >nul
adb pull /data/logs logs
pause

保存成bat文件

你可能感兴趣的:(Android开发,Intel)