使用API​​更改初始GPS配置?

时间:2012-07-14 09:02:24

标签: android gps supl

莫因-莫因,

我希望更改(在ICS中)/system/etc/gps.conf文件中的一些值,以便在德国北部获得更好的值,以加快locationManager / locationProvider的启动。

是否有可能(在没有设备生根的情况下)使用android API programmaticaly读取/设置这些值,甚至暂时用于我的应用程序?

伊迪丝: f.e。来自etc / gps / gpsconfig.xml

- <job id="Assisted_Cold_Starts">
  - <task repeat="1000000">
    <startup ignore_rom_alm="true" ignore_ram_alm="true" /> 
  - <asst>
    - <!-- pos Lat="-30.0" Lon="-50.0" Alt="50" /--> 
      <pos Lat="33.7691" Lon="-84.4062" Alt="300" /> 
    - <!-- pos Lat="37.0" Lon="-122.0" Alt="50" /--> 
    - <!-- pos Lat="37.26533652" Lon="-121.94128855" Alt="51.4" /--> 
    </asst>
    <req_pos_single acc="50" timeout="30" /> 
    </task>
  </job>

来自/etc/gps.conf:

NTP_SERVER=tw.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=http://207.114.133.116
SUPL_PORT=59910

想要将此更改为

NTP_SERVER=de.pool.npt.org
SUPL_HOST=supl.google.com
SUPL_PORT=7276

0 个答案:

没有答案