summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kevin Chyn <kchyn@google.com> 2019-03-22 15:52:08 -0700
committer Kevin Chyn <kchyn@google.com> 2019-03-22 17:14:03 -0700
commit938ea3a96f588022bb4b71b3beb578046016b5a4 (patch)
treea95ba10e457c0d927b923e9eabe9bd56fa560754
parent3b1056d2c41739927dbaca0d6dcf4908added6f4 (diff)
Do not remove enumerate client immediately when user switches
The client should not be removed until ERROR_CANCEL is removed in the system service, since that's the HIDL contract. Pending clients will start after, automatically with the current logic. Test: With fingerprint enrolled on multiple users, switch rapidly system service does not crash Fixes: 128346522 Change-Id: I6907d8f76373c012ddffd2b98a81d70e79ac72ab
-rw-r--r--services/core/java/com/android/server/biometrics/BiometricServiceBase.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/biometrics/BiometricServiceBase.java b/services/core/java/com/android/server/biometrics/BiometricServiceBase.java
index 3e48445dfb36..c60dd6ca130a 100644
--- a/services/core/java/com/android/server/biometrics/BiometricServiceBase.java
+++ b/services/core/java/com/android/server/biometrics/BiometricServiceBase.java
@@ -1251,8 +1251,6 @@ public abstract class BiometricServiceBase extends SystemService
if (getCurrentClient() instanceof InternalRemovalClient
|| getCurrentClient() instanceof InternalEnumerateClient) {
Slog.w(getTag(), "User switched while performing cleanup");
- removeClient(getCurrentClient());
- clearEnumerateState();
}
updateActiveGroup(userId, null);
doTemplateCleanupForUser(userId);