Lockscreen 비활성화하기

2015. 3. 16. 09:50Android

LockScreen 비활성화하기


framework/base/packages/SettingsProviders/res/values/defaults.xml의


<bool name="def_lockscreen_disabled">false</bool>

->  <bool name="def_lockscreen_disabled">true</bool> 로 변경

---------------------------------------------------------

부팅 시 default none-lockscreen 설정하기


framework/base/core/java/com/android/internal/widget/LockPatternUtils.java 의


public boolean isLockScreenDisabled(){

//return !isSecure() && getLong(DISABLE_LOCKSCREEN_KEY,0)!=0;

return !isSecure() && getLong(DISABLE_LOCKSCREEN_KEY,1)!=0; 변경.

}


public int getKeyguardStoredPasswordQuality() {
        int quality =
                (int) getLong(PASSWORD_TYPE_KEY, DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED);
                //(int) getLong(PASSWORD_TYPE_KEY, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING);
        // If the user has chosen to use weak biometric sensor, then return the backup locking
        // method and treat biometric as a special case.
        if (quality == DevicePolicyManager.PASSWORD_QUALITY_BIOMETRIC_WEAK) {
            quality =
                (int) getLong(PASSWORD_TYPE_ALTERNATE_KEY,
                        DevicePolicyManager.PASSWORD_QUALITY_SOMETHING);
        }    
        return quality;
    } 

출처 http://codewalkerster.blogspot.kr/2012/03/androidics-lock-screen-none.html