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

Commit 4f994eb2 authored by Adrian Roos's avatar Adrian Roos
Browse files

Disable trust agents after wrong credential is entered

Bug: 16498202
Change-Id: I36f2e80aec8c04bcb6e6d9f1b0e2ebb8fc49998e
parent acb4099d
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() {