MTK_android11_Settings-添加用不休眠选项并默认永不休眠:
diff --git a/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java b/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java
index ae807809640..1b51e211453 100755
--- a/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -5179,7 +5179,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
if (enable) {
if (localLOGV) Log.v(TAG, "setting lockscreen timer");
mHandler.removeCallbacks(mScreenLockTimeout); // remove any pending requests
- mHandler.postDelayed(mScreenLockTimeout, mLockScreenTimeout);
+ if (mLockScreenTimeout != 0){
+ mHandler.postDelayed(mScreenLockTimeout, mLo