Move reading of ePDG Id to generic USIM class

Change-Id: I716acb994430db3d4e56fea072f8dc2cebeaba84
This commit is contained in:
herlesupreeth
2020-09-29 10:03:06 +02:00
committed by laforge
parent 5d0a30c19c
commit f8232db327
5 changed files with 13 additions and 9 deletions

View File

@@ -264,6 +264,13 @@ class UsimCard(Card):
data, sw = self._scc.update_binary(EF_USIM_ADF_map['EHPLMN'], ehplmn)
return sw
def read_epdgid(self):
(res, sw) = self._scc.read_binary(EF_USIM_ADF_map['ePDGId'])
if sw == '9000':
return (dec_epdgid(res), sw)
else:
return (None, sw)
def update_epdgid(self, epdgid):
epdgid_tlv = enc_epdgid(epdgid)
data, sw = self._scc.update_binary(