diff options
author | Sebastian Viviani <guilly@gmail.com> | 2020-05-29 00:14:55 +0100 |
---|---|---|
committer | herlesupreeth <herlesupreeth@gmail.com> | 2020-06-03 06:30:37 +0000 |
commit | 0dc8f6921707d1d59cbfe2c5841ff479632c5edc (patch) | |
tree | 0ba1293515a5c6784cf38df66d6132b4c3fd3d2b /pySim-read.py | |
parent | 29ca8049d6ea5fa27f1f4ea805b2e0d4888e6e24 (diff) |
ts_31_102.py: add EF_ADF_map
the EF files in the USIM ADF are different to the ones int the GSM dir
so added the dictionary to avoid conflicts and hardcoded values
the 'DIR' one was added in ts_51_011.py, not sure if it should be there
as it's not in that standard, but did it for simplicity
Change-Id: I458380bf46b2986662ecdede2551c22cd9be92ba
Diffstat (limited to 'pySim-read.py')
-rwxr-xr-x | pySim-read.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pySim-read.py b/pySim-read.py index e49a907..b23e6ee 100755 --- a/pySim-read.py +++ b/pySim-read.py @@ -29,7 +29,7 @@ import random import re import sys from pySim.ts_51_011 import EF, DF, EF_SST_map -from pySim.ts_31_102 import EF_UST_map +from pySim.ts_31_102 import EF_UST_map, EF_USIM_ADF_map from pySim.ts_31_103 import EF_IST_map from pySim.commands import SimCardCommands @@ -242,7 +242,7 @@ if __name__ == '__main__': # EF.UST - File Id in ADF USIM : 6f38 if '9000' == card.select_adf_by_aid(): # EF.UST - (res, sw) = card.read_binary('6f38') + (res, sw) = card.read_binary(EF_USIM_ADF_map['UST']) if sw == '9000': print("USIM Service Table: %s" % res) # Print those which are available |