pySim-read.py: support for reading GID2 from SIM

Change-Id: I0e893c3929aa1be6b55af296484811a7b94db560
This commit is contained in:
Supreeth Herle
2020-03-05 15:33:00 +01:00
committed by herlesupreeth
parent ab46d625fc
commit 0e90e6c3c6
7 changed files with 16 additions and 0 deletions

View File

@@ -118,6 +118,16 @@ if __name__ == '__main__':
except Exception as e:
print("GID1: Can't read file -- %s" % (str(e),))
# EF.GID2
try:
(res, sw) = scc.read_binary(EF['GID2'])
if sw == '9000':
print("GID2: %s" % (res,))
else:
print("GID2: Can't read, response code = %s" % (sw,))
except Exception as e:
print("GID2: Can't read file -- %s" % (str(e),))
# EF.SMSP
(res, sw) = scc.read_record(['3f00', '7f10', '6f42'], 1)
if sw == '9000':