概述
Android的稳定性包含以下几个方面:
1.ANR
2.Crash
3.Tombstone
4.Freeze
5.黑屏
6.冻屏
#稳定性问题分析以及需要的相关log
/data/anr/traces.txt
/data/system/dropbox
/data/tombstones
Android系统各种稳定性问题所需要的log
Android系统各种稳定性问题所需要的log
adb shell bugreport > bugreport.txt
adb shell dumpstate > dumpstate.log (this command will produce trace log about all process then u need adb pull /data/anr to collect the trace log)
adb shell dumpsys > dumpsys.log
adb pull /data/tombstones (All log file time must be consistent with issue occurred time, it needs to clear /data/anr &; /data/tombstones after stability issue occu)
System Freeze/ Touch panel freeze系统卡死/屏幕卡死
adb shell getevent 此命令可以获取实时触屏以及按键事件log
adb shell getevent -rtl /dev/input/event0 按键事件
open echo w > /proc/sysrq-trigger when capture