Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b762c39 authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Suppress msgs from FACE_ERROR_UNABLE_TO_PROCESS

Don't surface error messages on the lock screen
for FACE_ERROR_UNABLE_TO_PROCESS. After 500ms
from receiving this error, keyguard attempts
to face auth again anyway (see
KeyguardUpdateMonitor#HAL_ERROR_RETRY_ERROR_TIMEOUT).

Test: atest KeyguardIndicationControllerTest
Test: enroll face, press power button to LS,
use camera app, then navigate back to LS, don't
see the UNABLE_TO_PROCESS error.
Bug: 223768181

Change-Id: I0eb017f5e5f31d8fabf36876ea0949050a9f5f58
parent d969a105
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1023,6 +1023,13 @@ public class KeyguardIndicationController {
            }

            if (biometricSourceType == BiometricSourceType.FACE
                    && msgId == FaceManager.FACE_ERROR_UNABLE_TO_PROCESS) {
                // suppress all face UNABLE_TO_PROCESS errors
                if (DEBUG) {
                    Log.d(TAG, "skip showing FACE_ERROR_UNABLE_TO_PROCESS errString="
                            + errString);
                }
            } else if (biometricSourceType == BiometricSourceType.FACE
                    && msgId == FaceManager.FACE_ERROR_TIMEOUT) {
                if (mKeyguardUpdateMonitor.getCachedIsUnlockWithFingerprintPossible(
                        KeyguardUpdateMonitor.getCurrentUser())) {