Bug 930394 - Part 2: RIL patch. B2G RIL: Correct cardState to permanentBlocked when no more PUK retry. r=yoshi.

This commit is contained in:
Shawn Ku 2013-11-07 17:59:09 +08:00
parent 1933f35d7b
commit d10460dfa0
2 changed files with 7 additions and 0 deletions

View File

@ -2389,6 +2389,7 @@ this.GECKO_CARDSTATE_CORPORATE_PUK_REQUIRED = "corporatePukRequired";
this.GECKO_CARDSTATE_SERVICE_PROVIDER_PUK_REQUIRED = "serviceProviderPukRequired";
this.GECKO_CARDSTATE_SIM_PUK_REQUIRED = "simPersonalizationPukRequired";
this.GECKO_CARDSTATE_READY = "ready";
this.GECKO_CARDSTATE_PERMANENT_BLOCKED = "permanentBlocked";
this.GECKO_CARDLOCK_PIN = "pin";
this.GECKO_CARDLOCK_PIN2 = "pin2";

View File

@ -3013,6 +3013,12 @@ let RIL = {
newCardState = GECKO_CARDSTATE_UNKNOWN;
}
let pin1State = app.pin1_replaced ? iccStatus.universalPINState :
app.pin1;
if (pin1State === CARD_PINSTATE_ENABLED_PERM_BLOCKED) {
newCardState = GECKO_CARDSTATE_PERMANENT_BLOCKED;
}
if (this.cardState == newCardState) {
return;
}