mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-10 09:16:57 +03:00
pySim-fairwaves-prog: Read a selected A3/A8 algorithm.
Change-Id: I757ea725bd5616dbd6ef329ea5981063fd780761
This commit is contained in:
1 parent
99b5e321e5
commit
5dfda9fdd7
1 file changed
+7
@@ -104,6 +104,13 @@ def program_sim_card(card, sim_db, opts):
|
|||||||
else:
|
else:
|
||||||
print("Ki: Can't read, response code = %s" % (sw,))
|
print("Ki: Can't read, response code = %s" % (sw,))
|
||||||
|
|
||||||
|
# Read EF.A3A8
|
||||||
|
(a3a8, sw) = card.read_a3a8()
|
||||||
|
if sw == '9000':
|
||||||
|
print("A3/A8: %s" % (a3a8,))
|
||||||
|
else:
|
||||||
|
print("A3/A8: Can't read, response code = %s" % (sw,))
|
||||||
|
|
||||||
print("Programming...")
|
print("Programming...")
|
||||||
|
|
||||||
# Update SPN
|
# Update SPN
|
||||||
|
|||||||
Reference in new issue
Block a user