If you want to change the lock to a layer, You need to modify it as follows:
LockPatternKeyguardView. java:
Private Mode getInitialMode (){
IccCard. State simState2 = IccCard. State. NOT_READY;
Final IccCard. State simState = mUpdateMonitor. getSimState ();
If (FeatureOption. MTK_GEMINI_SUPPORT = true)
{
SimState2 = mUpdateMonitor. getSimStateGemini (Phone. GEMINI_SIM_2 );
}
If (stuckOnLockScreenBecauseSimMissing ()){
Return Mode. LockScreen;
} Else {
// Show LockScreen first for any screen other than Pattern unlock.
/* Final boolean usingLockPattern = mLockPatternUtils. getKeyguardStoredPasswordQuality ()
= DevicePolicyManager. PASSWORD_QUALITY_SOMETHING ;*/
Final boolean usingPINLock = IsSIMPINRequired ();
Log. I (TAG, "usingLockPattern =" + usingPINLock );
If (isSecure () & usingPINLock ){
Return Mode. UnlockScreen;
} Else {
Return Mode. LockScreen;
}
}
}
To be restored as follows:
} Else {
// Show LockScreen first for any screen other than Pattern unlock.
Final boolean usingLockPattern = mLockPatternUtils. getKeyguardStoredPasswordQuality ()
= DevicePolicyManager. PASSWORD_QUALITY_SOMETHING;
/* Final boolean usingPINLock = IsSIMPINRequired ();
Log. I (TAG, "usingLockPattern =" + usingPINLock );*/
If (isSecure () & usingLockPattern ){
Return Mode. UnlockScreen;
} Else {
Return Mode. LockScreen;
}