Merge "Check INTERACT_ACROSS_USERS for getEnrolledTemplates when user is different" into qt-dev

This commit is contained in:
Kevin Chyn
2019-04-25 22:48:20 +00:00
committed by Android (Google) Code Review

View File

@@ -855,6 +855,9 @@ public class FingerprintService extends BiometricServiceBase {
@Override
protected List<Fingerprint> getEnrolledTemplates(int userId) {
if (userId != UserHandle.getCallingUserId()) {
checkPermission(INTERACT_ACROSS_USERS);
}
return getBiometricUtils().getBiometricsForUser(getContext(), userId);
}