Loading core/java/android/provider/Settings.java +10 −0 Original line number Diff line number Diff line Loading @@ -9820,6 +9820,16 @@ public final class Settings { */ public static final String ENABLE_EPHEMERAL_FEATURE = "enable_ephemeral_feature"; /** * Toggle to enable/disable dexopt for instant applications. The default is for dexopt * to be disabled. * <p> * Type: int (0 to disable, 1 to enable) * * @hide */ public static final String INSTANT_APP_DEXOPT_ENABLED = "instant_app_dexopt_enabled"; /** * The min period for caching installed instant apps in milliseconds. * <p> Loading services/core/java/com/android/server/pm/PackageManagerService.java +4 −2 Original line number Diff line number Diff line Loading @@ -18105,8 +18105,10 @@ public class PackageManagerService extends IPackageManager.Stub // step during installation. Instead, we'll take extra time the first time the // instant app starts. It's preferred to do it this way to provide continuous // progress to the user instead of mysteriously blocking somewhere in the // middle of running an instant app. if (!instantApp) { // middle of running an instant app. The default behaviour can be overridden // via gservices. if (!instantApp || Global.getInt( mContext.getContentResolver(), Global.INSTANT_APP_DEXOPT_ENABLED, 0) != 0) { Trace.traceBegin(TRACE_TAG_PACKAGE_MANAGER, "dexopt"); // Do not run PackageDexOptimizer through the local performDexOpt // method because `pkg` may not be in `mPackages` yet. Loading
core/java/android/provider/Settings.java +10 −0 Original line number Diff line number Diff line Loading @@ -9820,6 +9820,16 @@ public final class Settings { */ public static final String ENABLE_EPHEMERAL_FEATURE = "enable_ephemeral_feature"; /** * Toggle to enable/disable dexopt for instant applications. The default is for dexopt * to be disabled. * <p> * Type: int (0 to disable, 1 to enable) * * @hide */ public static final String INSTANT_APP_DEXOPT_ENABLED = "instant_app_dexopt_enabled"; /** * The min period for caching installed instant apps in milliseconds. * <p> Loading
services/core/java/com/android/server/pm/PackageManagerService.java +4 −2 Original line number Diff line number Diff line Loading @@ -18105,8 +18105,10 @@ public class PackageManagerService extends IPackageManager.Stub // step during installation. Instead, we'll take extra time the first time the // instant app starts. It's preferred to do it this way to provide continuous // progress to the user instead of mysteriously blocking somewhere in the // middle of running an instant app. if (!instantApp) { // middle of running an instant app. The default behaviour can be overridden // via gservices. if (!instantApp || Global.getInt( mContext.getContentResolver(), Global.INSTANT_APP_DEXOPT_ENABLED, 0) != 0) { Trace.traceBegin(TRACE_TAG_PACKAGE_MANAGER, "dexopt"); // Do not run PackageDexOptimizer through the local performDexOpt // method because `pkg` may not be in `mPackages` yet.