• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root gps fix for aosp

scotty85

Extreme Android User
Jul 25, 2010
11,131
7,412
happened across this:
[aosp-gps] easy *working* gps fix - xda-developers

i just edited my gps.conf folder as directed and rebooted. gps status is finding 7 satelites inside,and my location in maps seems to have improved... zooming in the pointer looks to be exactly where i am on my lot :eek:

navigation starts up right away. finding things in places happens right away also.

while i didnt seem to be having any issues before,it does seem to be improved,ill report back as i use it :)
 
no mine was the opposite :eek:

i only had a few lines.mine looked basically like this:

_____________________________________________________________
NTP_SERVER=us.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
C2K_HOST=default
C2K_PORT=0
_____________________________________________________________

i went to the post on the xda app,copied his text,copied it into notepad(cause im sure it will need redone after i flash an update or different AOSP rom) then navigated to the folder with root explorer,and copied it into place.

it automatically saved my original folder as gps.conf.bak so its easy to put back to the way it is if you dont think it helps.
 
Upvote 0
I don't get how you guys copied the text from the browser/app into notepad then into the file? There no option to paste for me.


You have to set the cursor under the stock text and then long press to paste.

The last 2 lines of the script didn't fit and put them all in 1 line. Not sure if that matters, but I set the cursor and hit enter to move them to their own line. Then deleted the stock text and saved.
 
Upvote 0
You have to set the cursor under the stock text and then long press to paste.

The last 2 lines of the script didn't fit and put them all in 1 line. Not sure if that matters, but I set the cursor and hit enter to move them to their own line. Then deleted the stock text and saved.

i've tried that and it doesn't work. I end up feeling like I'm going to push through my screen haha

I'll just manually write the name in if I decide to try this. A PITA, but whatever
 
Upvote 0
I don't get how you guys copied the text from the browser/app into notepad then into the file? There no option to paste for me.

i assume you got it copied?

i long pressed on the gps.conf file,opened in text editor. put the cursor at the end of what was there,then long pressed on the screen after that piont and had an option to paste. then i just had to delete the first part,that was allready there. i found that if i deleted the text that was there first,i dint have an option to paste either :thinking:

i think i may copy and paste the whole gps.conf into a folder on my sd,so next time i can just paste the whole folder and not have to screw with text editors :)
 
  • Like
Reactions: WormDoes
Upvote 0
Odd.

When I long press in Root Explorer I do not get an option to edit in a text editor (and yes, I toggled to R/W--tried both ways actually).

So I just made a new text file and overwrote the old one. I did not make a backup--that gps.conf file is in the install package as is so you can always copy it from the ROM zip. That also means it can easily be replaced before flashing the ROM, and should be no issue for a dev to cook it in.
 
Upvote 0

Thanks. I was digging through the install script, and all I could see was recursive permissions for the whole folder.

Crap, I am going to end up teaching myself this, lol. I was about to look up the set_perm_recursive command.

Edit: the script would have got me there. The etc folder is set to 0750 and the files are 0644 which is rw,r,r
 
Upvote 0
Does this just improve gps locking performance or does it fix that problem many of us have with picking up the wrong locale ie opposite side of the planet?

if by the first part of your statement you mean how quickly it finds a lock,it seems to help with both that and the location accuracy. i wasnt having an issue before,but the little trick seems to have improved my actual location quite a bit :)
 
Upvote 0
if by the first part of your statement you mean how quickly it finds a lock,it seems to help with both that and the location accuracy. i wasnt having an issue before,but the little trick seems to have improved my actual location quite a bit :)

Actually in that same thread I found a fix - a change to the /system/build.prop file that FINALLY fixed my annoying location problem where some apps thought I was in Switzerland instead of New Jersey lol.
 
Upvote 0
Nice find Scotty. Hey, how do you find out your gps satellite fix data? I looked around the phone and couldnt figure it out.
i use an app called gps status,sounds similar to what jon is describing below.plus lets you donwload a-gps assistance data.

There is an app in the market called GPS Test that is pretty good. Shows you how many satellites you are getting signal from, signal strength, and the accuracy in feet etc.
 
  • Like
Reactions: trapperjohn
Upvote 0
When i read the post i saw that it should look like this:

now make sure it is EXACTLY like this:
----------------------------------------------

NTP_SERVER=us.pool.ntp.org
NTP_SERVER=north-america.pool.ntp.org
NTP_SERVER=0.north-america.pool.ntp.org
NTP_SERVER=1.north-america.pool.ntp.org
NTP_SERVER=2.north-america.pool.ntp.org
NTP_SERVER=3.north-america.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
C2K_HOST=default
C2K_PORT=0

-----------------------------------------------

on my phone i do not have the 5 that end in org and i also have 2 extra ones which are SUPL_HOST=7276 and SUPL_HOST=supl.google.com

should i just change everything i have to what is shown above? My phone on AOSP roms always thinks im in other countries i think this may be why
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones