[XPERIA X10 Android Development] gnarg:
Bad signal or hard to get lock on GPS..?

TRY THIS...

Tested on HTC desire HD, SGSII, X10 and probably work on most Android devices

Requirements:

Rooted Device

File Manager: e.g. Root Explorer

1. 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

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

Copy the codes in grey box to a notepad, then change the extension name from .txt to .conf then copy to your phone

Use file manager to copy to this location: /etc/gps.conf and replace the original gps.conf

Open and Edit the gps.conf using rootexplorer or others file managers

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. Example of REGION such as NorthAmerica, Asia, Africa, Europe.

Example of COUNTRY such as Netherlands — nl.pool.ntp.org, or Germany — de.pool.ntp.org e.t.c.

Copy code below:

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

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

3. Reboot

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

Restart the device (normal restart)

4. Use GPS status and Toolbox (download from market https://market.android.com/details?...wsMSwxLDEsImNvbS5lY2xpcHNpbS5ncHNzdGF0dXMyIl0.)

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

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