summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Rubin Xu <rubinxu@google.com> 2016-12-20 18:45:03 +0000
committer Rubin Xu <rubinxu@google.com> 2016-12-20 18:47:54 +0000
commitd37c824c14f32d1863ed9f86045e7c1ec2002e8c (patch)
tree8c3d21ed02ac491756fdceb75d6d02e30c110a40
parent19e2fb57c9ad5788253543cd2e3a8e8f4a72d61f (diff)
Update active fingerprint group when switching profiles
Active group needs to be updated as soon as the user switches to a work profile app. This is to ensure that the authenticator Id returned by FingerprintService is always up-to-date, which is accessed by KeyStore to provision authentication-bound keys. Bug: 33459191 Test: manual Change-Id: I3641cd61400771df23f1174e1057ba388d6f8efb
-rw-r--r--services/core/java/com/android/server/fingerprint/FingerprintService.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/fingerprint/FingerprintService.java b/services/core/java/com/android/server/fingerprint/FingerprintService.java
index 3f0ebf28bbfd..d4814ceac35c 100644
--- a/services/core/java/com/android/server/fingerprint/FingerprintService.java
+++ b/services/core/java/com/android/server/fingerprint/FingerprintService.java
@@ -1142,6 +1142,12 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe
mHandler.obtainMessage(MSG_USER_SWITCHING, newUserId, 0 /* unused */)
.sendToTarget();
}
+
+ @Override
+ public void onForegroundProfileSwitch(int newProfileId) throws RemoteException {
+ mHandler.obtainMessage(MSG_USER_SWITCHING, newProfileId, 0 /* unused */)
+ .sendToTarget();
+ }
}, TAG);
} catch (RemoteException e) {
Slog.w(TAG, "Failed to listen for user switching event" ,e);