Allow SIM PIN on CDMA LTE devices
Bug: 5161360 Change-Id: I6f98da08e6be08403d9b3b08b02b02b9a63b14fe
This commit is contained in:
@@ -37,6 +37,7 @@ import android.security.KeyStore;
|
|||||||
import android.telephony.TelephonyManager;
|
import android.telephony.TelephonyManager;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import com.android.internal.telephony.Phone;
|
||||||
import com.android.internal.widget.LockPatternUtils;
|
import com.android.internal.widget.LockPatternUtils;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -162,8 +163,9 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
addPreferencesFromResource(R.xml.security_settings_misc);
|
addPreferencesFromResource(R.xml.security_settings_misc);
|
||||||
|
|
||||||
// Do not display SIM lock for CDMA phone
|
// Do not display SIM lock for CDMA phone
|
||||||
if (TelephonyManager.PHONE_TYPE_CDMA ==
|
TelephonyManager tm = TelephonyManager.getDefault();
|
||||||
TelephonyManager.getDefault().getCurrentPhoneType()) {
|
if ((TelephonyManager.PHONE_TYPE_CDMA == tm.getCurrentPhoneType()) &&
|
||||||
|
(tm.getLteOnCdmaMode() != Phone.LTE_ON_CDMA_TRUE)) {
|
||||||
root.removePreference(root.findPreference(KEY_SIM_LOCK));
|
root.removePreference(root.findPreference(KEY_SIM_LOCK));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user