Merge "Check INTERACT_ACROSS_USERS for getEnrolledTemplates when user is different" into qt-dev
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user