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

Commit 727d106a 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

Change-Id: I88075e1222973f965b8f72146bd1aaf01c6a5ef7
parents a7d269bc b33242a5
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);