AP端可以获取对应SIM卡的属性值进行判断,0表示普通SIM卡,1表示测试卡。
"gsm.sim.ril.testsim", --- 卡1
"gsm.sim.ril.testsim.2", --- 卡2
"gsm.sim.ril.testsim.3", --- 卡3
"gsm.sim.ril.testsim.4", --- 卡4
[Modem]
“白卡”中有些文件内容会有一些特殊规定用于标识“白卡”的身份:
A:MCC-MNC = 001-01
B:EF_AD文件中的 ms_operation 的值为0x80/0x81/0x02/0x04
我们在读取EF_AD的时候会将之前读出的MCC/MNC满足情况一并做“白卡”判断,判断条件的关系有A&&B和A||B两种,判断条件的关系在test_sim_relation()中定义,若需要修改判断关系(&&或者||)直接修改此函数的return值即可,返回0对应||、返回1对应&&;
判断结果存放在SIM的全局context中(this_sim->is_test_sim),客户可调用is_test_sim()接口获得判断结果,参数为想获得信息的SIM编号:0x00/0x01/0x02/0x03分别对应SIM1、SIM2、SIM3、SIM4。
参考spec 3GPP TS 31.102 :EFAD (Administrative data)
This EF contains information concerning the mode of operation according to the type of USIM, such as normal (to be used by PLMN subscribers for 3G operations), type approval (to allow specific use of the ME during type approval procedures of e.g. the radio equipment), cell testing (to allow testing of a cell before commercial use of this cell), manufacturer specific (to allow the ME manufacturer to perform specific proprietary auto-test in its ME during e.g. maintenance phases).
MS operation mode
Contents: mode of operation for the MS
Coding: Initial value
- normal operation '00'
- type approval operations '80'
- normal operation + specific facilities '01'
- type approval operations + specific facilities '81'
- maintenance (off line) '02'
- cell test operation '04'
参考的spec:3GPP TS 51.010
Definition of default values for SIM Application Toolkit testing
EFIMSI (International Mobile Subscriber Identity)
Logically:
Length: 8 bytes
IMSI: 001 01 0123456789