• 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
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 :)
 
I just checked out my gps.config and notice I have quite a few lines that the OP hasn't listed. Was yours the same, Scotty?
 
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.
 
Ok, that's what mine looked like too.

When you mess with init.d files or your build.pro it saves the original as filenamehere.bak so I'm not surprised this is any different
 
Mine looked like Scotty's, so far so good, seems to lock more accurately a touch quicker.

I'll give it a few days but looks promising. Nice find!
 
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 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.
 
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
 
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 :confused:

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 :)
 
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.
 
Crap. Forgot to look at the permissions. Can one of you helpful folks tell me what they should be?
 

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
 
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?
 
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 :)
 
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.
 
Ok I am sold - changes to gps.conf DEFINITELY improved GPS accuracy and lock.

Anyone else have lines in their GPS conf for SUPL_HOST=supl.google.com and another for the port?

I am not sure what that is but it is not in the example on XDA and removing it from mine has not had any negative effects as far as I can see.
 
Hmm ok so these SUPL lines that are removed in the XDA example are supplemental location services. Wonder why they removed them seems like it would help.
 
Nice find Scotty. Hey, how do you find out your gps satellite fix data? I looked around the phone and couldnt figure it out.
 
Nice find Scotty. Hey, how do you find out your gps satellite fix data? I looked around the phone and couldnt figure it out.

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.
 
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.
 
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
 
Back
Top Bottom