diff --git a/pySim-read.py b/pySim-read.py index 31a33746..4b3b1be6 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 fc5bcdf5..944dbfc6 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 b231f00b..39f5ff60 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.