blob: e5029da467cddd4b10e2a721ea26e47ad644aa8b [file] [log] [blame]
Harald Weltefa578bd2022-02-17 12:51:54 +01001# script to be used with pySim-shell.py which is part of the Osmocom pysim package,
2# found at https://osmocom.org/projects/pysim/wiki
3set echo true
4
5# this script will deactivate all IMS related services and files. This can be used
6# in case you do not wish to use any IMS services, or you do not wish to configure
7# the IMS specific files on the USIM/ISIM cards. The card will then behave like a 3G USIM
8# without any IMS capability, using the default fall-back mechanisms specified by 3GPP.
9
10# TODO: add your card-specific ADM pin at the end of the verify_adm line below
11verify_adm
12
13# deactivate any IMS related services in EF.UST
14select ADF.USIM
15select EF.UST
16ust_service_deactivate 93
17ust_service_deactivate 95
18ust_service_deactivate 104
19ust_service_deactivate 105
20ust_service_deactivate 106
21ust_service_deactivate 107
22ust_service_deactivate 108
23ust_service_deactivate 109
24ust_service_deactivate 110
25ust_service_deactivate 112
26ust_service_deactivate 114
27ust_service_deactivate 115
28ust_service_deactivate 118
29ust_service_deactivate 120
30ust_service_deactivate 131
31ust_service_deactivate 134
32
33# deactivate all IMS related files in ADF.USIM
34select ADF.USIM
35
36select EF.UICCIARI
37deactivate_file
38
39select EF.ePDGId
40deactivate_file
41
42select EF.ePDGSelection
43deactivate_file
44
45select EF.ePDGIdEm
46deactivate_file
47
48select EF.ePDGSelectionEm
49deactivate_file
50
51select EF.FromPreferred
52deactivate_file
53
54select EF.IMSConfigData
55deactivate_file
56
57select EF.3GPPPSDATAOFF
58deactivate_file
59
60select EF.3GPPPSDATAOFFservicelist
61deactivate_file
62
63select EF.XCAPConfigData
64deactivate_file
65
66select EF.MuDMiDConfigData
67deactivate_file
68
69echo "Please make sure to manually disable the ISIM applet as described in the end of the script"
70# you can currently only manually do this via GlobalPlatformPro or some other tool using
71# java -jar ./gp.jar --key-enc KIC1 --key-mac KID1 --key-dek KIK1 --lock-applet A0000000871004FFFFFFFF8907090000
72# (substituting KIC1/KID1/KIK1 with the card-specific keys, of course)
73
74quit