diff options
author | Tony Mak <tonymak@google.com> | 2017-12-12 19:50:57 +0000 |
---|---|---|
committer | Tony Mak <tonymak@google.com> | 2017-12-12 21:45:45 +0000 |
commit | 553b99751c44f8b5bbba26b05e92a0854c654f0a (patch) | |
tree | 530356fb1a6a51d5ccb2bbbfea072e1caf6afd0f /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 7d37e95d5475dd0575232439ce9bf036a9df2b6d (diff) |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions