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 |
Harald Welte | 77d510b | 2022-07-08 20:46:16 +0200 | [diff] [blame] | 20 | ust_service_deactivate 126 |
Harald Welte | c89a1a9 | 2022-02-17 12:42:14 +0100 | [diff] [blame] | 21 | ust_service_deactivate 127 |
| 22 | ust_service_deactivate 129 |
| 23 | ust_service_deactivate 130 |
| 24 | ust_service_deactivate 132 |
| 25 | ust_service_deactivate 133 |
| 26 | ust_service_deactivate 134 |
| 27 | ust_service_deactivate 135 |
| 28 | |
| 29 | # deactivate all files in EF.5GS |
| 30 | select ADF.USIM |
| 31 | select DF.5GS |
| 32 | |
| 33 | select EF.5GAUTHKEYS |
| 34 | deactivate_file |
| 35 | |
| 36 | select EF.5GS3GPPLOCI |
| 37 | deactivate_file |
| 38 | |
| 39 | select EF.5GSN3GPPNSC |
| 40 | deactivate_file |
| 41 | |
| 42 | select EF.5GSN3GPPLOCI |
| 43 | deactivate_file |
| 44 | |
| 45 | select EF.5GS3GPPNSC |
| 46 | deactivate_file |
| 47 | |
| 48 | # only exists on sysmoISIM-SJA2v2 |
| 49 | select EF.OPL5G |
| 50 | deactivate_file |
| 51 | |
| 52 | select EF.Routing_Indicator |
| 53 | deactivate_file |
| 54 | |
| 55 | select EF.SUCI_Calc_Info |
| 56 | deactivate_file |
| 57 | |
| 58 | select EF.SUPI_NAI |
| 59 | deactivate_file |
| 60 | |
| 61 | # only exists on sysmoISIM-SJA2v2 |
| 62 | select EF.TN3GPPSNN |
| 63 | deactivate_file |
| 64 | |
| 65 | select EF.UAC_AIC |
| 66 | deactivate_file |
| 67 | |
| 68 | # only exists on sysmoISIM-SJA2v2 |
| 69 | select EF.URSP |
| 70 | deactivate_file |