mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-29 21:24:06 +03:00
cards/sysmoUSIM-SJS1: support programming of ACC bits
Change-Id: Id0ed9e5654dc0a70a4732bbe5787f1900789d580
This commit is contained in:
committed by
Vadim Yanitskiy
parent
2d7859759e
commit
c8796a3184
@@ -617,6 +617,9 @@ class SysmoUSIMSJS1(Card):
|
|||||||
content = enc_spn(p['name'], True, True)
|
content = enc_spn(p['name'], True, True)
|
||||||
data, sw = self._scc.update_binary('6F46', rpad(content, 32))
|
data, sw = self._scc.update_binary('6F46', rpad(content, 32))
|
||||||
|
|
||||||
|
if p.get('acc') is not None:
|
||||||
|
self.update_acc(p['acc'])
|
||||||
|
|
||||||
# write EF.IMSI
|
# write EF.IMSI
|
||||||
data, sw = self._scc.update_binary('6f07', enc_imsi(p['imsi']))
|
data, sw = self._scc.update_binary('6f07', enc_imsi(p['imsi']))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user