[Desire HD Android Development] Xenova:
[Trick] SpeedUp Satelite Fix for GPS on Android

ARHD and DHD mates,

Source: http://xdaforums.com/showthread.php?p=17081413#post17081413

I decided to write this because a lot of us here still facing GPS issue on their device. I almost give up on my HTC Desire HD because of the GPS problem. After I find this trick, now I realized that HTC devices have one of the most brilliant GPS hardware. It always get a location lock within 5 - 15 seconds.

This trick not only to speedup the satelite fixing. Some also found that it increase the reception (strong signal even during cloudy, light raining, and inside building's window). I am one of this case :D.

Here is the tricks. It is tested on HTC desire HD, SGSII, and speculated to work on most Android device (Please note that it is in sequential order):

Requirements:

Rooted Device

File Manager: e.g. Root Explorer

1. Faster Fix

Download "faster fix" from the market.

Select the server for your region and tap "GO"

2. Searching for NTP server information

Go to http://www.pool.ntp.org/en/

At the right side of webpage, there is "Active Servers". Go in and look for the setting of your 1)region and 2)country

For example, one's region is Europe then you write down the NTP server for that: 0.europe.pool.ntp.org; 1.europe.pool.ntp.org; 2.europe.pool.ntp.org; 3.europe.pool.ntp.org

Then the servers for your country from the list down there and click the link(Example: Switzerland — ch.pool.ntp.org; 0.ch.pool.ntp.org; 1.ch.pool.ntp.org; 2.ch.pool.ntp.org; 3.ch.pool.ntp.org

The "Italic" words are the information you need to jot down for later use

3. Modify the gps.conf file (Most Crucial Stage)

Use file manager to open: /etc/gps.conf

Use tools like RootExplorer to edit the file, delete all the content in the file

Insert the following codes to the file (for your convenience, i have prepare it in the txt format for you to just copy and paste)

Modified gps.conf file https://skydrive.live.com/?cid=7ff9e3490b757d33&sc=documents&uc=1&id=7FF9E3490B757D33%21134#

#Change the COUNTRY and REGION in following lines with the info you got from the website just now. Keep other values unchange unless you know what it is.

NTP_SERVER=COUNTRY.pool.ntp.org

NTP_SERVER=0.COUNTRY.pool.ntp.org

NTP_SERVER=1.COUNTRY.pool.ntp.org

NTP_SERVER=2.COUNTRY.pool.ntp.org

NTP_SERVER=3.COUNTRY.pool.ntp.org

NTP_SERVER=0.REGION.pool.ntp.org

NTP_SERVER=1.REGION.pool.ntp.org

NTP_SERVER=2.REGION.pool.ntp.org

NTP_SERVER=3.REGION.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

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info

# 4 - Debug, 5 - Verbose

DEBUG_LEVEL =0

# Intermediate position report, 1=enable, 0=disable

INTERMEDIATE_POS=0

# Accuracy threshold for intermediate positions

# less accurate positions are ignored, 0 for passing all positions

ACCURACY_THRES=0

# Report supl ref location as position, 1=enable, 0=disable

REPORT_POSITION_USE_SUPL_REFLOC=1

# Wiper (wifi positioning), 1=enable, 0=disable

ENABLE_WIPER=1

################################

##### AGPS server settings #####

################################

# FOR SUPL SUPPORT, set the following

SUPL_HOST=supl.google.com

SUPL_PORT=7276

SUPL_NO_SECURE_PORT=3425

SUPL_SECURE_PORT=7275

SUPL_TLS_HOST=FQDN

SUPL_TLS_CERT=/etc/SuplRootCert

# FOR C2K PDE SUPPORT, set the following

C2K_HOST=c2k.pde.com

C2K_PORT=1234

CURRENT_CARRIER=common

DEFAULT_AGPS_ENABLE=TRUE

DEFAULT_SSL_ENABLE=FALSE

# TRUE for "User Plane", FALSE for "Control Plane"

DEFAULT_USER_PLANE=TRUE​

Insert these codes into the /etc/gps.conf file and save

Make sure the permission of the file is rw-r--r--

4. Reboot

Go setting, turn on your "use GPS satelites" and "Integrate Google Navigation" rw-r--r--

Restart the device (normal restart)[/B]

5. Use GPS status and Toolbox

Tool available in market for free, please donate so developers are encouraged for better release in the future[/B]

Open app> tools> manage A-GPS state>Reset

Open app> tools> manage A-GPS state>Download

Optional restart device (not compulsory)

Use GPS status to start fixing satelites

Your satelite fixing speed should VERY FAST now

After get a successul GPS Lock, open your GPS applications and use like normal (e.g. Copilot, Sygic, or TomTom)

Extra Suggestion: Please make sure your GPS is enabled before your device is turnoff or restart. It won't actually use GPS unless you open map-related app or google.com.

CAUTION!!!: DO NOT use fasterfix after this. It will overwrite all the content in gps.conf

​

Credits: Thanks for

JMax

and

Vault Killer

for the gps.conf file

WARNING: Please do backup before messing with your device

Do it at your own risk, I cannot be held resposible for any damage or dysfunctional of your device

Please post your feedback to let others know it works on your device model

Please click "Thanks" if you feel this post is useful for you​