问题描述:
高通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
@&#