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

Commit 65fc6629 authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Turn off the AppBatteryTracker and AppBatteryExemptionTracker" into main

parents 6855af1d 5108e81f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -6611,7 +6611,7 @@
    </string-array>
    </string-array>


    <!-- Whether or not the monitoring on the apps' background battery drain is enabled -->
    <!-- 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
    <!-- The threshold of the background current drain (in percentage) to the restricted
         standby bucket.
         standby bucket.
+1 −1
Original line number Original line Diff line number Diff line
@@ -520,7 +520,7 @@ final class AppBatteryExemptionTracker
        /**
        /**
         * Default value to {@link #mTrackerEnabled}.
         * 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,
        AppBatteryExemptionPolicy(@NonNull Injector injector,
                @NonNull AppBatteryExemptionTracker tracker) {
                @NonNull AppBatteryExemptionTracker tracker) {