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

Commit 6c964e74 authored by Adrian Roos's avatar Adrian Roos Committed by Android Git Automerger
Browse files

am 1787ea77: am 0f53ad6f: Disable trust agents after wrong credential is entered

* commit '1787ea77745b381c6a1971759f7c62397d90e69f':
  Disable trust agents after wrong credential is entered
parents aadcb5b2 f82e52c9
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -256,15 +256,11 @@ public class LockPatternUtils {
                getCurrentOrCallingUserId());
    }

    /**
     * Returns the actual password mode, as set by keyguard after updating the password.
     *
     * @return
     */
    public void reportFailedPasswordAttempt() {
        getDevicePolicyManager().reportFailedPasswordAttempt(getCurrentOrCallingUserId());
        getTrustManager().reportUnlockAttempt(false /* authenticated */,
                getCurrentOrCallingUserId());
        int userId = getCurrentOrCallingUserId();
        getDevicePolicyManager().reportFailedPasswordAttempt(userId);
        getTrustManager().reportUnlockAttempt(false /* authenticated */, userId);
        getTrustManager().reportRequireCredentialEntry(userId);
    }

    public void reportSuccessfulPasswordAttempt() {