Change in pysim[master]: Set uSIM to 'type approval operations' in EF['AD']

Robert Falkenberg gerrit-no-reply at
Mon Apr 5 06:27:09 UTC 2021

Robert Falkenberg has posted comments on this change. ( )

Change subject: Set uSIM to 'type approval operations' in EF['AD']

Patch Set 1:

The ``EF_AD`` field contains administrative data (AD).
It consists of four bytes ``B1``, ``B2``, ``B3``, ``B4``, and optionally further bytes for future use.

Current implementation only sets the MNC field appropriately (located in `B4`) and sets all other bits/bytes to 0.

However, `B1` defines the *UE operation mode* as listed below. For type approval operations (such as testing with a test uSIM), this value should be set to `0x80` rather than `0x00`(= normal operation).
This may unlock some UE capabilities that are restricted in normal operation mode.

Excerpt from [ETSI TS 131 102, 4.2.18](

B1 - UE operation mode:
	Initial value
	- '00' normal operation.
	- '80' type approval operations.
	- '01' normal operation + specific facilities.
	- '81' type approval operations + specific facilities.
	- '02' maintenance (off line).
	- '04' cell test operation. 

B2 - Additional information:
	Reserved for future use

B3 - Additional information:
	- B3.b1: OFM setting (Ciphering)
	- B3.others: Reserved for future use
B4 - Length of MNC in the IMSI:
	- B4.b4..B4.b1: length:  '0010' (= 2) or '0011' (=3)
	- B4.others: Reserved for future use

**Legend:** Byte X, bit Y: BX.bY

Further reading:

To view, visit
To unsubscribe, or for help writing mail filters, visit

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ie9040c6b127c268878a0845ed73d0918ec6bbb08
Gerrit-Change-Number: 23632
Gerrit-PatchSet: 1
Gerrit-Owner: Robert Falkenberg <robert.falkenberg at>
Gerrit-CC: Jenkins Builder
Gerrit-Comment-Date: Mon, 05 Apr 2021 06:27:09 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list