Project

General

Profile

Actions

Bug #5233

closed

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

Added by laforge over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
09/16/2021
Due date:
% Done:

100%

Spec Reference:

Description

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 over 2 years 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 over 2 years ago

  • % Done changed from 50 to 90

The functionality that this ticket requests is implemented by this patch: https://gerrit.osmocom.org/c/pysim/+/25549

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 over 2 years 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.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)