Change in pysim[master]: sysmoISIM-SJA2: Enable programming of EF.ACC

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.org
Tue Jan 5 15:37:09 UTC 2021


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 <herlesupreeth at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210105/f5df9519/attachment.htm>


More information about the gerrit-log mailing list