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

Commit e084a08f authored by Todd Kennedy's avatar Todd Kennedy Committed by android-build-merger
Browse files

Merge \"Make sure we\'re locked\" into nyc-dev

am: 32d67fab

Change-Id: Iff90d36636b01542ed8a7e088f403b6554cbd91a
parents 53cf79e1 32d67fab
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -4759,10 +4759,8 @@ public class PackageManagerService extends IPackageManager.Stub {
                final SharedUserSetting sus = (SharedUserSetting) obj;
                final int N = sus.packages.size();
                final String[] res = new String[N];
                final Iterator<PackageSetting> it = sus.packages.iterator();
                int i = 0;
                while (it.hasNext()) {
                    res[i++] = it.next().name;
                for (int i = 0; i < N; i++) {
                    res[i] = sus.packages.valueAt(i).name;
                }
                return res;
            } else if (obj instanceof PackageSetting) {
@@ -14484,7 +14482,9 @@ public class PackageManagerService extends IPackageManager.Stub {
        // Remove existing system package
        removePackageLI(deletedPackage, true);
        synchronized (mPackages) {
            disabledSystem = disableSystemPackageLPw(deletedPackage, pkg);
        }
        if (!disabledSystem) {
            // We didn't need to disable the .apk as a current system package,
            // which means we are replacing another update that is already