zoukankan      html  css  js  c++  java
  • 【GPS】Android O平台如何设置SUPL地址,以及GPS三个配置文件的优先级分析

    Android O平台如何设置SUPL地址?

      SUPL地址:  SUPL_HOST

               SUPL_PORT


    问题描述:

      Android O 以前的版本, SUPL地址是通过system/gps.conf进行配置的。

      在安卓O平台很多人将SUPL_HOST/SUPL_PORT的修改设置在/vendor/etc/gps.conf,这样做可能不会生效

            adb shell

            vendor/etc/gps.conf


    解决办法:

      Android O上有三处可以设置SUPL地址的地方,按优先级从低到高排列分别是:

      【优先级最低】/vendor/etc/gps.conf              

                  SUPL_HOST=supl.google.com
                  SUPL_PORT=7276

      【优先级较低】运营商资源文件 config.xml 可以覆盖gps.conf中的设置。

             frameworks/base/core/res/res/values/config.xml

                  <item>SUPL_HOST=supl.google.com</item>

                  <item>SUPL_PORT=7275</item>

      【优先级最高】/system/etc/gps_debug.conf可以覆盖gps.conf和config.xml配置。

       需要注意:gps_debug.conf这个文件并不默认存在,客户可以将/vendor/etc/gps.conf拷贝到/system/etc,然后重命名为gps_debug.conf。


    建议

      用户在测试SUPL时尽量在/system/etc/gps_debug.conf中设置SUPL地址。

     

  • 相关阅读:
    第一道题:无头苍蝇装头术(望不吝赐教)
    jdk8 list是否包含某值的一些应用
    Failed to close server connection after message failures; nested exception is javax.mail.MessagingException: Can't send command to SMTP host
    itext pdf加密
    TiDB-禁用遥测功能
    TiDB-配置调整
    DM-表空间
    DM-INI参数配置
    DM-DSC集群配置
    PG-并行查询
  • 原文地址:https://www.cnblogs.com/zhuwei0901-yanwu/p/9481891.html
Copyright © 2011-2022 走看看