OSDN Git Service

Make PIN/password failed attempts dialog non-cancelable
authorEdward Savage-Jones <edward.savage-jones@sonymobile.com>
Wed, 5 Oct 2016 08:29:02 +0000 (10:29 +0200)
committerEdward Savage-Jones <edward.savage-jones@sonymobile.com>
Wed, 5 Oct 2016 14:55:24 +0000 (16:55 +0200)
commitb08a14661701621e242acb01a9f858d7c6e34579
treec7d1adea4c035c014edee03ce0f0bafe54b5db1e
parent1a02a2683814661fd1fb6ab811fc8f76dc610511
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
packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java