Check INTERACT_ACROSS_USERS for getEnrolledTemplates when user is different
Fixes: 128599663 Test: Fingerprint enroll/auth works as expected Change-Id: I18d22d802e6f691056a525c22b221b01b6528ea8
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