This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/17833 )
Change subject: Populate AIDs present on the UICC
......................................................................
Populate AIDs present on the UICC
Change-Id: I4d0d8f5f1e8cb252be55a2995b730927cfa7004d
---
M pySim-read.py
M pysim-testdata/fakemagicsim.ok
M pysim-testdata/sysmosim-gr1.ok
3 files changed, 7 insertions(+), 2 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
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 @@
# 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.
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/17833
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4d0d8f5f1e8cb252be55a2995b730927cfa7004d
Gerrit-Change-Number: 17833
Gerrit-PatchSet: 3
Gerrit-Owner: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-Assignee: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-CC: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200419/85c4763d/attachment.htm>