Skip to content

Commit 82b2cd0

Browse files
author
John Wang
committed
Add unusable SIM message.
Inform user "Unusable SIM card." when SIM is permanently disabled due to too many wrong PUK inputs. bug:5548405 Change-Id: Id82c7681f58f09709c630b4bc455facb549938ed
1 parent 459e459 commit 82b2cd0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

core/res/res/values/public.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,7 @@
13151315
<java-symbol type="string" name="lockscreen_password_wrong" />
13161316
<java-symbol type="string" name="lockscreen_pattern_instructions" />
13171317
<java-symbol type="string" name="lockscreen_pattern_wrong" />
1318+
<java-symbol type="string" name="lockscreen_permanent_disabled_sim_message_short" />
13181319
<java-symbol type="string" name="lockscreen_permanent_disabled_sim_instructions" />
13191320
<java-symbol type="string" name="lockscreen_plugged_in" />
13201321
<java-symbol type="string" name="lockscreen_sim_locked_message" />

core/res/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,6 +1898,8 @@
18981898
<string name="lockscreen_missing_sim_instructions">Insert a SIM card.</string>
18991899
<!-- Shown in the lock screen to ask the user to insert a SIM card when sim is missing or not readable. -->
19001900
<string name="lockscreen_missing_sim_instructions_long">The SIM card is missing or not readable. Insert a SIM card.</string>
1901+
<!-- Shown in the lock screen when SIM card is permanently disabled. -->
1902+
<string name="lockscreen_permanent_disabled_sim_message_short">Unusable SIM card.</string>
19011903
<!-- Shown in the lock screen to inform the user to SIM card is permanently disabled. -->
19021904
<string name="lockscreen_permanent_disabled_sim_instructions">Your SIM card has been permanently disabled.\n
19031905
Contact your wireless service provider for another SIM card.</string>

policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,8 @@ private void updateCarrierStateWithSimStatus(State simState) {
509509
break;
510510

511511
case SimPermDisabled:
512-
carrierText = getContext().getText(R.string.lockscreen_missing_sim_message_short);
512+
carrierText = getContext().getText(
513+
R.string.lockscreen_permanent_disabled_sim_message_short);
513514
carrierHelpTextId = R.string.lockscreen_permanent_disabled_sim_instructions;
514515
mEmergencyButtonEnabledBecauseSimLocked = true;
515516
break;

0 commit comments

Comments
 (0)