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

Commit b33242a5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 5e1a2df8 2e312791
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);