Skip to content
Commit 1286b571 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Add pre-dump for input ANR

If an input ANR is caused by the lock of window manager
or activity manager is held for a long time, we usually
get an unhelpful stack traces because the ANR reporting
is also blocked by the locks.

The pre-dump checks if the locks cannot be acquired within
a timeout, then dump the stack trace at the beginning of
notifying ANR.

Bug: 144987910
Test: 1. Launch a simple app.
      2. Set break-points inside the lock of window manager
         and activity manager.
      3. Press back key and wait 5s.
      4. Check the path /data/anr/ in device. There should
         be a filename ends with "_pre".

Change-Id: I9831a31e17661d822572c73e64fe9980fe018b22
parent fbe8eca9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment