From e8bb4776c8a5ddbe4df12034e8ae3b46e9322e33 Mon Sep 17 00:00:00 2001 From: Varun Shah Date: Fri, 7 Apr 2023 19:49:37 +0000 Subject: [PATCH] Update the default wellbeing package config. defaultWellbeingPackage is now deprecated and should not be used. Instead, point all references to the new systemWellbeing config. Bug: 233363529 Test: atest AmbientDisplayAlwaysOnPreferenceControllerTest Test: atest DarkModeCustomBedtimePreferenceControllerTest Test: atest DarkModeScheduleSelectorControllerTest Test: atest WhenToDreamPreferenceControllerTest Test: atest AfwRequiredAppsTest Test: atest ManagedProvisioningRequiredAppsTest Test: atest WellbeingTest Change-Id: Idaa1690b509e639bde982a0589e40238b62b4f3d --- core/java/android/provider/Settings.java | 2 +- core/res/res/values/config.xml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index c473d3f818239..e3ad9b3a50b0d 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -2585,7 +2585,7 @@ public final class Settings { *

* To start an activity with this intent, apps should set the wellbeing package explicitly in * the intent together with this action. The wellbeing package is defined in - * {@code com.android.internal.R.string.config_defaultWellbeingPackage}. + * {@code com.android.internal.R.string.config_systemWellbeing}. *

* Output: Nothing * diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 3ff63519572f0..b064f1044a7b4 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -4301,8 +4301,12 @@ This package must be trusted, as it has the permissions to control other applications on the device. Example: "com.android.wellbeing" + + Note: This config is deprecated, please use config_systemWellbeing instead. --> - + + @string/config_systemWellbeing +