Android 8.1去除锁屏(MTK 平台)

项目需求,去除锁屏,直接上代码:
 

--- vendor/mediatek/proprietary/packages/apps/SettingsProvider/res/values/defaults.xml  (版本 48)
+++ vendor/mediatek/proprietary/packages/apps/SettingsProvider/res/values/defaults.xml  (工作副本)
@@ -81,7 +81,7 @@
     /system/media/audio/ui/Trusted.ogg
     /system/media/audio/ui/WirelessChargingStarted.ogg
 
-    false
+    true
     false
     1

 

--- vendor/mediatek/proprietary/packages/apps/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java   (版本 48)
+++ vendor/mediatek/proprietary/packages/apps/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java   (工作副本)
@@ -2429,7 +2429,7 @@
             loadBooleanSetting(stmt, Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD,
                     R.bool.def_accessibility_speak_password);
 
-            if (SystemProperties.getBoolean("ro.lockscreen.disable.default", false) == true) {
+            if (SystemProperties.getBoolean("ro.lockscreen.disable.default", true) == true) {
                 loadSetting(stmt, Settings.System.LOCKSCREEN_DISABLED, "1");
             } else {

 

你可能感兴趣的:(android)