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

@@ -267,12 +267,12 @@ if __name__ == '__main__':
#EF.ePDGId - Home ePDG Identifier
try:
(res, sw) = card.read_binary(EF_USIM_ADF_map['ePDGId'])
if sw == '9000':
content = dec_epdgid(res)
print("ePDGId:\n%s" % (len(content) and content or '\tNot available\n',))
else:
print("ePDGId: Can't read, response code = %s" % (sw,))
if card.file_exists(EF_USIM_ADF_map['ePDGId']):
(res, sw) = card.read_epdgid()
if sw == '9000':
print("ePDGId:\n%s" % (len(res) and res or '\tNot available\n',))
else:
print("ePDGId: Can't read, response code = %s" % (sw,))
except Exception as e:
print("ePDGId: Can't read file -- " + str(e))