summaryrefslogtreecommitdiff
path: root/packages/Keyguard
diff options
context:
space:
mode:
authorEdward Savage-Jones <edward.savage-jones@sonymobile.com>2016-10-05 10:29:02 +0200
committerEdward Savage-Jones <edward.savage-jones@sonymobile.com>2016-10-05 16:55:24 +0200
commitb08a14661701621e242acb01a9f858d7c6e34579 (patch)
treec7d1adea4c035c014edee03ce0f0bafe54b5db1e /packages/Keyguard
parent1a02a2683814661fd1fb6ab811fc8f76dc610511 (diff)
Make PIN/password failed attempts dialog non-cancelable
This commit makes it harder for a users pocket to trigger an MDM remote wipe, by setting the warning dialog to noncancelable. With this change the pocket would first need to tap on OK before being able to attempt to enter a PIN. This mirrors the existing behaviour of both PIN and PUK warning dialogs. Test: manual - enable an MDM set to trigger a wipe of the device/user on unsucessful unlock attempts. Then incorrectly enter your PIN until the warning dialog appears. The dialog should only be dismissable by pressing the 'OK' button. Change-Id: I4d86af555a5d8b226ceffa4711bd5e277db93f1e
Diffstat (limited to 'packages/Keyguard')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
index a7e4e1272a60..61e2fc095edb 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
@@ -173,6 +173,7 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
final AlertDialog dialog = new AlertDialog.Builder(mContext)
.setTitle(title)
.setMessage(message)
+ .setCancelable(false)
.setNeutralButton(R.string.ok, null)
.create();
if (!(mContext instanceof Activity)) {