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

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

Merge "Revert "Adds caller check to getAllPackages()"" into sc-dev

parents 7b3c0ef3 c20196b8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -8940,7 +8940,6 @@ 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 (mLock) {