diff options
| author | 2017-05-15 11:50:09 +0100 | |
|---|---|---|
| committer | 2017-05-15 14:45:55 +0100 | |
| commit | 04a4e1de71189c6ead8cb363f393ea7e0e4db0c7 (patch) | |
| tree | 5196c36d4d8d56230ce6085099cba9a841836ec7 /libs/hwui/ProgramCache.cpp | |
| parent | 247b9c4a0a6720816c1119df7a05d18a8fe8f35d (diff) | |
Fix a deadlock in LockSettingsService
Order of taking locks in LSS: mSeparateChallengeLock -> mSpManager -> this.
Since getGateKeeperService().getSecureUserId() will end up calling
getSeparateProfileChallengeEnabled() which tries to acquire mSeparateChallengeLock
, we shouldn't be holding this lock while calling getSecureUserId()
Also spell out the order of taking locks in a comment.
Test: while device lockscreen is being changed, run "adb shell dumpsys lock_settings"
and verify device is not locked up.
Bug: 37663848
Change-Id: I6b780ab5d1e33b07392f0ab0df29ecc3956f89ff
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions