Loading core/java/com/android/internal/widget/LockPatternUtils.java +8 −2 Original line number Diff line number Diff line Loading @@ -589,8 +589,14 @@ public class LockPatternUtils { * @return true if lock screen is disabled */ public boolean isLockScreenDisabled(int userId) { return !isSecure(userId) && getBoolean(DISABLE_LOCKSCREEN_KEY, false, userId); if (isSecure(userId)) { return false; } boolean disabledByDefault = mContext.getResources().getBoolean( com.android.internal.R.bool.config_disableLockscreenByDefault); boolean isSystemUser = UserManager.isSplitSystemUser() && userId == UserHandle.USER_SYSTEM; return getBoolean(DISABLE_LOCKSCREEN_KEY, false, userId) || (disabledByDefault && !isSystemUser); } /** Loading core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -970,6 +970,9 @@ If so, this should be set to 'false' in an overlay. --> <bool name="config_enable_emergency_call_while_sim_locked">true</bool> <!-- Is the lock-screen disabled for new users by default --> <bool name="config_disableLockscreenByDefault">false</bool> <!-- Control the behavior when the user long presses the home button. 0 - Nothing 1 - Recent apps view in SystemUI Loading core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -249,6 +249,7 @@ <java-symbol type="bool" name="config_autoPowerModePrefetchLocation" /> <java-symbol type="bool" name="config_enable_emergency_call_while_sim_locked" /> <java-symbol type="bool" name="config_enable_puk_unlock_screen" /> <java-symbol type="bool" name="config_disableLockscreenByDefault" /> <java-symbol type="bool" name="config_enableBurnInProtection" /> <java-symbol type="bool" name="config_hotswapCapable" /> <java-symbol type="bool" name="config_mms_content_disposition_support" /> Loading Loading
core/java/com/android/internal/widget/LockPatternUtils.java +8 −2 Original line number Diff line number Diff line Loading @@ -589,8 +589,14 @@ public class LockPatternUtils { * @return true if lock screen is disabled */ public boolean isLockScreenDisabled(int userId) { return !isSecure(userId) && getBoolean(DISABLE_LOCKSCREEN_KEY, false, userId); if (isSecure(userId)) { return false; } boolean disabledByDefault = mContext.getResources().getBoolean( com.android.internal.R.bool.config_disableLockscreenByDefault); boolean isSystemUser = UserManager.isSplitSystemUser() && userId == UserHandle.USER_SYSTEM; return getBoolean(DISABLE_LOCKSCREEN_KEY, false, userId) || (disabledByDefault && !isSystemUser); } /** Loading
core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -970,6 +970,9 @@ If so, this should be set to 'false' in an overlay. --> <bool name="config_enable_emergency_call_while_sim_locked">true</bool> <!-- Is the lock-screen disabled for new users by default --> <bool name="config_disableLockscreenByDefault">false</bool> <!-- Control the behavior when the user long presses the home button. 0 - Nothing 1 - Recent apps view in SystemUI Loading
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -249,6 +249,7 @@ <java-symbol type="bool" name="config_autoPowerModePrefetchLocation" /> <java-symbol type="bool" name="config_enable_emergency_call_while_sim_locked" /> <java-symbol type="bool" name="config_enable_puk_unlock_screen" /> <java-symbol type="bool" name="config_disableLockscreenByDefault" /> <java-symbol type="bool" name="config_enableBurnInProtection" /> <java-symbol type="bool" name="config_hotswapCapable" /> <java-symbol type="bool" name="config_mms_content_disposition_support" /> Loading