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

Commit 91a52cc5 authored by Rhed Jao's avatar Rhed Jao Committed by Android (Google) Code Review
Browse files

Merge "Enforce cross user permission to queryContentProviders api"

parents 707e396d 10a48e10
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5008,6 +5008,8 @@ public class ComputerEngine implements Computer {
        final int callingUid = Binder.getCallingUid();
        final int userId = processName != null ? UserHandle.getUserId(uid)
                : UserHandle.getCallingUserId();
        enforceCrossUserPermission(callingUid, userId, false /* requireFullPermission */,
                false /* checkShell */, "queryContentProviders");
        if (!mUserManager.exists(userId)) return ParceledListSlice.emptyList();
        flags = updateFlagsForComponent(flags, userId);
        ArrayList<ProviderInfo> finalList = null;