summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/EglManager.cpp
diff options
context:
space:
mode:
authorPavel Grafov <pgrafov@google.com>2018-08-15 20:02:58 +0100
committerPavel Grafov <pgrafov@google.com>2018-08-16 14:31:08 +0100
commitb90dc43e15575741d98dc8de17972949430f0acf (patch)
tree5678098dff57e241b356006e35d4e163a1376f24 /libs/hwui/renderthread/EglManager.cpp
parent63796b8a2bce722290d92b934f9153b1e227a032 (diff)
Use DPM's counter for invalid password attempts
Currently Keyguard uses separate counter for invalid password attempts that is not persisted and is always initialized to zero after boot, so if the user made several attempts and rebooted the device, the device will show more allowed attempts before wipe than actually available. The counter is also incorrectly reset to zero when fingerprint is used successfully. With this CL the same counter is used for that message and for actual wipe triggering, it is persisted and is not reset upon reboot or fingerprint authehtication. Counting failed password attempts should be available in DevicePolicyManager even without PackageManager.FEATURE_DEVICE_ADMIN. Test: manual, tried using fingerprint and rebooting. Bug: 112588257 Change-Id: I1f4012a95c6f6758885206f69e7ebe2c3704a567
Diffstat (limited to 'libs/hwui/renderthread/EglManager.cpp')
0 files changed, 0 insertions, 0 deletions