mirror of https://gerrit.osmocom.org/pysim
Populate AIDs present on the UICC
Change-Id: I4d0d8f5f1e8cb252be55a2995b730927cfa7004d
This commit is contained in:
parent
475dcaa4a1
commit
3bf43639ce
|
@ -98,6 +98,9 @@ if __name__ == '__main__':
|
||||||
# Initialize Card object by auto detecting the card
|
# Initialize Card object by auto detecting the card
|
||||||
card = card_detect("auto", scc) or Card(scc)
|
card = card_detect("auto", scc) or Card(scc)
|
||||||
|
|
||||||
|
# Read all AIDs on the UICC
|
||||||
|
card.read_aids()
|
||||||
|
|
||||||
# EF.ICCID
|
# EF.ICCID
|
||||||
(res, sw) = card.read_iccid()
|
(res, sw) = card.read_iccid()
|
||||||
if sw == '9000':
|
if sw == '9000':
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
Using PC/SC reader (dev=2) interface
|
Using PC/SC reader (dev=5) interface
|
||||||
Reading ...
|
Reading ...
|
||||||
Autodetected card type: fakemagicsim
|
Autodetected card type: fakemagicsim
|
||||||
|
Can't read AIDs from SIM -- SW match failed! Expected 9000 and got 9404.
|
||||||
ICCID: 1122334455667788990
|
ICCID: 1122334455667788990
|
||||||
IMSI: 001010000000102
|
IMSI: 001010000000102
|
||||||
GID1: Can't read file -- SW match failed! Expected 9000 and got 9404.
|
GID1: Can't read file -- SW match failed! Expected 9000 and got 9404.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
Using PC/SC reader (dev=3) interface
|
Using PC/SC reader (dev=0) interface
|
||||||
Reading ...
|
Reading ...
|
||||||
Autodetected card type: sysmosim-gr1
|
Autodetected card type: sysmosim-gr1
|
||||||
|
Can't read AIDs from SIM -- SW match failed! Expected 9000 and got 9404.
|
||||||
ICCID: 1122334455667788990
|
ICCID: 1122334455667788990
|
||||||
IMSI: 001010000000102
|
IMSI: 001010000000102
|
||||||
GID1: Can't read file -- SW match failed! Expected 9000 and got 9404.
|
GID1: Can't read file -- SW match failed! Expected 9000 and got 9404.
|
||||||
|
|
Loading…
Reference in New Issue