diff options
author | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-20 20:20:27 +0100 |
---|---|---|
committer | Supreeth Herle <herlesupreeth@gmail.com> | 2020-04-16 07:55:13 +0200 |
commit | 3bf43639ce6fff62958afb20d0d2a688193c0799 (patch) | |
tree | d619cecd8eb4fe067e169dfe42baaed376678e2f | |
parent | 475dcaa4a1891423919c8eac864aa2600e8f17e8 (diff) |
Populate AIDs present on the UICC
Change-Id: I4d0d8f5f1e8cb252be55a2995b730927cfa7004d
-rwxr-xr-x | pySim-read.py | 3 | ||||
-rw-r--r-- | pysim-testdata/fakemagicsim.ok | 3 | ||||
-rw-r--r-- | pysim-testdata/sysmosim-gr1.ok | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/pySim-read.py b/pySim-read.py index 31a3374..4b3b1be 100755 --- a/pySim-read.py +++ b/pySim-read.py @@ -98,6 +98,9 @@ if __name__ == '__main__': # Initialize Card object by auto detecting the card card = card_detect("auto", scc) or Card(scc) + # Read all AIDs on the UICC + card.read_aids() + # EF.ICCID (res, sw) = card.read_iccid() if sw == '9000': diff --git a/pysim-testdata/fakemagicsim.ok b/pysim-testdata/fakemagicsim.ok index fc5bcdf..944dbfc 100644 --- a/pysim-testdata/fakemagicsim.ok +++ b/pysim-testdata/fakemagicsim.ok @@ -1,6 +1,7 @@ -Using PC/SC reader (dev=2) interface +Using PC/SC reader (dev=5) interface Reading ... Autodetected card type: fakemagicsim +Can't read AIDs from SIM -- SW match failed! Expected 9000 and got 9404. ICCID: 1122334455667788990 IMSI: 001010000000102 GID1: Can't read file -- SW match failed! Expected 9000 and got 9404. diff --git a/pysim-testdata/sysmosim-gr1.ok b/pysim-testdata/sysmosim-gr1.ok index b231f00..39f5ff6 100644 --- a/pysim-testdata/sysmosim-gr1.ok +++ b/pysim-testdata/sysmosim-gr1.ok @@ -1,6 +1,7 @@ -Using PC/SC reader (dev=3) interface +Using PC/SC reader (dev=0) interface Reading ... Autodetected card type: sysmosim-gr1 +Can't read AIDs from SIM -- SW match failed! Expected 9000 and got 9404. ICCID: 1122334455667788990 IMSI: 001010000000102 GID1: Can't read file -- SW match failed! Expected 9000 and got 9404. |