Disable trust agents after wrong credential is entered

Bug: 16498202
Change-Id: I36f2e80aec8c04bcb6e6d9f1b0e2ebb8fc49998e
This commit is contained in:
Adrian Roos
2014-07-23 15:45:05 +02:00
parent acb4099def
commit 4f994eb2dd

View File

@@ -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() {