[Trick] Speed Up Satelite Fix for GPS on Android

Search This thread

Typhoeus85

New member
Nov 9, 2011
2
1
My GPS wasn't bad at all before, sometimes it just took a little while to get a position. After I did this little trick I lock almost instantly and on more satellites I think.

I live in Iceland but I used the UK settings, they seemed to work for me. From my window I'm getting Fix/Sats. 8/8 in a very short time. Outside it took me about 15 seconds to get 10/10.

Any pointers about using different settings, maybe try using some other country codes as well as the UK ones?

And, I'm a little noob, but in the GPS Status app, the stats I'm looking at is Fix/Stats. right? What other numbers should I be looking at (they're so many!)? hehe...

Anyway, thanks a lot for this advice, it seems to have made my GPS on me DHD even better!
 
  • Like
Reactions: Xenova

Canongate

New member
Oct 15, 2010
2
1
I accidently click on the thanks :)
Ok. There is no harm to put the config file into etc folder. Try use root explorer, it is as convenience as window drag n drop. But, According to defy user, the script didnt help to speedup the gps.

If my script doesnt help. you can tru to search the thread specifically about defy to see whether they have solution or not.



Sent from my HTC Desire HD using Tapatalk
Hello Xenova

Will try to familiarize the RE and will look up the defy forum.
 

nickza

Senior Member
Feb 1, 2009
128
10
Johannesburg
www.sizapro.co.za
I am in South Africa and have the following, but I cant seem to get a signal:

Code:
NTP_SERVER=za.pool.ntp.org
NTP_SERVER=3.za.pool.ntp.org
NTP_SERVER=0.africa.pool.ntp.org
NTP_SERVER=3.africa.pool.ntp.org
NTP_SERVER=2.africa.pool.ntp.org
NTP_SERVER=1.pool.ntp.org
NTP_SERVER=2.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

Help
 

finneginsfast

Senior Member
Mar 6, 2011
944
181
BC
Well, I tried this and seems to be taking forever. Perhaps I'm one of the people that takes a few days for it to finally kick in, sure hope so...

After trying the first time I reverted back to the original file and it still seemed to take a long time. I read the post again and am giving this tweak a few more days...

Wish me luck :)
 

Xenova

Senior Member
May 4, 2011
518
1,362
Well, I tried this and seems to be taking forever. Perhaps I'm one of the people that takes a few days for it to finally kick in, sure hope so...

After trying the first time I reverted back to the original file and it still seemed to take a long time. I read the post again and am giving this tweak a few more days...

Wish me luck :)

Yes, please use gps status (app) to download the a-gps data in these few days. Some device learn the agps data fast, but some take time. So be patient. Connect to mobile network while using GPS certainly will help to speed up the locking speed too.

Good Luck.
 

Xenova

Senior Member
May 4, 2011
518
1,362
I am in South Africa and have the following, but I cant seem to get a signal:

Help

If there is no signal at all, you might have to consider other methods to fix your gps problem, such as wiping efs partition, apply patch for DHD, or even you might have hardware issue.

On the FAQ in Mike86's post there are many other methods to fix GPS issues. Good try~:)
 

07blackwater

Senior Member
Jul 16, 2011
365
65
I am in South Africa and have the following, but I cant seem to get a signal:

Code:
NTP_SERVER=za.pool.ntp.org
NTP_SERVER=3.za.pool.ntp.org
NTP_SERVER=0.africa.pool.ntp.org
NTP_SERVER=3.africa.pool.ntp.org
NTP_SERVER=2.africa.pool.ntp.org
NTP_SERVER=1.pool.ntp.org
NTP_SERVER=2.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

Help

Try this and tell me if it works:

NTP_SERVER=0.africa.pool.ntp.org
NTP_SERVER=1.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


---------- Post added at 05:09 AM ---------- Previous post was at 05:04 AM ----------

As well, install GPS test from the market. Keep data and GPS on then reboot outdoors. Start the app then let it acquire the satellites. After all this it should acquire pretty fast.
 
  • Like
Reactions: Xenova

finneginsfast

Senior Member
Mar 6, 2011
944
181
BC
Yes, please use gps status (app) to download the a-gps data in these few days. Some device learn the agps data fast, but some take time. So be patient. Connect to mobile network while using GPS certainly will help to speed up the locking speed too.

Good Luck.
Well I hate to be the bearer of bad news and what sounds like the only one this never worked for...but it hasn't really changed a thing at all for me. I've been using my navigation to and from work everyday, wifi and downloading agps data several times a day but no luck. It's no better nor no worse it seems...can you see anything wrong with my config file or is there anything else I might try?

Thanks
 

Attachments

  • gps.conf.txt
    1.5 KB · Views: 69
Last edited:

Xenova

Senior Member
May 4, 2011
518
1,362
Well I hate to be the bearer of bad news and what sounds like the only one this never worked for...but it hasn't really changed a thing at all for me. I've been using my navigation to and from work everyday, wifi and downloading agps data several times a day but no luck. It's no better nor no worse it seems...can you see anything wrong with my config file or is there anything else I might try?

Thanks

Firstly allow me to ask a noob question:
I found the file uploaded by you was a .txt file. Make sure you remove the txt extension when you put into your etc folder.

The file seem to be corrupted and I can't read it

Sent from my HTC Desire HD using Tapatalk
 

finneginsfast

Senior Member
Mar 6, 2011
944
181
BC
Firstly allow me to ask a noob question:
I found the file uploaded by you was a .txt file. Make sure you remove the txt extension when you put into your etc folder.

The file seem to be corrupted and I can't read it

Sent from my HTC Desire HD using Tapatalk
The .txt extension had been removed before I put it into the etc folder, this was just a copy from my desktop dropbox folder for easy access. As far as the file being corrupted...I don't know what to think as I can view it perfectly fine on my phone as well as from clicking on it from the uploaded link above. Maybe if anyone else can confirm for us that would be very much appreciated.
 

ebuechler3

Senior Member
Dec 11, 2008
391
76
Des moines iowa
Perrrrfect

this one works perfect for my epic 4g touch!!! i actually used my NOTEPAD pressed FILE, then i selected file/save as/FILE NAME: gps.conf
then i changed the "Save as Type" from Text Documents (*.txt) to ALL FILES.... then i moved the gps.conf to my phone. in Root explorer i checked/edited to make sure my new gps.conf wasnt "gps.conf.txt"..IT HAS TO BE gps.cofig to work. Next,I FOLLOWED THE OTHER STEPS and its a pefect fix... my phone locks locations in a blink of an eye!!!! thanks...

P.S. Im in the u.s.
 

Attachments

  • gps.conf.txt
    1.4 KB · Views: 73
Last edited:
  • Like
Reactions: Xenova

wind0zer

Senior Member
Feb 15, 2010
383
62
I'm using cm7 nightly on N1. It's always fast when I have GPRS on, or else it's pathetic. I'm in asia and btw (sometimes) strangely my gps locks into somewhere in russia and soon comes back to real position. i'm not sure why & doesn't bother me.
I got ntp server details from pool.ntp.org: NTP Servers in Global, pool.ntp.org. Going to restart and see.
 

wind0zer

Senior Member
Feb 15, 2010
383
62
Same old; after restart, takes a minute or so to get a fix. But after that while navigating using iGO or geocaching software it's pretty good even through inside the vehicle - near the windshield or window. I have gprs on always..which I *think* helps my gps.
 
  • Like
Reactions: Xenova

prboy1969

Senior Member
May 7, 2009
10,518
7,378
Michigan
One of the best mods I've done to my phone. Easily locks in under 20 seconds most of the time. Every once in a while it'll take 30 seconds. But when it takes 30 seconds or so I'm usually inside. So it's still uber quick.
 

tommo123

Senior Member
May 28, 2010
1,260
31
Liverpool
again, thanks to OP.

i thought i had probs with this fix, but i copied the gps.conf from my dropbox on a new rom install but it didn't work as well - turns out i forgot to update the permissions. :eek: now fast again :)
 
  • Like
Reactions: Xenova

