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

Commit 786640c6 authored by Kevin Chyn's avatar Kevin Chyn Committed by android-build-merger
Browse files

Merge "Biometric HAL death should invoke handleError on the handler" into qt-r1-dev am: b33242a5

am: 727d106a

Change-Id: Ibbce277b25f0db65112504a18986923b6b5a769b
parents e3d284e2 727d106a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -665,8 +665,12 @@ public abstract class BiometricServiceBase extends SystemService
        mMetricsLogger.count(getConstants().tagHalDied(), 1);
        mHALDeathCount++;
        mCurrentUserId = UserHandle.USER_NULL;

        // All client lifecycle must be managed on the handler.
        mHandler.post(() -> {
            handleError(getHalDeviceId(), BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE,
                    0 /*vendorCode */);
        });

        StatsLog.write(StatsLog.BIOMETRIC_SYSTEM_HEALTH_ISSUE_DETECTED, statsModality(),
                BiometricsProtoEnums.ISSUE_HAL_DEATH);