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

Commit c260c96b authored by Andreas Gampe's avatar Andreas Gampe
Browse files

OTA Dexopt: Remove old '&' path

Expect that package state is up-to-date, so that shared system
apps are correctly recognized by themselves.

Bug: 115853663
Test: m
Test: OTA tests
Test: manual A/B OTA
Change-Id: Ia223bd48c4c5849b441bd4c5f0a87768aee5582d
parent 6527b5bd
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -53,10 +53,6 @@ public class OtaDexoptService extends IOtaDexopt.Stub {
    private final static String TAG = "OTADexopt";
    private final static boolean DEBUG_DEXOPT = true;

    // The synthetic library dependencies denoting "no checks."
    private final static String[] NO_LIBRARIES =
            new String[] { PackageDexOptimizer.SKIP_SHARED_LIBRARY_CHECK };

    // The amount of "available" (free - low threshold) space necessary at the start of an OTA to
    // not bulk-delete unused apps' odex files.
    private final static long BULK_DELETE_THRESHOLD = 1024 * 1024 * 1024;  // 1GB.
@@ -338,11 +334,6 @@ public class OtaDexoptService extends IOtaDexopt.Stub {
                collectingInstaller, mPackageManagerService.mInstallLock, mContext);

        String[] libraryDependencies = pkg.usesLibraryFiles;
        if (pkg.isSystem()) {
            // For system apps, we want to avoid classpaths checks.
            libraryDependencies = NO_LIBRARIES;
        }


        optimizer.performDexOpt(pkg, libraryDependencies,
                null /* ISAs */,