Do not call into ActivityManager when holding mSpManager lock
Otherwise deadlock will arise since keyguard related execution flow
calls into LockSettingsService.havePassword() when holding ActivityManager
lock.
Bug: 62533880
Test: 1. Set device with Pattern/PIN/Password
2. From Quick Settings > Select Add user
3. From Secondary user welcome screen Click "Cancel" and then choose "Keep user"
4. Swipe to go to Security lock screen > Tap on Emergency link > Select Emergency Information > Tap on Edit icon
5. Now unlock the device using PIN/Password/Pattern
6. No deadlock should be observed
Change-Id: I41ec9d44a10c8ea6d2aff270a947fd3b8209fbcf
1 file changed