Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8addd4f6 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Check INTERACT_ACROSS_USERS for getEnrolledTemplates when user is different

Fixes: 128599663

Test: Fingerprint enroll/auth works as expected
Change-Id: I18d22d802e6f691056a525c22b221b01b6528ea8
parent eb8b30d2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
    }