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

Commit d8ddb246 authored by Songchun Fan's avatar Songchun Fan Committed by Automerger Merge Worker
Browse files

Merge "[pm] restore ABI info on system stub install after update removal" into...

Merge "[pm] restore ABI info on system stub install after update removal" into rvc-dev am: b387dc6f

Change-Id: Id6d28ddb9138a730eab6ab605db61ac7fe295c99
parents adba2d2c b387dc6f
Loading
Loading
Loading
Loading
+10 −2
Original line number Original line Diff line number Diff line
@@ -11203,8 +11203,16 @@ public class PackageManagerService extends IPackageManager.Stub
        boolean needToDeriveAbi = (scanFlags & SCAN_FIRST_BOOT_OR_UPGRADE) != 0;
        boolean needToDeriveAbi = (scanFlags & SCAN_FIRST_BOOT_OR_UPGRADE) != 0;
        if (!needToDeriveAbi) {
        if (!needToDeriveAbi) {
            if (pkgSetting != null) {
            if (pkgSetting != null) {
                // TODO(b/154610922): if it is not first boot or upgrade, we should directly use
                // API info from existing package setting. However, stub packages currently do not
                // preserve ABI info, thus the special condition check here. Remove the special
                // check after we fix the stub generation.
                if (pkgSetting.pkg != null && pkgSetting.pkg.isStub()) {
                    needToDeriveAbi = true;
                } else {
                    primaryCpuAbiFromSettings = pkgSetting.primaryCpuAbiString;
                    primaryCpuAbiFromSettings = pkgSetting.primaryCpuAbiString;
                    secondaryCpuAbiFromSettings = pkgSetting.secondaryCpuAbiString;
                    secondaryCpuAbiFromSettings = pkgSetting.secondaryCpuAbiString;
                }
            } else {
            } else {
                // Re-scanning a system package after uninstalling updates; need to derive ABI
                // Re-scanning a system package after uninstalling updates; need to derive ABI
                needToDeriveAbi = true;
                needToDeriveAbi = true;