Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40386dfd authored by Robert Berry's avatar Robert Berry
Browse files

Only run KeySyncTask after a successful screen unlock

Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I7248587f555ad921c54097f13b128df40f9b3855
parent 9e500594
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1586,8 +1586,10 @@ public class LockSettingsService extends ILockSettings.Stub {
                userId, progressCallback);
        // The user employs synthetic password based credential.
        if (response != null) {
            if (response.getResponseCode() == VerifyCredentialResponse.RESPONSE_OK) {
                mRecoverableKeyStoreManager.lockScreenSecretAvailable(credentialType, credential,
                        userId);
            }
            return response;
        }