Pages

Friday, September 14, 2012

How to make your GPS lock VERY FAST

After applying this trick you'll get a GPS Lock in 5 to 15 seconds... with, or without Internet connection.
What you'll need:A rooted phone
A file explorer (Root explorer)

Get you NTP server info:► Go HERE
► Click Active Servers, and find your region and Country.
► If you didn't find your country (like me), choose something close to your country.
► Write down all info about the server:

example: 0.europe.pool.ntp.org...

► Now that you wrote down those info, we need to let the phone know those info to get a faster fix.
► The GPS module gets the info from a file called "gps.conf" in /etc/ so we need to edit that...

Editing gps.conf File:► Delete everything in gps.conf file
  DO NOT REBOOT AFTER THE ABOVE STEP!!!
► Copy everything below, and paste it in your gps.conf file:

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
NTP_SERVER=COUNTRY.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

►Now change COUNTRY to the country you wrote down earlier, and REGION to the region you wrote down.
►Save the file, and double check that its permissions are rw-r--r--.
►Turn on your GPS.
►Reboot.

GPS test:► Now to get a quick fix, the GPS system uses something called AGPS, which helps the GPS locate you, it uses the AGPS to help you know your approximate location.
► Download GPS test HERE, and install it.
► Open it, go to menu-settings, and press clear AGPS.
► OPTIONAL: reboot
► After clearing AGPS, press Update GPS.
► You'll get a GPS lock in about 5 seconds :D

NOTE: Leave your GPS on and locked for about 10 minutes without moving, this will let android learn the new info you gave.

Credits to Xenova for his helpful GUIDE.

2 comments: