mtk 死机命令

以下是死机后的抓取log的命令,写成脚本保存dead.bat


@echo "Pull important information from hang phone, written by Yanghui Li"

adb devices


@echo "attach sdcard/mtklog"
adb pull /sdcard/mtklog mtklog/
 
@echo “attach sdcard2/mtklog”
adb pull /sdcard2/mtklog mtklog/sdcard2
 
@echo "attach trace"
adb pull /data/anr mtklog/anr
 
@echo "attach rtt dump for surfaceflinger"
adb pull /data/rtt_dump*  mtklog/sf_dump
adb pull /data/anr/sf_rtt mtklog/sf_rtt_1
 
@echo "attach data aee db"
adb pull /data/aee_exp mtklog/data_aee_exp
 
@echo "attach data mobilelog"
adb pull /data/mobilelog mtklog/data_mobilelog
 
@echo "attach NE core"
adb pull /data/core mtklog/data_core
 
@echo "attach tombstones"
adb pull /data/tombstones mtklog/tombstones
 
@echo “attach phone state”
adb shell ps -t> mtklog/ps.txt
adb shell top -t -m 5 -n 3 > mtklog/top.txt
adb shell service list  >  mtklog/serviceList.txt
adb shell cat /proc/meminfo > mtklog/meminfo
adb shell cat /proc/buddyinfo > mtklog/buddyinfo
adb shell procrank > mtklog/procrank.txt
adb shell cat proc/sched_debug > mtklog/sched_debug.txt
adb shell cat proc/interrupts > mtklog/interrupts.txt
adb shell dumpstate > mtklog/dumpstate.txt


@echo "finish."

pause




以下是死机重启后抓取log的命令,写成脚本保存reboot.bat


%Writed by Yanghui Li%
adb devices
@echo "抓出sdcard/mtklog"
adb pull /sdcard/mtklog mtklog/
 
@echo “抓出sdcard2/mtklog”
adb pull /sdcard2/mtklog mtklog/sdcard2
 
@echo "抓出trace"
adb pull /data/anr mtklog/anr
 
@echo "抓出data aee db"
adb pull /data/aee_exp mtklog/data_aee_exp
 
@echo "抓出data mobilelog"
adb pull /data/mobilelog mtklog/data_mobilelog
 
@echo "抓出NE core"
adb pull /data/core mtklog/data_core
 
@echo "抓出tombstones"
adb pull /data/tombstones mtklog/tombstones
 
@echo "抓sf rtt"
adb pull /data/rtt_dump* mtklog/sf_rtt
adb pull /data/anr/sf_rtt mtklog/sf_rtt_1
 
@echo "完成"
pause
 

你可能感兴趣的:(mtk命令)