diff options
| author | 2016-06-29 00:45:09 +0000 | |
|---|---|---|
| committer | 2016-06-29 00:45:09 +0000 | |
| commit | 3ff70b6370b2c35c8e56c6845169ac5ccf72431d (patch) | |
| tree | dec5f0469a9f2a728e1aafd74b915a16f0ab2df3 | |
| parent | 818f7c8c1ad642ec0ad0f16d2c610abf1266a03b (diff) | |
| parent | 60c04126c959349234e3cdcccb606f986e9d4a06 (diff) | |
Merge \"Relax security constraint around getAuthenticatorId().\" into nyc-dev
am: 60c04126c9
Change-Id: I367432f84032da91ea5b9a39e8f4cf6a8eb6ea81
| -rw-r--r-- | services/core/java/com/android/server/fingerprint/FingerprintService.java | 12 |
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; } } |