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

Commit 8412cf4d authored by Calin Juravle's avatar Calin Juravle
Browse files

Revert "Enable profile merging for post-OTA package verification"

This reverts commit 5da9dad2.

Bug: 28612421

Change-Id: Idbbb24241362a70b697ae2d648ea47996f5239c6
parent d521a6d1
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -144,11 +144,18 @@ public class BackgroundDexOptService extends JobService {
                    if (DEBUG_DEXOPT) {
                        Log.i(TAG, "Updating package " + pkg);
                    }

                    // Update package if needed. Note that there can be no race between concurrent
                    // jobs because PackageDexOptimizer.performDexOpt is synchronized.

                    // checkProfiles is false to avoid merging profiles during boot which
                    // might interfere with background compilation (b/28612421).
                    // Unfortunately this will also means that "pm.dexopt.boot=speed-profile" will
                    // behave differently than "pm.dexopt.bg-dexopt=speed-profile" but that's a
                    // trade-off worth doing to save boot time work.
                    pm.performDexOpt(pkg,
                            /* instruction set */ null,
                            /* checkProfiles */ true,
                            /* checkProfiles */ false,
                            PackageManagerService.REASON_BOOT,
                            /* force */ false);
                }
+6 −1
Original line number Diff line number Diff line
@@ -7196,9 +7196,14 @@ public class PackageManagerService extends IPackageManager.Stub {
                }
            }
            // checkProfiles is false to avoid merging profiles during boot which
            // might interfere with background compilation (b/28612421).
            // Unfortunately this will also means that "pm.dexopt.boot=speed-profile" will
            // behave differently than "pm.dexopt.bg-dexopt=speed-profile" but that's a
            // trade-off worth doing to save boot time work.
            int dexOptStatus = performDexOptTraced(pkg.packageName,
                    null /* instructionSet */,
                    true /* checkProfiles */,
                    false /* checkProfiles */,
                    getCompilerFilterForReason(causeFirstBoot ? REASON_FIRST_BOOT : REASON_BOOT),
                    false /* force */);
            switch (dexOptStatus) {