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

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

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

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


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


    public void reportSuccessfulPasswordAttempt() {
    public void reportSuccessfulPasswordAttempt() {