Loading packages/Keyguard/res/values/strings.xml +3 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,9 @@ to unlock the keyguard. Displayed in one line in a large font. --> <string name="keyguard_password_wrong_pin_code">Incorrect PIN code.</string> <!-- Shown in the lock screen when there is SIM card IO error. --> <string name="lockscreen_sim_error_message_short">Invalid Card.</string> <!-- Instructions telling the user how to unlock the phone. --> <string name="keyguard_label_text">To unlock, press Menu then 0.</string> Loading packages/Keyguard/src/com/android/keyguard/CarrierText.java +9 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,8 @@ public class CarrierText extends LinearLayout { SimPukLocked, // SIM card is PUK locked because SIM entered wrong too many times SimLocked, // SIM card is currently locked SimPermDisabled, // SIM card is permanently disabled due to PUK unlock failure SimNotReady; // SIM is not ready yet. May never be on devices w/o a SIM. SimNotReady, // SIM is not ready yet. May never be on devices w/o a SIM. SimIoError; //The sim card is faulty } public CarrierText(Context context) { Loading Loading @@ -255,6 +256,11 @@ public class CarrierText extends LinearLayout { getContext().getText(R.string.keyguard_sim_puk_locked_message), plmn); break; case SimIoError: carrierText = makeCarrierStringOnEmergencyCapable( getContext().getText(R.string.lockscreen_sim_error_message_short), plmn); break; } if (DEBUG) Log.d(TAG, "getCarrierTextForSimState: carrierText=" + carrierText); Loading Loading @@ -305,6 +311,8 @@ public class CarrierText extends LinearLayout { return StatusMode.SimPermDisabled; case UNKNOWN: return StatusMode.SimMissing; case CARD_IO_ERROR: return StatusMode.SimIoError; } return StatusMode.SimMissing; } Loading packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java +2 −0 Original line number Diff line number Diff line Loading @@ -561,6 +561,8 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { } else { state = IccCardConstants.State.UNKNOWN; } } else if (IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR.equals(stateExtra)) { state = IccCardConstants.State.CARD_IO_ERROR; } else if (IccCardConstants.INTENT_VALUE_ICC_LOADED.equals(stateExtra) || IccCardConstants.INTENT_VALUE_ICC_IMSI.equals(stateExtra)) { // This is required because telephony doesn't return to "READY" after Loading Loading
packages/Keyguard/res/values/strings.xml +3 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,9 @@ to unlock the keyguard. Displayed in one line in a large font. --> <string name="keyguard_password_wrong_pin_code">Incorrect PIN code.</string> <!-- Shown in the lock screen when there is SIM card IO error. --> <string name="lockscreen_sim_error_message_short">Invalid Card.</string> <!-- Instructions telling the user how to unlock the phone. --> <string name="keyguard_label_text">To unlock, press Menu then 0.</string> Loading
packages/Keyguard/src/com/android/keyguard/CarrierText.java +9 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,8 @@ public class CarrierText extends LinearLayout { SimPukLocked, // SIM card is PUK locked because SIM entered wrong too many times SimLocked, // SIM card is currently locked SimPermDisabled, // SIM card is permanently disabled due to PUK unlock failure SimNotReady; // SIM is not ready yet. May never be on devices w/o a SIM. SimNotReady, // SIM is not ready yet. May never be on devices w/o a SIM. SimIoError; //The sim card is faulty } public CarrierText(Context context) { Loading Loading @@ -255,6 +256,11 @@ public class CarrierText extends LinearLayout { getContext().getText(R.string.keyguard_sim_puk_locked_message), plmn); break; case SimIoError: carrierText = makeCarrierStringOnEmergencyCapable( getContext().getText(R.string.lockscreen_sim_error_message_short), plmn); break; } if (DEBUG) Log.d(TAG, "getCarrierTextForSimState: carrierText=" + carrierText); Loading Loading @@ -305,6 +311,8 @@ public class CarrierText extends LinearLayout { return StatusMode.SimPermDisabled; case UNKNOWN: return StatusMode.SimMissing; case CARD_IO_ERROR: return StatusMode.SimIoError; } return StatusMode.SimMissing; } Loading
packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java +2 −0 Original line number Diff line number Diff line Loading @@ -561,6 +561,8 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { } else { state = IccCardConstants.State.UNKNOWN; } } else if (IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR.equals(stateExtra)) { state = IccCardConstants.State.CARD_IO_ERROR; } else if (IccCardConstants.INTENT_VALUE_ICC_LOADED.equals(stateExtra) || IccCardConstants.INTENT_VALUE_ICC_IMSI.equals(stateExtra)) { // This is required because telephony doesn't return to "READY" after Loading