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

Commit d5bc510f authored by Alex Kershaw's avatar Alex Kershaw
Browse files

Revert "Enfore cross user permission to getPackagesForUid"

This reverts commit 1dafc385.

Reason for revert: Causes bugs https://b.corp.google.com/issues/179465628 and https://b.corp.google.com/issues/179506602

Fixes: 179506602
Fixes: 179465628
Fixes: 179460585

Change-Id: I0596e45484638e33baccec834a8adf2dfa9f4a4d
parent 1dafc385
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3845,8 +3845,6 @@ public class PackageManagerService extends IPackageManager.Stub
            final boolean isCallerInstantApp = getInstantAppPackageName(callingUid) != null;
            final int userId = UserHandle.getUserId(uid);
            final int appId = UserHandle.getAppId(uid);
            enforceCrossUserPermission(callingUid, userId,
                    /* requireFullPermission */ false, /* checkShell */ false, "getPackagesForUid");
            return getPackagesForUidInternalBody(callingUid, userId, appId, isCallerInstantApp);
        }