应某些客户要求,关闭了开机进入屏保,一段时间会休眠的问题。以下diff可供参考:
diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
index b02c48b..1781606 100755
--- a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
+++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -17,7 +17,8 @@
*/
-->
<resources>
- <integer name="def_screen_off_timeout">60000</integer>
+ <integer name="def_screen_off_timeout">2147483647</integer>
+ <bool name="def_lockscreen_disabled">true</bool>
<!-- Initial value for the Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS setting,
which is a comma separated list of packages that no longer need confirmation
for immersive mode.
1.将def_screen_off_timeout的值改为最大,在设置-显示-屏幕超时 中你可以看到选中的为永不;
不过这里的最大值,休眠时长貌似也只能支持30天的样子,具体没验证过。
2.def_lockscreen_disabled,改为true ,会禁止进入屏保状态。