如何开启并自测电信自注册?

如何开启并自测电信自注册?

1. 代码路径
P开始运行在OP09CTelephony.jar
代码路径为/vendor/mediatek/proprietary/operator/frameworks/telephony/OP09/common/java/com/ct

  • deviceregister - CDMA和IMS短信自注册
  • selfregister - 数据域自注册

2. 开启电信自注册功能
P之后版本:ro.vendor.mtk_devreg_app=1, ro.vendor.mtk_ct4greg_app=1
(当前的project需要是电信版本,即optr为OP09。OM版本不会有此功能)
功能开启状态下,通过工程模式中可以对feature进行动态开关。对应的路径见下方:
短信自注册开关:Engineer Mode->Hardware Testing->Device Register->Send Auto Register Message
数据自注册开关:Engineer Mode->Telephony->Misc Feature Config->Self Register

3. 如何客制化"厂商和软件版本"
alps/device/ c u s t o m e r N a m e / customerName/ customerName/projectName/custom.conf
dm.Manufacturer = ***
dm.SoftwareVersion = ***
如果该路径找不到custom.conf,可以到如下位置copy到此位置即可
vendor/mediatek/proprietary/operator/SPEC/OP09/SPEC0212/SEGC/custom.conf

4. 自测步骤并抓取有效的mtklog
(1)进入工程模式*##3646633##*->Log and Debugging ->MTKLogger -> 按下Start 按钮开始录制log
(2)关机插卡/换卡开机,等待5分钟

  • CDMA短信自注册:CT卡,关闭Volte
  • IMS短信自注册:CT卡,开启Volte
  • 数据自注册:电信卡开启数据连接,或SIM卡开启Wifi

5. log分析
因电信广研院的自注册平台不对外开放,无法直接通过访问平台查看自注册的发起与结果,
内部测试只能通过查看log的方式查看自注册测试结果。
debuglogger或mtklog中mobilelog\APLog_XXX,查看当前目录和boot__normal子目录
下main_log_*,搜索关键字DeviceRegister和SelfRegister

(1)CDMA短信自注册
01-05 13:56:21.149 1465 1807 I DeviceRegister.RegisterService: [sendRegisterMessage] slot: 0, len: 117, content (hide sensitive): MTK-k61…*******0002000*******70142768k61…
01-05 13:56:22.970 1465 1465 I DeviceRegister.SmsSendReceiver: onReceive Intent { act=com.mediatek.deviceregister.MESSAGE_SEND flg=0x10 (has extras) }
// 发送CDMA注册短信

01-05 13:57:14.106 1465 1716 I DeviceRegister.AgentProxy: setRegisterFlag true
01-05 13:57:14.153 1465 1716 I DeviceRegister.RegisterService: Register success!
// 收到server回复,自注册成功

(2)IMS短信自注册
01-05 14:04:51.903386 1570 1967 I DeviceRegister.ImsRegister: [sendRegisterMessage] slot: 0, len: 117, content (hide sensitive): MTK-k61…*******23334665*******23334556*******20733334k61…
01-05 14:04:52.256165 1570 1570 I DeviceRegister.SmsSendReceiver: onReceive Intent { act=com.mediatek.deviceregister.MESSAGE_SEND_IMS flg=0x10 (has extras) }
// 发送IMS注册短信

01-05 14:05:05.791175 1570 1821 I DeviceRegister.AgentProxyIms: setRegisterFlag slot 0 flag true
01-05 14:05:05.803657 1570 1821 I DeviceRegister.ImsRegister: Register success!
// 收到server回复,自注册成功

(3)数据域自注册
01-05 14:04:32.063171 1570 1976 D SelfRegister.RegisterMessage: Generate data (hide sensitive): {。。。}
// 发送数据域注册http数据包信息

01-05 14:04:42.537614 1570 1976 I SelfRegister.Utils: Result code 0, desc Success
01-05 14:04:42.537807 1570 1976 I SelfRegister.RegisterService: analyseResponse(), resultCode:0 resultDesc:Success
// 收到server回复,自注册成功

你可能感兴趣的:(Android,电信自注册,AndroidP)