GrapheneOS / os-issue-tracker

Issue tracker for GrapheneOS Android Open Source Project hardening work. Standalone projects like Auditor, AttestationServer and hardened_malloc have their own dedicated trackers.
https://grapheneos.org/
348 stars 19 forks source link

Cannot unlocked locked sim card (after entering wrong PIN three times) #3727

Open PatrykMis opened 2 months ago

PatrykMis commented 2 months ago

Steps to reproduce:

  1. Power off the phone and power on.
  2. Enter wrong PIN 3 times.
  3. Enter valid PUK.
  4. Enter two times new PIN, like asked.
  5. There is a message that PIN codes do not match.

Tried several times, but no luck. I had to put my SIM into a different phone to unlock it.

thestinger commented 2 months ago

Was this SIM working before?

PatrykMis commented 2 months ago

Yes, before and now.

thestinger commented 2 months ago

It's working again in your GrapheneOS Pixel 8?

PatrykMis commented 2 months ago

Yes, after I unlocked the card in a different device with Android 13 (not GrapheneOS) by entering PUK and setting new pin (I entered the same as before).

In my GrapheneOS device, I tried to set new PIN to be the same as before as well as 1111: it always was saying the pins do not match.

thestinger commented 2 months ago

Could it be an issue with the SIM card? It's hard to see how it could be an OS issue.

PatrykMis commented 2 months ago

No, it's not possible that the issue is related to the SIM card.

I think one way to reproduce and debug the problem is to temporarily set a permissive USB policy, turn on and authorize ADB, reboot the phone, lock the card by entering the wrong PIN three times, then enter the PUK and try to set a new PIN while observing the logcat.

Maybe I used the wrong subject, because the problem is not related to unlocking, but to setting a new PIN after three incorrect attempts with a locked device.