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

Commit 59a9488f authored by Alice Sheng's avatar Alice Sheng
Browse files

Revert "Revert "Add setting for enabling CPU frequency scaling.""

This reverts commit 67503522.

Reason for revert: Added SElinux policy to allow the service to be started. Verified by local testing on the latest pi-wear-dev.

Bug: 74018496
Bug: 75974893
Change-Id: I9bd8939f6292be9c160e19ebdf934023792059ba
parent 67503522
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -12232,6 +12232,16 @@ public final class Settings {
        public static final String ZRAM_ENABLED =
                "zram_enabled";

        /**
         * Whether we have enable CPU frequency scaling for this device.
         * For Wear, default is disable.
         *
         * The value is "1" for enable, "0" for disable.
         * @hide
         */
        public static final String CPU_SCALING_ENABLED =
                "cpu_frequency_scaling_enabled";

        /**
         * Configuration flags for smart replies in notifications.
         * This is encoded as a key=value list, separated by commas. Ex:
+1 −0
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@ public class SettingsBackupTest {
                    Settings.Global.CONNECTIVITY_SAMPLING_INTERVAL_IN_SECONDS,
                    Settings.Global.CONTACT_METADATA_SYNC_ENABLED,
                    Settings.Global.CONTACTS_DATABASE_WAL_ENABLED,
                    Settings.Global.CPU_SCALING_ENABLED,
                    Settings.Global.DATA_ACTIVITY_TIMEOUT_MOBILE,
                    Settings.Global.DATA_ACTIVITY_TIMEOUT_WIFI,
                    Settings.Global.DATABASE_CREATION_BUILDID,
+6 −0
Original line number Diff line number Diff line
@@ -196,6 +196,8 @@ public final class SystemServer {
            "com.android.server.search.SearchManagerService$Lifecycle";
    private static final String THERMAL_OBSERVER_CLASS =
            "com.google.android.clockwork.ThermalObserver";
    private static final String WEAR_CONFIG_SERVICE_CLASS =
            "com.google.android.clockwork.WearConfigManagerService";
    private static final String WEAR_CONNECTIVITY_SERVICE_CLASS =
            "com.android.clockwork.connectivity.WearConnectivityService";
    private static final String WEAR_SIDEKICK_SERVICE_CLASS =
@@ -1535,6 +1537,10 @@ public final class SystemServer {
        }

        if (isWatch) {
            traceBeginAndSlog("StartWearConfigService");
            mSystemServiceManager.startService(WEAR_CONFIG_SERVICE_CLASS);
            traceEnd();

            traceBeginAndSlog("StartWearConnectivityService");
            mSystemServiceManager.startService(WEAR_CONNECTIVITY_SERVICE_CLASS);
            traceEnd();