CTA认证system_process定位联网未明示问题

针对高通7.1系统在开机时出现不明联网和定位的现象,通过ADB工具发现com.qualcomm.location.XT进程是问题源头。解决方法包括不编译xtra_t_app.apk,配置CTA相关属性,加入WAPI证书,以及通过LocationManagerService.java的调试开关分析定位进程。此外,使用tcpdump和DDMS辅助排查和验证,连接手机热点进行测试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:

高通7.1系统开机过程中会莫名的联网,或者定位。由于不知道实验室的测试手法,也没有相关的log,看到这个问题只能一脸蒙B。

解决方法:

用adb shell ps命令查看系统进程,发现有com.qualcomm.location.XT进程,这个进程会进行联网定位。而这个进行其它就是xtra_t_app.apk。这个apk在国内是不会起作用的,我们只要不编译这个apk就可以了。修改如下:

diff --git a/vendor/qcom/proprietary/common/config/device-vendor.mk b/vendor/qcom/proprietary/common/config/device-vendor.mk
index 16b6d0f..e9f4547 100755
--- a/vendor/qcom/proprietary/common/config/device-vendor.mk
+++ b/vendor/qcom/proprietary/common/config/device-vendor.mk
@@ -423,7 +423,7 @@ GPS += izat.conf
 GPS += sap.conf
 GPS += com.qualcomm.location.vzw_library.xml
 GPS += libloc_ext
-GPS += xtra_t_app
+#GPS += xtra_t_app
 GPS += com.qualcomm.location.vzw_library
 GPS += libgeofence
 GPS += libflp
@@ -465,9 +465,9 @@ GPS += libasn1cper
 GPS += libasn1crtx
 GPS += location-mq
 GPS += xtra_root_cert.pem
-GPS += xtwifi-client
+#GPS += xtwifi-client
 GPS += xtwifi.conf
-GPS += xtwifi-inet-agent
+#GPS += xtwifi-inet-agent
 GPS += xtwifi-upload-test
 GPS += test-fake-ap
 GPS += test-pos-tx

在这里记录下CTA认证的修改配置。

1.高通7.1的代码是有相关CTA的配置的,在代码中我们只要预装CSM应用并且配置如下属性:

persist.sys.strict_op_enable=true
persist.radio.phone.matchnum=11

2.加入WAPI认证证书

diff --git a/device/qcom/sepolicy/common/file.te b/device/qcom/sepolicy/common/file.te
index 15e2e2f..71103e8 100755
--- a/device/qcom/sepolicy/common/file.te
+++ b/device/qcom/sepolicy/common/file.te
@@ -200,6 +200,9 @@ type wififtmd_socket, file_type;
 
 type persist_alarm_file, file_type;
 
+#WAPI
+type wapi_data_file, file_type, data_file_type;
+
 type persist_time_file, file_type;
 
 # 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值