diff options
author | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-19 12:06:20 +0100 |
---|---|---|
committer | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-22 10:17:05 +0100 |
commit | c7f2f7413be44212d37feda093537d93f25c0546 (patch) | |
tree | cb1e70653ade6e143693d3fc2af9d329a880eac9 /pySim | |
parent | 98a6927b271fefd33f8218542794f8d0c8269cf1 (diff) |
Move parsing of GID2 to generic Card class
Change-Id: I3fe4b08c888a39cda7e7fce7a467f17908bdc3ad
Diffstat (limited to 'pySim')
-rw-r--r-- | pySim/cards.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pySim/cards.py b/pySim/cards.py index 61a3707..495d3ee 100644 --- a/pySim/cards.py +++ b/pySim/cards.py @@ -152,6 +152,13 @@ class Card(object): else: return (None, sw) + def read_gid2(self): + (res, sw) = self._scc.read_binary(EF['GID2']) + if sw == '9000': + return (res, sw) + else: + return (None, sw) + # Read the (full) AID for either ISIM or USIM application def read_aid(self, isim = False): |