查看系统的所有log,以下提供些关键词和关键log仅供参考
第一:包名
第二:Exception
第三:crash
第四:force
第五:kill
第六:died
06-23 13:35:51.960 1511 1566 I ActivityManager: Process com.android.settings (pid 1906) has died
06-23 12:59:23.310 355 361 W ProcessKiller: 4775 kill successfully
06-23 13:36:12.641 3716 3716 I mh : initSettings, CrashReportingEnabled = true
06-23 13:36:12.521 3716 3716 I jt : initSettings, ReportLocation = false
06-23 13:34:11.143 1511 2518 I am_crash: [1892,0,com.android.systemui
06-23 13:34:11.200 1511 1858 I am_proc_died: [0,1892,com.android.systemui]
06-23 13:34:11.201 1511 1858 I am_schedule_service_restart: [0,com.android.systemui/.ImageWallpaper,0]
06-23 13:34:11.221 1511 1858 I am_proc_start: [0,2978,10040,com.android.systemui,restart,com.android.systemui]
06-23 13:34:11.256 1511 1645 I am_meminfo: [775147520,1269710848,12288,177090560,249965568]
--------- beginning of system
06-30 16:29:11.204 1587-2363/? I/ActivityManager: Process com.kingstudio.purify:service (pid 2591) has died
06-30 16:29:11.204 1587-2363/? D/ActivityManager: cleanUpApplicationRecord -- 2591
06-30 16:29:12.974 471-471/? E/lowmemorykiller: Error writing /proc/2900/oom_score_adj; errno=22
--------- beginning of crash
com.kingstudio.purify
06-23 13:35:51.960 1511 1566 D ActivityManager: cleanUpApplicationRecord -- 1906
06-23 13:35:53.410 1511 3702 W ActivityManager: Ignoring remove of inactive process: ProcessRecord{12260aa 0:com.android.settings/1000}
用adb 命令, adb pull data/anr/traces.txt d:traces.txt
ANR in com.android.settings (com.android.settings
06-30 09:18:59.419 1528 1607 I am_anr : [0,4759,com.android.settings,948485701,Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 23. Wait queue head age: 5899.0ms.)]
CPU usage from
06-16 04:27:44.040 1594 2924 W ActivityManager: Force-killing crashed app com.android.settings
06-16 04:27:44.050 1594 2924 W ActivityManager: Force finishing activity com.android.settings
grep -C 1 "ANR in com.android.settings" . --include="*.*" -rn
ANR in com.android.settings
// CRASH: com.android.settings (pid 1596)