aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-read.py
diff options
context:
space:
mode:
Diffstat (limited to 'pySim-read.py')
-rwxr-xr-xpySim-read.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pySim-read.py b/pySim-read.py
index f63205a..a7d9063 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -315,6 +315,17 @@ if __name__ == '__main__':
except Exception as e:
print("Home Network Domain Name: Can't read file -- " + str(e))
+ # EF.IMPI - IMS private user identity
+ try:
+ if card.file_exists(EF_ISIM_ADF_map['IMPI']):
+ (res, sw) = card.read_impi()
+ if sw == '9000':
+ print("IMS private user identity: %s" % (len(res) and res or 'Not available',))
+ else:
+ print("IMS private user identity: Can't read, response code = %s" % (sw,))
+ except Exception as e:
+ print("IMS private user identity: 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"):