diff options
author | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-20 18:50:39 +0100 |
---|---|---|
committer | Supreeth Herle <herlesupreeth@gmail.com> | 2020-04-16 07:38:27 +0200 |
commit | e26331ef72f353f758e0efd7c79afc8d35799c97 (patch) | |
tree | 6e0f0d72c0ba63575eb2c009aee5213ec3ca9776 /pySim | |
parent | 441c4a768f2bbe7547673e302a7f8e3f95570b0a (diff) |
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
Diffstat (limited to 'pySim')
-rw-r--r-- | pySim/cards.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pySim/cards.py b/pySim/cards.py index d27092d..a12b111 100644 --- a/pySim/cards.py +++ b/pySim/cards.py @@ -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 |