From 4a90c80aa906c51d8d58ee3f853ea65d6b4bf561 Mon Sep 17 00:00:00 2001 From: Yurii Zubrytskyi Date: Thu, 26 Mar 2020 16:28:24 -0700 Subject: [PATCH] [settings] Add a knob to turn off incremental default A new value in global settings for the adb to determine if the device allows using incremental installations by default. Bug: 150183149 Test: builds Change-Id: I64e8fafcacbb790fa469629136a7dacbfd34e800 --- core/java/android/provider/Settings.java | 12 ++++++++++++ .../src/android/provider/SettingsBackupTest.java | 1 + 2 files changed, 13 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index bbcb9d9249af7..7d7c8ccdd7c11 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -13060,6 +13060,18 @@ public final class Settings { public static final String CHAINED_BATTERY_ATTRIBUTION_ENABLED = "chained_battery_attribution_enabled"; + /** + * Toggle to enable/disable the incremental ADB installation by default. + * If not set, default adb installations are incremental; set to zero to use full ones. + * Note: only ADB uses it, no usages in the Framework code. + *

+ * Type: int (0 to disable, 1 to enable) + * + * @hide + */ + public static final String ENABLE_ADB_INCREMENTAL_INSTALL_DEFAULT = + "enable_adb_incremental_install_default"; + /** * The packages whitelisted to be run in autofill compatibility mode. The list * of packages is {@code ":"} colon delimited, and each entry has the name of the diff --git a/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java b/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java index a36949b9e1ffa..fe083812ffedf 100644 --- a/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java +++ b/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java @@ -267,6 +267,7 @@ public class SettingsBackupTest { Settings.Global.DYNAMIC_POWER_SAVINGS_DISABLE_THRESHOLD, Settings.Global.SMART_REPLIES_IN_NOTIFICATIONS_FLAGS, Settings.Global.SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS, + Settings.Global.ENABLE_ADB_INCREMENTAL_INSTALL_DEFAULT, Settings.Global.ENHANCED_CONNECTIVITY_ENABLED, Settings.Global.ENHANCED_4G_MODE_ENABLED, Settings.Global.EPHEMERAL_COOKIE_MAX_SIZE_BYTES,