laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/21957 
)

Change subject: sysmoISIM-SJA2: Enable programming of EF.ACC
......................................................................

sysmoISIM-SJA2: Enable programming of EF.ACC

Change-Id: If318117a2339399191dfc3fcec856d9247a034fb
---
M pySim/cards.py
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



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 @@
                        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()


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/21957
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: If318117a2339399191dfc3fcec856d9247a034fb
Gerrit-Change-Number: 21957
Gerrit-PatchSet: 2
Gerrit-Owner: herlesupreeth <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to