Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60121181 authored by Yuling Liu's avatar Yuling Liu Committed by Toshiya Ikenaga
Browse files

Fix: updateExternalState() does not update SIM state to PERM_DISABLED

setExternalState() shall be called with State.PERM_DISABLED if the state
of PIN1 is PinState.PINSTATE_ENABLED_PERM_BLOCKED. Refer to the same
logic in processLockedState().

Bug: 29864172
Change-Id: I68f6c62b3713520431177b041c23027e94a5d66b
parent fb00edac
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -419,6 +419,11 @@ public class IccCardProxy extends Handler implements IccCard {
                setExternalState(State.PIN_REQUIRED);
                break;
            case APPSTATE_PUK:
                PinState pin1State = mUiccApplication.getPin1State();
                if (pin1State.isPermBlocked()) {
                    setExternalState(State.PERM_DISABLED);
                    return;
                }
                setExternalState(State.PUK_REQUIRED);
                break;
            case APPSTATE_SUBSCRIPTION_PERSO: