-
- Downloads
services: Workaround for our face unlock initialization [1/2]
AuthService registers the authenticators only once and then onAllAuthenticatorsRegistered() callbacks are invoked. The callbacks are removed as soon as it invoked. Our LMO face unlock authenticator isn't being registered via AuthService. When we register it, the onAllAuthenticatorsRegistered() callbacks aren't available at that time so our face unlock isn't being initialized properly and end up with bugs like "Face unlock isn't working after reboot". As a workaround, we don't invoke callbacks if it's first time (from AuthService). Instead we register our face unlock here on first time to make sure callbacks are being called only after our face unlock authenticator registration. If properties aren't empty, it's from hardware face sensor. so allow to invoke callbacks regardless of the first time. Change-Id: I26238a35f09d9cb398355d9467d44cd24b0e2525
Showing
- services/core/java/com/android/server/biometrics/sensors/BiometricServiceRegistry.java 37 additions, 4 deletions...d/server/biometrics/sensors/BiometricServiceRegistry.java
- services/core/java/com/android/server/biometrics/sensors/face/FaceService.java 1 addition, 1 deletion...m/android/server/biometrics/sensors/face/FaceService.java
- services/core/java/com/android/server/biometrics/sensors/face/FaceServiceRegistry.java 3 additions, 2 deletions...d/server/biometrics/sensors/face/FaceServiceRegistry.java
- services/core/java/com/android/server/biometrics/sensors/fingerprint/FingerprintService.java 2 additions, 1 deletion...er/biometrics/sensors/fingerprint/FingerprintService.java
- services/core/java/com/android/server/biometrics/sensors/fingerprint/FingerprintServiceRegistry.java 3 additions, 2 deletions...trics/sensors/fingerprint/FingerprintServiceRegistry.java
- services/core/java/com/android/server/libremobileos/FaceUnlockHelper.java 127 additions, 0 deletions...va/com/android/server/libremobileos/FaceUnlockHelper.java
Loading
Please register or sign in to comment