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

Commit f0ee5a79 authored by Nicolas Prevot's avatar Nicolas Prevot Committed by Android (Google) Code Review
Browse files

Merge "Correcting a bug related to Uri permissions."

parents 7d66d76f dcb27fad
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6010,6 +6010,9 @@ public final class ActivityManagerService extends ActivityManagerNative
            IPackageManager pm, ProviderInfo pi, GrantUri grantUri, int uid, final int modeFlags) {
        if (DEBUG_URI_PERMISSION) Slog.v(TAG,
                "checkHoldingPermissionsLocked: uri=" + grantUri + " uid=" + uid);
        if (UserHandle.getUserId(uid) != grantUri.sourceUserId) {
            return false;
        }
        if (pi.applicationInfo.uid == uid) {
            return true;