OSDN Git Service

Disable bypass and bouncer delay when no face auth
authorLucas Dupin <dupin@google.com>
Wed, 17 Jul 2019 23:25:54 +0000 (16:25 -0700)
committerLucas Dupin <dupin@google.com>
Thu, 18 Jul 2019 21:24:08 +0000 (14:24 -0700)
commit7d95f154a0f4a575a6b4e2e1d41294db87108212
treed4b48ff82927827f162b12ee260e8639d8ef9e1c
parent07b86837af9ea730747792635fc69d6ebdf2dc28
Disable bypass and bouncer delay when no face auth

KeyguardUpdateMonitor#isUnlockWithFacePossible was returning true
when the user had disabled face unlock.

This was causing bypass to still be enabled (hiding all notifications)
and bouncer was also being delayed, even though we were not scanning.

Fixes: 134977472
Test: auth with bypass (toggling face auth setting on/off)
Test: auth without bypass (toggling face auth setting on/off)
Change-Id: I234eb303db87fe0dafa2073a9bdf819c665018d6
core/java/android/hardware/biometrics/IBiometricEnabledOnKeyguardCallback.aidl
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockMethodCache.java
packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java
services/core/java/com/android/server/biometrics/BiometricService.java