OSDN Git Service

Keyguard: Change fingerprint listening behavior
authorPaul Keith <javelinanddart@gmail.com>
Sat, 19 Aug 2017 15:45:21 +0000 (17:45 +0200)
committerHarry Youd <harry@harryyoud.co.uk>
Mon, 28 Aug 2017 08:46:22 +0000 (08:46 +0000)
commitc0f1177ce6a561d3b31c525c1259208bb69d0452
treed64e5fe2d120372bf5fefa2c04883bce676fe7ca
parent0f1f3418f18287f56736010b562d38e461afcc5c
Keyguard: Change fingerprint listening behavior

* This patch affects devices that disable fingerprint
  wake-and-unlock via config_fingerprintWakeAndUnlock,
  and is mainly for fp scanners in the power button
* Don't listen to fingerprints when going to sleep
  to avoid a wakeup being triggered after pressing
  the power button to turn the screen off
* Fixes the following scenario:
 - Turn device on with not registered finger
 - Check time (or something on lock screen)
 - Use registered finger to turn off device,
   and leave finger on the scanner
 - Device screen turns off
 - Device wakes up at home screen

Change-Id: Ia40a6a763420cd716796515ddb9b816232218dc0
packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java