forked from public/pysim
Move parsing of OPLMNwAcT to generic Card class
Change-Id: I8050bd103a7085b2631ddc4e567d15e05f9428f2
This commit is contained in:
@@ -84,6 +84,13 @@ class Card(object):
|
||||
data, sw = self._scc.update_binary(EF['HPLMNwAcT'], content + 'ffffff0000' * (size // 5 - 1))
|
||||
return sw
|
||||
|
||||
def read_oplmn_act(self):
|
||||
(res, sw) = self._scc.read_binary(EF['OPLMNwAcT'])
|
||||
if sw == '9000':
|
||||
return (format_xplmn_w_act(res), sw)
|
||||
else:
|
||||
return (None, sw)
|
||||
|
||||
def update_oplmn_act(self, mcc, mnc, access_tech='FFFF'):
|
||||
"""
|
||||
See note in update_hplmn_act()
|
||||
|
||||
Reference in New Issue
Block a user