diff options
author | herlesupreeth <herlesupreeth@gmail.com> | 2020-09-11 21:18:52 +0200 |
---|---|---|
committer | herlesupreeth <herlesupreeth@gmail.com> | 2020-09-15 15:56:31 +0200 |
commit | 71e38482e116265a1c2d32d17c2815aff44114fc (patch) | |
tree | cd8538806aede55aceee7210e27cfea8e2c09d1d | |
parent | 1a13c44200aa1bcb94c6b0c1f4fc559b73b94557 (diff) |
Remove redundant function read_aid()
Change-Id: I46c4ac0b994db7fb5c3113175009175ec5c154e3
-rw-r--r-- | pySim/cards.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/pySim/cards.py b/pySim/cards.py index d1b449a..eeeae82 100644 --- a/pySim/cards.py +++ b/pySim/cards.py @@ -204,30 +204,6 @@ class Card(object): 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 - aid_usim = "a0000000871002" - aid_isim = "a0000000871004" - - # Select which one to look for - if isim: - aid = aid_isim - else: - aid = aid_usim - - # Find out how many records the EF.DIR has, then go through - # all records and try to find the AID we are looking for - aid_record_count = self._scc.record_count(['2F00']) - for i in range(0, aid_record_count): - record = self._scc.read_record(['2F00'], i + 1) - if aid in record[0]: - aid_len = int(record[0][6:8], 16) - return record[0][8:8 + aid_len * 2] - - return None - # Fetch all the AIDs present on UICC def read_aids(self): try: |