Merge \"Relax security constraint around getAuthenticatorId().\" into nyc-dev

am: 60c04126c9

Change-Id: I367432f84032da91ea5b9a39e8f4cf6a8eb6ea81
This commit is contained in:
Jim Miller
2016-06-29 00:45:09 +00:00
committed by android-build-merger

View File

@@ -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;
}
}