Correctly unlock storage for work profiles with unified challenge
When turning off quiet mode for work profiles, ACTION_CONFIRM_DEVICE_CREDENTIAL_WITH_USER is fired to confirm the device/profile PIN in order to decrypt the profile's storage. For work profiles with unified challenge, we are expected to call LockPatternUtils.verifyTiedProfileChallenge() that specifically decrypts the work profile's storage using the device PIN. This code flow is only reachable when mForceVerifyPath is true in ConfirmDeviceCredentialActivity. In I8b61e7d2df5792cbdb2e12b19e5a5582ea2290b7 a regression was introduced that caused the wong condition to be used, and as a result work profile with unified challenge is no longer unlocked correctly in this unlock flow. This bug is normally masked since we cache the unified work profile's password and don't ask the user for device PINs most of the time. It's only reproducible when turning on work profile from the keyguard, when we don't use the password cache. Fix this by using the right condition. Bug: 328640625 Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.password Change-Id: I5eb9379dc140c9803f033beee38fcd63aa9a85c0
Loading
Please register or sign in to comment