diff options
author | Simon Shields <keepcalm444@gmail.com> | 2016-02-20 22:06:57 +1100 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-03-06 16:29:44 +1100 |
commit | 276ec04ef3b865d3aaf6a1b8a07f791a0213c9c4 (patch) | |
tree | 083ea54559f0d93762be9c13b1d06f7e6519393b | |
parent | c6f16d5c1fc1a803cba6674cc0d67156c222efec (diff) | |
download | device_samsung_i9300-276ec04ef3b865d3aaf6a1b8a07f791a0213c9c4.zip device_samsung_i9300-276ec04ef3b865d3aaf6a1b8a07f791a0213c9c4.tar.gz device_samsung_i9300-276ec04ef3b865d3aaf6a1b8a07f791a0213c9c4.tar.bz2 |
i9300: enable auto power modes
* We don't have a significant motion sensor, so device
idle detection will be disabled[1]
* Enabling this will allow app standby to be enabled, so there's
no harm in doing it.
[1]: https://github.com/CyanogenMod/android_frameworks_base/blob/cm-13.0/services/core/java/com/android/server/DeviceIdleController.java#L1435
Change-Id: Ia23a577ed0e6ae344da0836232dd2ed21d8a867d
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 9441f8b..3a1c60b 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -332,4 +332,13 @@ format is UMTS|LTE|... --> <string translatable="false" name="config_radio_access_family">GPRS|EDGE|WCDMA</string> + + <!-- 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> |