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

Skip to content
Commit 4a0256ee authored by Christopher Lais's avatar Christopher Lais Committed by Steve Kondik
Browse files

Ignore the system uid to avoid deadlocks



The ActivityManagerService can acquire or release wake locks with the
ActivityManagerService locked.  Now that the PowerManagerService
notifies it of wakelocks, this can cause a deadlock.  Prevent this
situation by ignoring wakelocks from the system uid, which should be
never be killed anyway.

The deadlock occurs when the ActivityManagerService is locked and
the WakeLock acquire/release locks PowerManagerService.mLocks.  Another
thread may have locked them in a different order at the same time.

Signed-off-by: default avatarChristopher Lais <chris+android@zenthought.org>
parent 59be77fd
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