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

Commit 21756abd authored by Patrick Baumann's avatar Patrick Baumann Committed by Automerger Merge Worker
Browse files

Merge "Adds caller check to getAllPackages()" into pi-dev am: 7905a070 am: 9069025b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13618271

Change-Id: Ibb65b9ccc6d195ed36ecf9e65e9311f786fb8dcf
parents 721ef1bc 9069025b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6376,6 +6376,7 @@ public class PackageManagerService extends IPackageManager.Stub
    @Override
    public List<String> getAllPackages() {
        enforceSystemOrRootOrShell("getAllPackages is limited to privileged callers");
        final int callingUid = Binder.getCallingUid();
        final int callingUserId = UserHandle.getUserId(callingUid);
        synchronized (mPackages) {