Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9c0e585 authored by louis_chang's avatar louis_chang Committed by Steve Kondik
Browse files

Avoid deadlock during device boot up

PowerManager invokes registerReceiver while holding mLock
when system ready. There have chances that the system_server
main thread will be blocked to wait for ActivityManagerService
object while the other thread was performing configuration
updates.

Solution:
Avoid holding locks while invokes registerReceiver()

Similar issue:
https://code.google.com/p/android/issues/detail?id=186872

Change-Id: I6f3db0758959bef5d8872c74e28e0491ee786ee6
parent 9714e26d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment