From 3bf43639ce6fff62958afb20d0d2a688193c0799 Mon Sep 17 00:00:00 2001 From: Supreeth Herle Date: Fri, 20 Mar 2020 20:20:27 +0100 Subject: [PATCH] Populate AIDs present on the UICC Change-Id: I4d0d8f5f1e8cb252be55a2995b730927cfa7004d --- pySim-read.py | 3 +++ pysim-testdata/fakemagicsim.ok | 3 ++- pysim-testdata/sysmosim-gr1.ok | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) 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.