mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 02:48:34 +03:00
SysmoISIM-SJA2: Add option to set Service Provider Name (SPN)
Same implementation as for sysmoUSIM-SJS1 Change-Id: I3a9dd2fe85126584758ea4cfa127f9cd14ab0c7d
This commit is contained in:
@@ -1266,6 +1266,11 @@ class SysmoISIMSJA2(UsimCard, IsimCard):
|
||||
# select DF_GSM
|
||||
self._scc.select_path(['7f20'])
|
||||
|
||||
# set Service Provider Name
|
||||
if p.get('name') is not None:
|
||||
content = enc_spn(p['name'], True, True)
|
||||
data, sw = self._scc.update_binary('6F46', rpad(content, 32))
|
||||
|
||||
# write EF.IMSI
|
||||
if p.get('imsi'):
|
||||
self._scc.update_binary('6f07', enc_imsi(p['imsi']))
|
||||
|
||||
Reference in New Issue
Block a user