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

Commit 24ec750c authored by Sumedh Sen's avatar Sumedh Sen
Browse files

Fix InstallSource while restoring system app

While uninstalling updates to a system app, or updating this app via
OTA, this InstallSource was not restored to the original state.

Bug: 325764915
Test: Manual. Perform repro steps from the bug
Change-Id: I2b95d654f20a8e25e70ce46515abaf692b92bd85
parent 59cf6de3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -934,6 +934,7 @@ public final class Settings implements Watchable, Snappable, ResilientAtomicFile
            ret.setTargetSdkVersion(p.getTargetSdkVersion());
            ret.setRestrictUpdateHash(p.getRestrictUpdateHash());
            ret.setScannedAsStoppedSystemApp(p.isScannedAsStoppedSystemApp());
            ret.setInstallSource(p.getInstallSource());
        }
        mDisabledSysPackages.remove(name);
        return ret;