aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-read.py
diff options
context:
space:
mode:
authorSupreeth Herle <herlesupreeth@gmail.com>2020-06-01 12:53:57 +0200
committerherlesupreeth <herlesupreeth@gmail.com>2021-01-05 15:59:38 +0100
commitbe3b64167aeea40fc851940a80ec7c5033e5d00f (patch)
treec8bb5d21f74f4dc0ad9c10e2f8bb3f12cad7e026 /pySim-read.py
parenta97944b6ca9e39dcd34be980e50f11257803f031 (diff)
pySim-read.py: Enable reading of UICC IARI from ISIM
Diffstat (limited to 'pySim-read.py')
-rwxr-xr-xpySim-read.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pySim-read.py b/pySim-read.py
index 4047598..b94e709 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -334,6 +334,14 @@ if __name__ == '__main__':
except Exception as e:
print("IMS public user identity: Can't read file -- " + str(e))
+ # EF.UICCIARI - UICC IARI
+ try:
+ if card.file_exists(EF_ISIM_ADF_map['UICCIARI']):
+ res = card.read_iari()
+ print("UICC IARI:\n%s" % (len(res) and res or '\tNot available\n',))
+ except Exception as e:
+ print("UICC IARI: Can't read file -- " + str(e))
+
# Check whether we have th AID of ISIM, if so select it by its AID
# EF.IST - File Id in ADF ISIM : 6f07
if '9000' == card.select_adf_by_aid(adf="isim"):