mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 930394 - Part 2: RIL patch. B2G RIL: Correct cardState to permanentBlocked when no more PUK retry. r=yoshi.
This commit is contained in:
parent
1933f35d7b
commit
d10460dfa0
@ -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";
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user