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

Commit caa2ea7e authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Set current user to USER_NULL when HAL dies

Fixes: 129527541

Test: 1) Enroll fingerprint
      2) Go to keyguard
      3) Kill fingerprint HAL
      4) Look at enumerate logs after HAL is back - no fingerprints removed
      5) Authenticate works as expected

Change-Id: I11520cd3e55ed5e7fcf0f94782a6dc4fa85735c8
parent 1d6a2867
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -657,6 +657,7 @@ public abstract class BiometricServiceBase extends SystemService
        Slog.e(getTag(), "HAL died");
        mMetricsLogger.count(getMetrics().tagHalDied(), 1);
        mHALDeathCount++;
        mCurrentUserId = UserHandle.USER_NULL;
        handleError(getHalDeviceId(), BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE,
                0 /*vendorCode */);