桌面ANR分析的一个案例

https://jira.n.xiaomi.com/browse/AM-54822

分析步骤

1. 通过Bugreport查看定位ANR问题的类型

从提供的log中看,机器未发生死机,power键可用,可以下拉状态栏。

09-07 16:04:00.998  1000  1524  1885 W MiuiInputKeyEventLog: keyCode:23 down:true eventTime:176241572 downTime:176241572 policyFlags:22000002 flags:48 metaState:0 deviceId:0 isScreenOn:true keyguardActive:false repeatCount:0
09-07 16:04:01.004  1000  1524  1885 W MiuiInputKeyEventLog: keyCode:23 down:false eventTime:176241577 downTime:176241572 policyFlags:22000002 flags:48 metaState:0 deviceId:0 isScreenOn:true keyguardActive:false repeatCount:0
09-07 16:04:08.022  1000  1524  1885 W MiuiInputKeyEventLog: keyCode:23 down:true eventTime:176248595 downTime:176248595 policyFlags:22000002 flags:48 metaState:0 deviceId:0 isScreenOn:true keyguardActive:false repeatCount:0
09-07 16:04:08.027  1000  1524  1885 W MiuiInputKeyEventLog: keyCode:23 down:false eventTime:176248600 downTime:176248595 policyFlags:22000002 flags:48 metaState:0 deviceId:0 isScreenOn:true keyguardActive:false repeatCount:0
09-07 16:10:51.374  1000  1524  1838 W MIUIInput: Input event injection from pid 24039 action ACTION_DOWN
09-07 16:10:51.375  1000  1524  1838 W MIUIInput: Input event injection from pid 24039 action ACTION_UP
09-07 16:11:14.181  1000  1524  1885 W MiuiInputKeyEventLog: keyCode:23 down:true eventTime:176674754 downTime:176674754 policyFlags:22000002 flags:48 metaState:0 deviceId:0 isScreenOn:true keyguardActive:false repeatCount:0
09-07 16:11:14.186  1000  1524  1885 W MiuiInputKeyEventLog: keyCode:23 down:false eventTime:176674759 downTime:176674754 policyFlags:22000002 flags:48 metaState:0 deviceId:0 isScreenOn:true keyguardActive:false repeatCount:0
09-07 16:11:14.848  1000  1524  1885 W MiuiInputKeyEventLog: keyCode:23 down:true eventTime:176675421 downTime:176675421 policyFlags:22000002 flags:48 metaState:0 deviceId:0 isScreenOn:true keyguardActive:false repeatCount:0
09-07 16:11:14.853  1000  1524  1885 W MiuiInputKeyEventLog: keyCode:23 down:false eventTime:176675426 downTime:176675421 policyFlags:22000002 flags:48 metaState:0 deviceId:0 isScreenOn:true keyguardActive:false repeatCount:0