CyanogenModデバイスツリーにてDozeモードを有効にする
Jun 11, 2016
はじめに
CyanogenModのデバイスツリーにDozeモードを追加するコミットが見受けられたので忘れないうちにメモをば、という備忘録です
CyanogenMod派生でも利用できる可能性があります
やり方
overlay/frameworks/base/core/res/res/values/config.xml
のconfig_enableAutoPowerModes
を有効フラグにしてやる
具体的には以下のコードを挿入
1 | <!-- enable doze powersaving mode --> |
その他
このconfig.xml
にはDozeモードに関する記述がもうひとつありそちらも入れるといいかもしれない
<!-- Doze mode -->
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
<integer name="config_screenBrightnessDoze">10</integer>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
参考
hammerhead: Enable doze mode · CyanogenMod/android_device_lge_hammerhead@5864cbe