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

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

Merge "Disallow pruning system shared static libraries"

parents 9af1448d 4a3170a4
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -4700,6 +4700,11 @@ public class PackageManagerService extends IPackageManager.Stub
                    if (ps == null || now - ps.lastUpdateTime < maxCachePeriod) {
                        continue;
                    }
                    if (ps.pkg.isSystem()) {
                        continue;
                    }
                    if (packagesToDelete == null) {
                        packagesToDelete = new ArrayList<>();
                    }
@@ -5149,7 +5154,7 @@ public class PackageManagerService extends IPackageManager.Stub
                continue;
            }
            if (!ps.getUserState().get(userId).isAvailable(flags)) {
            if (!ps.readUserState(userId).isAvailable(flags)) {
                continue;
            }
@@ -6980,8 +6985,7 @@ public class PackageManagerService extends IPackageManager.Stub
        }
        final PackageSetting ps = mSettings.mPackages.get(mInstantAppInstallerActivity.packageName);
        if (ps == null
                || ps.getUserState().get(userId) == null
                || !ps.getUserState().get(userId).isEnabled(mInstantAppInstallerActivity, 0)) {
                || !ps.readUserState(userId).isEnabled(mInstantAppInstallerActivity, 0)) {
            return result;
        }
        final ResolveInfo ephemeralInstaller = new ResolveInfo(mInstantAppInstallerInfo);