GATT:[ANR Fix] Handle onDisplayChanged related tasks in Handler context
Usecase:
Trigger action to change ot turn off the display while BLE
scan is going on.
Issue:
ANR in com.android.bluetooth (rare case)
Root Cause:
Bluetooth main thread is blocked on main thread for executing tasks
of onDisplayChanged(). This task is blocked
on framework API DeviceManager.getDisplays(). Multiple processed
were blocked to get Screen status and resulted in ANR.
Fix:
Handle onDisplayChanged related tasks in Handler context
Change-Id: I97d4d6f82a0d525ac9183fe035e49a15488ea7a1
CRs-Fixed: 2386230
1 file changed