Lockscreen 비활성화하기
2015. 3. 16. 09:50ㆍAndroid
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
'Android' 카테고리의 다른 글
안드로이드 빌드 정보 (0) | 2015.03.31 |
---|---|
build.prop 추가 및 수정 방법 (0) | 2015.03.31 |
Anroid Aging time 설정하기 (0) | 2015.03.16 |
Android 부팅 로고 이미지 변경, 커널 부팅 로고 변경 (0) | 2015.02.26 |