pySim-read.py: Enable parsing of EF.ePDGSelection in USIM

As per TS 31.102, this EF can found under ADF.USIM at File Id 6ff4.
Also, if service n°106 and service n°107 are available, this file shall be present.

Change-Id: I98916e6f5c9791aff63c18a3b16bdfb8ae9b2d36
This commit is contained in:
Supreeth Herle
2020-03-24 13:03:43 +01:00
committed by herlesupreeth
parent 95b4e8d4fa
commit 99d55552d5
3 changed files with 25 additions and 0 deletions

View File

@@ -277,6 +277,13 @@ class UsimCard(Card):
EF_USIM_ADF_map['ePDGId'], epdgid_tlv)
return sw
def read_ePDGSelection(self):
(res, sw) = self._scc.read_binary(EF_USIM_ADF_map['ePDGSelection'])
if sw == '9000':
return (format_ePDGSelection(res), sw)
else:
return (None, sw)
def read_ust(self):
(res, sw) = self._scc.read_binary(EF_USIM_ADF_map['UST'])
if sw == '9000':