SIM PIN remaining attempt count may be wrong

REPRODUCIBILITY: 100% (always)
OSVERSION: 5.0.0.43
HARDWARE: Reeder S19 Max Pro S - s19mps - s19mps - 1.0.0.30 - aarch64
UI LANGUAGE: English (UK) (user: en_GB, os: en_GB.utf8)
REGRESSION: not specified

DESCRIPTION:

When entering the SIM PIN, the remaining attempt counter may be wrongly displaying too many remaining attempts.

See Steps, below.

PRECONDITIONS:

  • likely Patchmanager must be installed (?), at least one patch which causes a Lipstick restart enabled.
  • SIM with PIN enabled
  • Settings: “require PIN” enabled

STEPS TO REPRODUCE:

  1. Boot device up to Lipstick Lock code prompt
  2. Enter Code
  3. SIM PIN prompt appears, showing 3 remainig attempts
  4. Enter wrong PIN two times
  5. Counter goes down to 1 remaining attempts
  6. Wait. Patchmanager will cause a Lipstick restart
  7. Enter Lock Code again
  8. Notice SIM PIN prompt does not appear
  9. Go to Settings->SIM
  10. Enter PIN again
  11. Notice prompt shows 3 remaining attempts.

EXPECTED RESULTS:

I expect the SIM to remember that there’s indeed only 1 attempt remaining.
If so, the UI should also.

ACTUAL RESULTS:

The displayed 3 remaining attempts are misleading.

MODIFICATIONS:

  • Patchmanager: yes
  • OpenRepos: yes
  • Chum: yes
  • Other: none specified

ADDITIONAL INFORMATION:

This may be regarded as a Patchmanager defect. If so, fine.

It however will also appear if it is possible to dismiss the initial PIN dialog in another way than through the PM-initiated Lipstick restart.

Device Owner User: nemo
Home Encryption: enabled

the initial version of this bug report was created using Bugger 0.10.6+git3

To fix this on the Patchmanager side: is there a way to detect from an application that the SIM PIN dialog is active currently??