config: Enable doze mode

Modern apps without GMS push can handle doze by asking the user to
whitelist them from battery optimization, so there's no reason to not
enable this.

AOSPA have this enabled under vendor/google/gms, but also enable it
here for those not building GMS and to not miss it on future releases.

Change-Id: I84efe5abe2b8c209202f4fd14217d4dfa7f34de1
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
Danny Lin 2020-10-04 23:56:31 -07:00 committed by Juhyung Park
parent b0bab9da12
commit 48536077a1
1 changed files with 9 additions and 0 deletions

View File

@ -107,4 +107,13 @@
<item>com.google.android.gms/com.google.android.gms.update.SystemUpdateService</item>
</string-array>
<!-- Set this to true to enable the platform's auto-power-save modes like doze and
app standby. These are not enabled by default because they require a standard
cloud-to-device messaging service for apps to interact correctly with the modes
(such as to be able to deliver an instant message to the device even when it is
dozing). This should be enabled if you have such services and expect apps to
correctly use them when installed on your device. Otherwise, keep this disabled
so that applications can still use their own mechanisms. -->
<bool name="config_enableAutoPowerModes">true</bool>
</resources>