Bug #5233


pySim-shell "reset" command doesn't trigger re-obtaining ADM PIN

Added by laforge 3 months ago. Updated about 2 months ago.

Target version:
Start date:
Due date:
% Done:


Spec Reference:


Following scenario:

  1. put CSV file with ADM pin data for a number of cards in place
  2. insert card into reader
  3. start pySim-shell
  4. verify_adm (works, using correct ADM1 from CSV)
  5. change the card
  6. issue "reset" at pySim-shell
  7. verify_adm (fails, as old ADM1 is used, not re-read after card/ICCID change)
Actions #1

Updated by dexter 3 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

The behavior above is the expected behavior. The reset command resets the card. When the card is changed, pySim-shell still has the old ICCID in memory so it still finds the ADM1 of the old card. I have already addressed the problem with a different command that not only resets the card but also the state around it. The patch is not in gerrit yet, but I will push it soon.

Actions #2

Updated by dexter 2 months ago

  • % Done changed from 50 to 90

The functionality that this ticket requests is implemented by this patch:

As already mentioned, its not so much about resetting the card, its more about resetting and regenerating the card state in pySim-shell.

Actions #3

Updated by dexter about 2 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100

The related patch (equip command) that makes it possible to swap out cards at runtime has been merged.


Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)