Turn on auto restricted bucket on abusive bg battery usage

For devices with ODPM support only.
Bug: 203105544
Test: dumpsys activity -a

Change-Id: I1c841edbbcea6cd37e1495abd95a9b55ead5babc
This commit is contained in:
Jing Ji 2022-05-11 22:39:59 -07:00
parent 2e72a472d3
commit 0496799caa
2 changed files with 16 additions and 0 deletions

View file

@ -266,4 +266,12 @@
<!-- If face auth sends the user directly to home/last open app, or stays on keyguard by default--> <!-- If face auth sends the user directly to home/last open app, or stays on keyguard by default-->
<bool name="config_faceAuthDismissesKeyguard">false</bool> <bool name="config_faceAuthDismissesKeyguard">false</bool>
<!-- The behavior when the system detects it has abusive current drains, whether or not to
move the app to the restricted standby bucket level.
True - we'll move the app to restricted standby bucket as long as its bg battery usage
goes beyond the threshold, False - we'll not move it.
Note: This should be only enabled on devices with high confidence on power measurement.
-->
<bool name="config_bg_current_drain_auto_restrict_abusive_apps">true</bool>
</resources> </resources>

View file

@ -261,4 +261,12 @@
<!-- If face auth sends the user directly to home/last open app, or stays on keyguard by default--> <!-- If face auth sends the user directly to home/last open app, or stays on keyguard by default-->
<bool name="config_faceAuthDismissesKeyguard">false</bool> <bool name="config_faceAuthDismissesKeyguard">false</bool>
<!-- The behavior when the system detects it has abusive current drains, whether or not to
move the app to the restricted standby bucket level.
True - we'll move the app to restricted standby bucket as long as its bg battery usage
goes beyond the threshold, False - we'll not move it.
Note: This should be only enabled on devices with high confidence on power measurement.
-->
<bool name="config_bg_current_drain_auto_restrict_abusive_apps">true</bool>
</resources> </resources>