Add ability to parse SIM Service Table (EF.SST)

As per TS.51.011, This EF indicates which services in the SIM are allocated, and whether, if allocated, the service is activated
.If a service is not indicated as available in the SIM, the ME shall not select this service.

Change-Id: Id28a35727adbaaa9df19b1adc621a0c51ad0e51b
This commit is contained in:
Supreeth Herle
2020-03-20 18:50:39 +01:00
parent 441c4a768f
commit e26331ef72
8 changed files with 264 additions and 2 deletions

View File

@@ -188,7 +188,15 @@ class Card(object):
else:
return (None, sw)
# Read the (full) AID for either ISIM or USIM application
# Read SIM Service table
def read_sst(self):
(res, sw) = self._scc.read_binary(EF['SST'])
if sw == '9000':
return ((res, parse_st(res)), sw)
else:
return (None, sw)
# Read the (full) AID for either ISIM or USIM or ISIM application
def read_aid(self, isim = False):
# First (known) halves of the AID