mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-19 11:58:34 +03:00
Move reading of USIM service table to generic USIM class
Change-Id: I537547f3bd01a547310358f8a8fceddcb4c79f37
This commit is contained in:
@@ -277,6 +277,14 @@ class UsimCard(Card):
|
||||
EF_USIM_ADF_map['ePDGId'], epdgid_tlv)
|
||||
return sw
|
||||
|
||||
def read_ust(self):
|
||||
(res, sw) = self._scc.read_binary(EF_USIM_ADF_map['UST'])
|
||||
if sw == '9000':
|
||||
# Print those which are available
|
||||
return ([res, dec_st(res, table="usim")], sw)
|
||||
else:
|
||||
return ([None, None], sw)
|
||||
|
||||
|
||||
class _MagicSimBase(Card):
|
||||
"""
|
||||
@@ -772,7 +780,7 @@ class SysmoUSIMSJS1(UsimCard):
|
||||
data, sw = self._scc.update_record('6F40', 1, data, force_len=True)
|
||||
|
||||
|
||||
class FairwavesSIM(Card):
|
||||
class FairwavesSIM(UsimCard):
|
||||
"""
|
||||
FairwavesSIM
|
||||
|
||||
@@ -961,7 +969,7 @@ class OpenCellsSim(Card):
|
||||
# write EF.IMSI
|
||||
data, sw = self._scc.update_binary('6f07', enc_imsi(p['imsi']))
|
||||
|
||||
class WavemobileSim(Card):
|
||||
class WavemobileSim(UsimCard):
|
||||
"""
|
||||
WavemobileSim
|
||||
|
||||
|
||||
Reference in New Issue
Block a user