summaryrefslogtreecommitdiffstats
path: root/overlay
diff options
context:
space:
mode:
authorrINanDO <drjisakh@gmail.com>2016-03-20 17:37:21 +0100
committerrINanDO <drjisakh@gmail.com>2016-03-20 17:37:21 +0100
commit9a33a71267e977d307fd4f871172c12193441c8f (patch)
tree79dabfec7067d4e1bbfccfc73afcd1933f65d212 /overlay
parente8efd4ccc5d79eb663706f14bcbabb5ba865083a (diff)
downloaddevice_samsung_galaxys2-common-9a33a71267e977d307fd4f871172c12193441c8f.zip
device_samsung_galaxys2-common-9a33a71267e977d307fd4f871172c12193441c8f.tar.gz
device_samsung_galaxys2-common-9a33a71267e977d307fd4f871172c12193441c8f.tar.bz2
galaxys2-common: 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/10c07f778a611d8723619f67e5709cbd9e502a07/services/core/java/com/android/server/DeviceIdleController.java#L1435 Change-Id: I9e9c17f3714ab0b4ce590d99ab82deb3070ea5ed
Diffstat (limited to 'overlay')
-rwxr-xr-xoverlay/frameworks/base/core/res/res/values/config.xml9
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 1ef9601..7c33fd0 100755
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -167,4 +167,13 @@
<!-- Control whether a car dock event should override the default bluetooth
audio routing, FORCE_BT_CAR_DOCK, with an analog dock, FORCE_ANALOG_DOCK. -->
<bool name="config_forceAnalogCarDock">true</bool>
+
+ <!-- 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>