diff options
| author | Hongyi Zhang <hongyiz@google.com> | 2020-03-01 18:46:51 -0800 |
|---|---|---|
| committer | Hongyi Zhang <hongyiz@google.com> | 2020-03-13 16:30:06 +0000 |
| commit | 3aecf323e3e9f253b5a5482c2b79c613ce8c9fcf (patch) | |
| tree | cf4c47f9c0f421d483325f1ac97948be224c9b20 /core/java | |
| parent | 7fcb7d59c433b28c1d90c9ac5c9c87cd8e9728c2 (diff) | |
RescueParty: Add a DeviceConfig killswitch
1. Add a killswitch DeviceConfig flag in case emergency rollback is
needed (e.g. PackageWatchdog doesn't behave correctly).
2. Register the namespace for native flag sync mapper so that we can
also use the flag to turn off native disaster recovery.
Test: Atest RescueParty & verified on local device
Bug: 149420506
Change-Id: I9a0b546c7229c8444947b522585dd2c5ed37a00b
(cherry picked from commit 1c0993cf12d34e7611db258982c1854960985545)
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/provider/DeviceConfig.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/provider/DeviceConfig.java b/core/java/android/provider/DeviceConfig.java index aa511cc46de9..fb81d675939c 100644 --- a/core/java/android/provider/DeviceConfig.java +++ b/core/java/android/provider/DeviceConfig.java @@ -399,6 +399,13 @@ public final class DeviceConfig { public static final String NAMESPACE_CONNECTIVITY_THERMAL_POWER_MANAGER = "connectivity_thermal_power_manager"; + /** + * Namespace for configuration related features. + * + * @hide + */ + public static final String NAMESPACE_CONFIGURATION = "configuration"; + private static final Object sLock = new Object(); @GuardedBy("sLock") private static ArrayMap<OnPropertiesChangedListener, Pair<String, Executor>> sListeners = |
