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

Commit 82c69920 authored by Dmitry Dementyev's avatar Dmitry Dementyev Committed by Android (Google) Code Review
Browse files

Merge "Log a warning if random profile password is used in RecoveryController." into main

parents 46bca737 373165f8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -168,6 +168,11 @@ public class KeySyncTask implements Runnable {
    }

    private void syncKeys() throws RemoteException {
        if (mCredential != null && mCredential.length >= 80) {
            // The value is likely a randomly generated profile password
            // It doesn't match string typed by the user.
            Log.e(TAG, "Unexpected credential length for user " + mUserId);
        }
        if (mCredentialUpdated && mRecoverableKeyStoreDb.getBadRemoteGuessCounter(mUserId) != 0) {
            mRecoverableKeyStoreDb.setBadRemoteGuessCounter(mUserId, 0);
        }