diff --git a/services/core/java/com/android/server/fingerprint/FingerprintService.java b/services/core/java/com/android/server/fingerprint/FingerprintService.java index cc556c7e45b34..081a3afd048fe 100644 --- a/services/core/java/com/android/server/fingerprint/FingerprintService.java +++ b/services/core/java/com/android/server/fingerprint/FingerprintService.java @@ -1019,14 +1019,12 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe } } + /*** + * @param opPackageName the name of the calling package + * @return authenticator id for the current user + */ public long getAuthenticatorId(String opPackageName) { - if (canUseFingerprint(opPackageName, false /* foregroundOnly */, - Binder.getCallingUid(), Binder.getCallingPid())) { - return mCurrentAuthenticatorId; - } else { - Slog.w(TAG, "Client isn't current, returning authenticator_id=0"); - } - return 0; + return mCurrentAuthenticatorId; } }