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

Commit e8bb4776 authored by Varun Shah's avatar Varun Shah
Browse files

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
parent 99e08bc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2585,7 +2585,7 @@ public final class Settings {
     * <p>
     * <p>
     * To start an activity with this intent, apps should set the wellbeing package explicitly in
     * 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
     * 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}.
     * <p>
     * <p>
     * Output: Nothing
     * Output: Nothing
     *
     *
+5 −1
Original line number Original line Diff line number Diff line
@@ -4301,8 +4301,12 @@
         This package must be trusted, as it has the permissions to control other applications
         This package must be trusted, as it has the permissions to control other applications
         on the device.
         on the device.
         Example: "com.android.wellbeing"
         Example: "com.android.wellbeing"

         Note: This config is deprecated, please use config_systemWellbeing instead.
     -->
     -->
    <string name="config_defaultWellbeingPackage" translatable="false"></string>
    <string name="config_defaultWellbeingPackage" translatable="false">
        @string/config_systemWellbeing
    </string>


    <!-- The component name for the default system attention service.
    <!-- The component name for the default system attention service.
         This service must be trusted, as it can be activated without explicit consent of the user.
         This service must be trusted, as it can be activated without explicit consent of the user.