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

Commit 0217d4e6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix AM.revokeUriPermissionFromOwner for prefix mode." into nyc-mr1-dev

parents fb5a0793 4498aa6c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8611,7 +8611,8 @@ public final class ActivityManagerService extends ActivityManagerNative
            if (uri == null) {
                owner.removeUriPermissionsLocked(mode);
            } else {
                owner.removeUriPermissionLocked(new GrantUri(userId, uri, false), mode);
                final boolean prefix = (mode & Intent.FLAG_GRANT_PREFIX_URI_PERMISSION) != 0;
                owner.removeUriPermissionLocked(new GrantUri(userId, uri, prefix), mode);
            }
        }
    }