aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSupreeth Herle <herlesupreeth@gmail.com>2020-03-26 10:03:25 +0100
committerherlesupreeth <herlesupreeth@gmail.com>2021-01-05 15:59:38 +0100
commita97944b6ca9e39dcd34be980e50f11257803f031 (patch)
treeb44df70de75dae53f2634f3d63118eef7d98b946
parentc60192375e6da9cdc370e140e88a49618fc03b1d (diff)
sysmoISIM-SJA2: Enable programming of EF.ACC
-rw-r--r--pySim/cards.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pySim/cards.py b/pySim/cards.py
index a8dcf10..7a61b68 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -1298,6 +1298,12 @@ class SysmoISIMSJA2(UsimCard, IsimCard):
r = self._scc.select_file(['3f00', '7f10'])
data, sw = self._scc.update_record('6F40', 1, content, force_len=True)
+ # EF.ACC
+ if p.get('acc'):
+ sw = self.update_acc(p['acc'])
+ if sw != '9000':
+ print("Programming ACC failed with code %s"%sw)
+
# Populate AIDs
self.read_aids()