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

Commit 5108e81f authored by Jing Ji's avatar Jing Ji
Browse files

Turn off the AppBatteryTracker and AppBatteryExemptionTracker

As the overhead of querying the BatteryUsageStats is still high.

Bug: 320534282
Test: dumpsys activity -a
Change-Id: I9ac1bec9e0fe16c4362cfe209a3914ead4987920
parent 6a1dca0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6600,7 +6600,7 @@
    </string-array>

    <!-- Whether or not the monitoring on the apps' background battery drain is enabled -->
    <bool name="config_bg_current_drain_monitor_enabled">true</bool>
    <bool name="config_bg_current_drain_monitor_enabled">false</bool>

    <!-- The threshold of the background current drain (in percentage) to the restricted
         standby bucket.
+1 −1
Original line number Diff line number Diff line
@@ -520,7 +520,7 @@ final class AppBatteryExemptionTracker
        /**
         * Default value to {@link #mTrackerEnabled}.
         */
        static final boolean DEFAULT_BG_BATTERY_EXEMPTION_ENABLED = true;
        static final boolean DEFAULT_BG_BATTERY_EXEMPTION_ENABLED = false;

        AppBatteryExemptionPolicy(@NonNull Injector injector,
                @NonNull AppBatteryExemptionTracker tracker) {