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

Commit b0fea8a7 authored by Todd Kennedy's avatar Todd Kennedy
Browse files

protect mIsolatedPackages access

Change-Id: I125cd382315f88741c59e3c649830d43d72aa596
Fixes: 38341243
Test: manual
parent 947db75b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -8332,12 +8332,12 @@ public class PackageManagerService extends IPackageManager.Stub
        if (HIDE_EPHEMERAL_APIS || isEphemeralDisabled()) {
            return false;
        }
        synchronized (mPackages) {
            int callingUid = Binder.getCallingUid();
            if (Process.isIsolated(callingUid)) {
                callingUid = mIsolatedOwners.get(callingUid);
            }
        synchronized (mPackages) {
            final PackageSetting ps = mSettings.mPackages.get(packageName);
            PackageParser.Package pkg = mPackages.get(packageName);
            final boolean returnAllowed =