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

Commit d6ca0d30 authored by Joshua Mccloskey's avatar Joshua Mccloskey
Browse files

Added default method to Fingerprint21

Test: Verified adding fingerprints and faces do not
cause a bootloop.
Fixes: 179082812

Change-Id: Ie74c2fb027cb73a5bafa9a8548656284619a8828
parent 9eba46e7
Loading
Loading
Loading
Loading
+2 −5
Original line number Original line Diff line number Diff line
@@ -114,11 +114,8 @@ public interface ServiceProvider {
     * Requests for the authenticatorId (whose source of truth is in the TEE or equivalent) to
     * Requests for the authenticatorId (whose source of truth is in the TEE or equivalent) to
     * be invalidated. See {@link com.android.server.biometrics.sensors.InvalidationRequesterClient}
     * be invalidated. See {@link com.android.server.biometrics.sensors.InvalidationRequesterClient}
     */
     */
    default void scheduleInvalidateAuthenticatorId(int sensorId, int userId,
    void scheduleInvalidateAuthenticatorId(int sensorId, int userId,
            @NonNull IInvalidationCallback callback) {
            @NonNull IInvalidationCallback callback);
        throw new IllegalStateException("Providers that support invalidation must override"
                + " this method");
    }


    long getAuthenticatorId(int sensorId, int userId);
    long getAuthenticatorId(int sensorId, int userId);


+12 −0
Original line number Original line Diff line number Diff line
@@ -28,6 +28,7 @@ import android.content.pm.UserInfo;
import android.hardware.biometrics.BiometricConstants;
import android.hardware.biometrics.BiometricConstants;
import android.hardware.biometrics.BiometricManager;
import android.hardware.biometrics.BiometricManager;
import android.hardware.biometrics.BiometricsProtoEnums;
import android.hardware.biometrics.BiometricsProtoEnums;
import android.hardware.biometrics.IInvalidationCallback;
import android.hardware.biometrics.ITestSession;
import android.hardware.biometrics.ITestSession;
import android.hardware.biometrics.fingerprint.V2_1.IBiometricsFingerprint;
import android.hardware.biometrics.fingerprint.V2_1.IBiometricsFingerprint;
import android.hardware.biometrics.fingerprint.V2_2.IBiometricsFingerprintClientCallback;
import android.hardware.biometrics.fingerprint.V2_2.IBiometricsFingerprintClientCallback;
@@ -779,6 +780,17 @@ public class Fingerprint21 implements IHwBinder.DeathRecipient, ServiceProvider
        tracker.clear();
        tracker.clear();
    }
    }


    @Override
    public void scheduleInvalidateAuthenticatorId(int sensorId, int userId,
            @NonNull IInvalidationCallback callback) {
        // TODO (b/179101888): Remove this temporary workaround.
        try {
            callback.onCompleted();
        } catch (RemoteException e) {
            Slog.e(TAG, "Failed to complete InvalidateAuthenticatorId");
        }
    }

    @Override
    @Override
    public void dumpInternal(int sensorId, @NonNull PrintWriter pw) {
    public void dumpInternal(int sensorId, @NonNull PrintWriter pw) {
        PerformanceTracker performanceTracker =
        PerformanceTracker performanceTracker =