Make DPM.isActivePasswordSufficient() synchronous again
At the moment isActivePasswordSufficient() can return stale result immediately after a password change since the latest password metrics information is pushed from LSS to DPMS asynchronously (this is to avoid deadlock between LSS and DPMS due to lock inversion). Fix this by moving the password metrics ground truth to LSS, and make DPMS query LSS about the password metrics when needed. Bug: 37090873 Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest Test: atest com.android.server.locksettings Test: atest DeviceAdminHostSideTestApi24#testResetPassword_nycRestrictions Test: atest DeviceAdminHostSideTestApi24#testRunDeviceOwnerPasswordTest Test: atest MixedManagedProfileOwnerTest#testPasswordQualityWithoutSecureLockScreen Test: atest MixedManagedProfileOwnerTest#testResetPasswordWithToken Test: atest MixedManagedProfileOwnerTest#testPasswordSufficientInitially Change-Id: Ib1d1716024b8a6a6554afdb4ee9824d457ed8308
Loading
Please register or sign in to comment