mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-07 03:56:18 +03:00
Added feature to program SPN into sysmoUSIM-SJS1 SIM cards
Change-Id: Ia0f1a36ecb3898eaa1cf9925864e13369b1f31ce
This commit is contained in:
1 parent
f829945117
commit
7947d92bc1
2 files changed
+7
-3
No files matched your search
@@ -612,6 +612,10 @@ class SysmoUSIMSJS1(Card):
|
||||
content = "01" + p['opc']
|
||||
data, sw = self._scc.update_binary('00F7', content)
|
||||
|
||||
# set Service Provider Name
|
||||
content = enc_spn(p['name'], True, True)
|
||||
data, sw = self._scc.update_binary('6F46', rpad(content, 32))
|
||||
|
||||
# write EF.IMSI
|
||||
data, sw = self._scc.update_binary('6f07', enc_imsi(p['imsi']))
|
||||
|
||||
|
||||
Reference in new issue
Block a user