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

Commit 480b0baa authored by Jiakai Zhang's avatar Jiakai Zhang
Browse files

Retire use_art_service_v2 flag and dalvik.vm.features properties.

Modules are now built from source on next.

Bug: 305000383
Test: atest CompilationTestCases
Test: atest CtsStorageHostTestCases:StorageHostTest
Change-Id: I1663abe03d6a154a135263fab1b23239aac27688
parent 17879b8c
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -51,7 +51,6 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.ApexStagedEvent;
import android.content.pm.Flags;
import android.content.pm.IPackageManagerNative;
import android.content.pm.IStagedApexObserver;
import android.content.pm.PackageManager;
@@ -1059,10 +1058,8 @@ public final class DexOptHelper {
            }
        }, new IntentFilter(Intent.ACTION_LOCKED_BOOT_COMPLETED));

        if (Flags.useArtServiceV2()) {
        StagedApexObserver.registerForStagedApexUpdates(artManager);
    }
    }

    /**
     * Returns true if an {@link ArtManagerLocal} instance has been created.
@@ -1146,9 +1143,7 @@ public final class DexOptHelper {
                            & PackageManager.INSTALL_IGNORE_DEXOPT_PROFILE)
                            != 0;
            /*@DexoptFlags*/ int extraFlags =
                    ignoreDexoptProfile && Flags.useArtServiceV2()
                            ? ArtFlags.FLAG_IGNORE_PROFILE
                            : 0;
                    ignoreDexoptProfile ? ArtFlags.FLAG_IGNORE_PROFILE : 0;
            DexoptParams params = dexoptOptions.convertToDexoptParams(extraFlags);
            DexoptResult dexOptResult = getArtManagerLocal().dexoptPackage(
                    snapshot, packageName, params);
+1 −2
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ import android.apex.ApexInfo;
import android.app.AppOpsManager;
import android.content.pm.ArchivedPackageParcel;
import android.content.pm.DataLoaderType;
import android.content.pm.Flags;
import android.content.pm.IPackageInstallObserver2;
import android.content.pm.PackageInstaller;
import android.content.pm.PackageManager;
@@ -951,7 +950,7 @@ final class InstallRequest {
        // Only report external profile warnings when installing from adb. The goal is to warn app
        // developers if they have provided bad external profiles, so it's not beneficial to report
        // those warnings in the normal app install workflow.
        if (isInstallFromAdb() && Flags.useArtServiceV2()) {
        if (isInstallFromAdb()) {
            var externalProfileErrors = new LinkedHashSet<String>();
            for (PackageDexoptResult packageResult : dexoptResult.getPackageDexoptResults()) {
                for (DexContainerFileDexoptResult fileResult :
+15 −17
Original line number Diff line number Diff line
@@ -968,7 +968,6 @@ public class StorageStatsService extends IStorageStatsManager.Stub {
        stats.libSize += getDirBytes(new File(sourceDirName + "/lib/"));

        // Get dexopt, current profle and reference profile sizes.
        if (SystemProperties.getBoolean("dalvik.vm.features.art_managed_file_stats", false)) {
        ArtManagedFileStats artManagedFileStats;
        try (var snapshot = getPackageManagerLocal().withFilteredSnapshot()) {
            artManagedFileStats =
@@ -986,4 +985,3 @@ public class StorageStatsService extends IStorageStatsManager.Stub {
                .getTotalSizeBytesByType(ArtManagedFileStats.TYPE_CUR_PROFILE);
    }
}
}