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

Commit 76e23342 authored by Jim Miller's avatar Jim Miller Committed by Android (Google) Code Review
Browse files

Merge "Fix permission check in hasEnrolledFingerprints()" into nyc-dev

parents 5a85aff8 1fd298bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -505,7 +505,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe
    }

    public boolean hasEnrolledFingerprints(int userId) {
        if (userId != Binder.getCallingUid()) {
        if (userId != UserHandle.getCallingUserId()) {
            checkPermission(INTERACT_ACROSS_USERS);
        }
        return mFingerprintUtils.getFingerprintsForUser(mContext, userId).size() > 0;