Merge "Ensure the getCredentialType cache gets enabled" into udc-qpr-dev

This commit is contained in:
Eric Biggers
2023-07-17 16:27:50 +00:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 1 deletions

View File

@@ -1035,7 +1035,7 @@ public class LockPatternUtils {
CREDENTIAL_TYPE_API, CREDENTIAL_TYPE_API, mCredentialTypeQuery);
/**
* Invalidate the credential cache
* Invalidate the credential type cache
* @hide
*/
public final static void invalidateCredentialTypeCache() {

View File

@@ -844,6 +844,10 @@ public class LockSettingsService extends ILockSettings.Stub {
getAuthSecretHal();
mDeviceProvisionedObserver.onSystemReady();
// Work around an issue in PropertyInvalidatedCache where the cache doesn't work until the
// first invalidation. This can be removed if PropertyInvalidatedCache is fixed.
LockPatternUtils.invalidateCredentialTypeCache();
// TODO: maybe skip this for split system user mode.
mStorage.prefetchUser(UserHandle.USER_SYSTEM);
mBiometricDeferredQueue.systemReady(mInjector.getFingerprintManager(),