Harald Welte | c89a1a9 | 2022-02-17 12:42:14 +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 5G related services and files. This can be used |
| 6 | # in case you do not wish to use any 5G services, or you do not wish to configure |
| 7 | # the 5G specific files on the USIM card. The card will then behave like a 3G USIM |
| 8 | # without any 5G 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 5G related services in EF.UST |
| 14 | select ADF.USIM |
| 15 | select EF.UST |
| 16 | ust_service_deactivate 122 |
| 17 | ust_service_deactivate 123 |
| 18 | ust_service_deactivate 124 |
| 19 | ust_service_deactivate 125 |
| 20 | ust_service_deactivate 127 |
| 21 | ust_service_deactivate 129 |
| 22 | ust_service_deactivate 130 |
| 23 | ust_service_deactivate 132 |
| 24 | ust_service_deactivate 133 |
| 25 | ust_service_deactivate 134 |
| 26 | ust_service_deactivate 135 |
| 27 | |
| 28 | # deactivate all files in EF.5GS |
| 29 | select ADF.USIM |
| 30 | select DF.5GS |
| 31 | |
| 32 | select EF.5GAUTHKEYS |
| 33 | deactivate_file |
| 34 | |
| 35 | select EF.5GS3GPPLOCI |
| 36 | deactivate_file |
| 37 | |
| 38 | select EF.5GSN3GPPNSC |
| 39 | deactivate_file |
| 40 | |
| 41 | select EF.5GSN3GPPLOCI |
| 42 | deactivate_file |
| 43 | |
| 44 | select EF.5GS3GPPNSC |
| 45 | deactivate_file |
| 46 | |
| 47 | # only exists on sysmoISIM-SJA2v2 |
| 48 | select EF.OPL5G |
| 49 | deactivate_file |
| 50 | |
| 51 | select EF.Routing_Indicator |
| 52 | deactivate_file |
| 53 | |
| 54 | select EF.SUCI_Calc_Info |
| 55 | deactivate_file |
| 56 | |
| 57 | select EF.SUPI_NAI |
| 58 | deactivate_file |
| 59 | |
| 60 | # only exists on sysmoISIM-SJA2v2 |
| 61 | select EF.TN3GPPSNN |
| 62 | deactivate_file |
| 63 | |
| 64 | select EF.UAC_AIC |
| 65 | deactivate_file |
| 66 | |
| 67 | # only exists on sysmoISIM-SJA2v2 |
| 68 | select EF.URSP |
| 69 | deactivate_file |