summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2016-06-28 16:43:57 -0700
committerJim Miller <jaggies@google.com>2016-06-28 16:43:57 -0700
commitd0063106b67c9aa44d9473102a1116aad136f50f (patch)
treef4492ebaa0fce488f77cc8e4112573cd8a6d9f92
parentc1374208e3b5a415770060b10416fada36c40e0f (diff)
downloadbase-d0063106b67c9aa44d9473102a1116aad136f50f.tar.gz
Relax security constraint around getAuthenticatorId().
Fixes bug 28603656 Change-Id: I54216d4b9a3ab23f9d5bfe0f40f2dd27e723c21e
-rw-r--r--services/core/java/com/android/server/fingerprint/FingerprintService.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/services/core/java/com/android/server/fingerprint/FingerprintService.java b/services/core/java/com/android/server/fingerprint/FingerprintService.java
index cc556c7e45b3..081a3afd048f 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;
}
}