Skip to content
Commit 553b9975 authored by Tony Mak's avatar Tony Mak
Browse files

Fix trySetQuietModeDisabled may introduce deadlock

1. UserController.mLock is held
2. mUnlockProgress.addListener
3. Find that it is unlocked and hence, call the onFinished callback
   right away.
4. Trying to call the callback in UMS, which calls startIntentSender.
5. startIntentSender requires AMS lock.

So, if there is another thread is holding AMS lock and
waiting for UserController.mLock, deadlock happens.

Test: Try turning on / off work mode

Change-Id: I341c2f1572302863d7972742142aa0f3948cd524
parent 7d37e95d
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