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

Commit 18cec23d authored by Kweku Adams's avatar Kweku Adams
Browse files

Make it possible to toggle TARE developer options page.

Add a flag and API to make it possible to hide/show the
TARE page option in Developer Options.

The setting is for local development and does not need to be transferred between devices.

Bug: 270498386
Bug: 270964794
Test: manually modify flags and check if TARE option shows
Change-Id: I4bea7045c17dbfbcbd973732e4d3c67cca9fe032
parent 19f87108
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1351,6 +1351,7 @@ public class InternalResourceService extends SystemService {
        }

        @Override
        @EconomyManager.EnabledMode
        public int getEnabledMode() {
            return InternalResourceService.this.getEnabledMode();
        }
+8 −0
Original line number Diff line number Diff line
@@ -14890,6 +14890,14 @@ public final class Settings {
         */
        public static final String ENABLE_TARE = "enable_tare";
        /**
         * Whether to show the TARE page in Developer Options or not.
         * 1 = true, everything else = false
         *
         * @hide
         */
        public static final String SHOW_TARE_DEVELOPER_OPTIONS = "show_tare_developer_options";
        /**
         * Settings for AlarmManager's TARE EconomicPolicy (list of its economic factors).
         *
+1 −0
Original line number Diff line number Diff line
@@ -449,6 +449,7 @@ public class SettingsBackupTest {
                    Settings.Global.SHOW_PEOPLE_SPACE,
                    Settings.Global.SHOW_NEW_NOTIF_DISMISS,
                    Settings.Global.SHOW_RESTART_IN_CRASH_DIALOG,
                    Settings.Global.SHOW_TARE_DEVELOPER_OPTIONS,
                    Settings.Global.SHOW_TEMPERATURE_WARNING,
                    Settings.Global.SHOW_USB_TEMPERATURE_ALARM,
                    Settings.Global.SIGNED_CONFIG_VERSION,