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

Commit d37c824c authored by Rubin Xu's avatar Rubin Xu
Browse files

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
parent 19e2fb57
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);