Harald Welte | fa578bd | 2022-02-17 12:51:54 +0100 | [diff] [blame] | 1 | # 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 |
| 3 | set 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 |
| 11 | verify_adm |
| 12 | |
| 13 | # deactivate any IMS related services in EF.UST |
| 14 | select ADF.USIM |
| 15 | select EF.UST |
| 16 | ust_service_deactivate 93 |
| 17 | ust_service_deactivate 95 |
| 18 | ust_service_deactivate 104 |
| 19 | ust_service_deactivate 105 |
| 20 | ust_service_deactivate 106 |
| 21 | ust_service_deactivate 107 |
| 22 | ust_service_deactivate 108 |
| 23 | ust_service_deactivate 109 |
| 24 | ust_service_deactivate 110 |
| 25 | ust_service_deactivate 112 |
| 26 | ust_service_deactivate 114 |
| 27 | ust_service_deactivate 115 |
| 28 | ust_service_deactivate 118 |
| 29 | ust_service_deactivate 120 |
| 30 | ust_service_deactivate 131 |
| 31 | ust_service_deactivate 134 |
| 32 | |
| 33 | # deactivate all IMS related files in ADF.USIM |
| 34 | select ADF.USIM |
| 35 | |
| 36 | select EF.UICCIARI |
| 37 | deactivate_file |
| 38 | |
| 39 | select EF.ePDGId |
| 40 | deactivate_file |
| 41 | |
| 42 | select EF.ePDGSelection |
| 43 | deactivate_file |
| 44 | |
| 45 | select EF.ePDGIdEm |
| 46 | deactivate_file |
| 47 | |
| 48 | select EF.ePDGSelectionEm |
| 49 | deactivate_file |
| 50 | |
| 51 | select EF.FromPreferred |
| 52 | deactivate_file |
| 53 | |
| 54 | select EF.IMSConfigData |
| 55 | deactivate_file |
| 56 | |
| 57 | select EF.3GPPPSDATAOFF |
| 58 | deactivate_file |
| 59 | |
| 60 | select EF.3GPPPSDATAOFFservicelist |
| 61 | deactivate_file |
| 62 | |
| 63 | select EF.XCAPConfigData |
| 64 | deactivate_file |
| 65 | |
| 66 | select EF.MuDMiDConfigData |
| 67 | deactivate_file |
| 68 | |
| 69 | echo "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 | |
| 74 | quit |