Top Liked Posts

  • There are no posts matching your filters.
  • 525
    Guys,

    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. Searching for NTP server information
    • 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)
    • Copy the codes in grey box (in first post) 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.
    • Your new gps.conf should look as below:


    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 <-This is changed from the top line to here. It may works better if we put it here.

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

    4. Reboot
    • Go setting, turn on your "use GPS satelites" and "Integrate Google Navigation"
    • 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



    [Update: 17 August 2012]
    Sometime even my phone won't work consistently. It won't able to get fix within 30seconds everytime. And i found this tool can be very very help to make sure my agps 95% up to date and thus has the best performance.

    The tool is called "Leo AGPS Injector" developed by Tytung. Please click thanks or consider donation on the following post to thanks for the developer - Tytung. I have no credit at all for this tool. I just share it.
    Here is the link http://xdaforums.com/showpost.php?p=16384028&postcount=1907

    Step to use the tool:
    1. Install and place the widget on your home screen
    2. Ensure your GPS setting is on
    3. Make sure you're conencted to Internet / Mobile data
    4. Press on the widget to inject AGPS data
    5. Now you're good to go. The internet can be turn-off now. and your gps should work well

    Note: I noticed once i connect to a big internet network (such as my university internet network). My GPS won't work anymore.
    This is what i do to make it back to normal:
    1. Connect to Mobile data (3G) and use "Leo GPS injector"
    2. if it is still not working, i switch to airplane mode and back to normal mode again, then repeat step 1
    And i notice, it works better if you use mobile internet, rather than fixed source internet at home. This is just what i feel, not necessary true.




    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
    7
    FasterGPS

    hi all,

    the trick is automated here, without all the fuss
    https://play.google.com/store/apps/details?id=org.fastergps&hl=en

    just for sharing ;)
    6
    Thank you very much for this post. :D

    Fortunately I've never had a GPS issue on my DHD, but still I would love to "fully" understand your solution ... ;)
    If it is possible, can you please explain what exactly these settings do, or can you post some links where I can find some extra info regarding these settings and their "ïmpact" for my DHD ..

    (Always curious, you know ! :D:D)

    # 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


    and, what exactly is meant by

    4. Reboot
    Go setting, turn on your "use GPS satelites" and "Integrate Google Navigation" rw-r--r--
    Restart the device (normal restart)[/B]

    Do you want me to put permissions on a settings selection in the "Settings - Location" options ?

    Sorry if my question is unclear, but I'm a bit puzzled by that part of your solution post.

    AGAIN !! Thanks for the nice post and great effort .. Much appreciated !! :D
    5
    @Xenova

    For these reasons: https://wwws.nightwatchcybersecurity.com/2016/12/05/cve-2016-5341/

    I think you should update OP using https instead of http:
    XTRA_SERVER_1=https://xtra1.gpsonextra.net/xtra.bin
    XTRA_SERVER_2=https://xtra2.gpsonextra.net/xtra.bin
    XTRA_SERVER_3=https://xtra3.gpsonextra.net/xtra.bin
    5
    If I missed the answer, I apologize, but I noticed a lot of people wondering how / why this works.(Yes, I know it's an old thread, but figure people may still want an answer.)

    The biggest factor is that this gps.conf enables Assisted GPS (A-GPS). AGPS is a technique which uses the cell tower you're connected to to approximate your location, and using that approximate location and GMT (Grenwich Mean Time) to identify the satellites your GPS chip looks for.

    Normally, on a cold start, a GPS simply starts scanning the sky for all GPS satellites. There are currently, I believe, 31 functioning satellites in the US system. Since the GPS has no idea which of those 31 are visible to your receiver, it can take a long time to find and lock on to the minimum # of satellites to enable a location fix (3 for a 2 dimensional fix, 4 to get altitude).

    But the GPS satellites are in predictable orbits. If you know the time, and your approximate location, you can know which satellites are going to be visible in the sky above you. That's what A-GPS does. Your NTP time server tells it the time, the cell tower tells it your location. The GPS can then easily calculate which of those 31 satellites are overhead, and lock onto those very quickly while ignoring all the rest.

    There is a potential downside. If you're not connected to a cell tower, A-GPS doesn't know where you are. Some phones won't provide GPS lock at all in that case. So you might want to keep the original gps.conf on your phone, renamed as gps.conf.back, so that if you find yourself in an area without cell service, and GPS isn't working, you can revert back to the original file.