commit | c7f2f7413be44212d37feda093537d93f25c0546 | [log] [tgz] |
---|---|---|
author | Supreeth Herle <herlesupreeth@gmail.com> | Thu Mar 19 12:06:20 2020 +0100 |
committer | Supreeth Herle <herlesupreeth@gmail.com> | Sun Mar 22 10:17:05 2020 +0100 |
tree | cb1e70653ade6e143693d3fc2af9d329a880eac9 | |
parent | 98a6927b271fefd33f8218542794f8d0c8269cf1 [diff] [blame] |
Move parsing of GID2 to generic Card class Change-Id: I3fe4b08c888a39cda7e7fce7a467f17908bdc3ad
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 @@ 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):