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

Commit 5dc34dd1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Do not start fingerprint HAL if it is unstartable" into main am: 9c5c5301 am: 50c8d5c8

parents fd59d3de 50c8d5c8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -121,6 +121,11 @@ public class FingerprintUpdateActiveUserClient extends StartUserClient<ISession,
            final int targetId = getTargetUserId();
            Slog.d(TAG, "Setting active user: " + targetId);
            HidlToAidlSessionAdapter sessionAdapter = (HidlToAidlSessionAdapter) getFreshDaemon();
            if (sessionAdapter.getIBiometricsFingerprint() == null) {
                Slog.e(TAG, "Failed to setActiveGroup: HIDL daemon is null.");
                mCallback.onClientFinished(this, false /* success */);
                return;
            }
            sessionAdapter.setActiveGroup(targetId, mDirectory.getAbsolutePath());
            mAuthenticatorIds.put(targetId, mHasEnrolledBiometrics
                    ? sessionAdapter.getAuthenticatorIdForUpdateClient() : 0L);
+4 −0
Original line number Diff line number Diff line
@@ -209,6 +209,10 @@ public class HidlToAidlSessionAdapter implements ISession {
        return null;
    }

    protected IBiometricsFingerprint getIBiometricsFingerprint() {
        return mSession.get();
    }

    public long getAuthenticatorIdForUpdateClient() throws RemoteException {
        return mSession.get().getAuthenticatorId();
    }