summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adrian Roos <roosa@google.com> 2014-07-23 15:45:05 +0200
committer Adrian Roos <roosa@google.com> 2014-07-24 14:32:26 +0000
commit4f994eb2ddbe68b0eada89dcaae34c079df55c7e (patch)
tree18a65e38a9598ea8778e0aa568a4395ed70ca9f8
parentacb4099deff72c2c631f7110a405a3331d3e8b27 (diff)
Disable trust agents after wrong credential is entered
Bug: 16498202 Change-Id: I36f2e80aec8c04bcb6e6d9f1b0e2ebb8fc49998e
-rw-r--r--core/java/com/android/internal/widget/LockPatternUtils.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/java/com/android/internal/widget/LockPatternUtils.java b/core/java/com/android/internal/widget/LockPatternUtils.java
index b5bfe49f3974..7e8d8287bc84 100644
--- a/core/java/com/android/internal/widget/LockPatternUtils.java
+++ b/core/java/com/android/internal/widget/LockPatternUtils.java
@@ -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() {