Rubin Xu 359a6b5c06 Do not set separate challenge flag before clearing lock
This step is redundant since clearLock() would set the flag internally anyway.
In fact setting the flag before calling clearLock() is wrong since it will
lead LockSettingsService.setLockCredential() to think that the target profile
does not have a unified challenge, causing it to use an incorrect existing
credential for password change, leading to untrusted credential change.

Bug: 77892111
Test: Create profile; set separate empty work challenge; observe no crash
Change-Id: I4d76b20706a796654f9389f31ae8c46d51d7adac
2018-04-11 11:43:18 +01:00
2018-04-04 16:08:17 -04:00
2015-04-13 09:21:39 -07:00
2017-10-13 15:59:03 -07:00
2018-04-04 16:08:17 -04:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%