[aosp-gps] easy *working* gps fix

Search This thread

voxigenboy

Senior Member
Jul 2, 2010
1,610
208
San Diego
[EDIT] It has been verified that this "fix" takes care of the Google Maps application. It will pick up your location just fine as well as allow you to use the 'Directions' portion of the application. However, if you are trying to use the Navigation application, there is a good chance it will not work. Navigation seems to be an issue on practically all AOSP roms.


=============================================

you will need to open your " GPS.CONF " file which is located in:

/etc/gps.conf

use 'Root Explorer' and select " Mount R/W " (to allow you to edit the file
long press on it and select " Open In Text Editor "


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

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


when you are done, simply save it and that's it (may have to reboot).

now GPS works without having to do any weird GPS FIXES or anything.

==========
==========

[EDIT]: I received an email suggesting that people who are experiencing issues with this fix may have DNS problems. If that is the case, then try this fix instead:
------------------------------------------------

NTP_SERVER=65.49.70.245
NTP_SERVER=68.67.69.235
NTP_SERVER=0.68.67.69.235
NTP_SERVER=1.68.67.69.235
NTP_SERVER=2.68.67.69.235
NTP_SERVER=3.68.67.69.235
XTRA_SERVER_1=http://216.187.118.44/xtra.bin
XTRA_SERVER_2=http://69.90.74.97/xtra.bin
XTRA_SERVER_3=http://216.187.118.44/xtra.bin
C2K_HOST=default
C2K_PORT=0

------------------------------------------------
 
Last edited:

Jewremy

Senior Member
Jul 16, 2007
242
65
Boston
For network location weirdness, try opening build.prop and editing the line that says "persist.radio.agps.mode=[either 8 or 6]" to persist.radio.agps.mode=2 - that's the setting from sense roms and it seems to have fixed it for me.
 

pmdied

Senior Member
Mar 26, 2010
801
43
Can this be done through terminal emulator?

Sent from my SHIFTAO5P using XDA App
Nvm
 
Last edited:

pmdied

Senior Member
Mar 26, 2010
801
43
So far, this location error fix seems to have worked.

Sent from my SHIFTAO5P using XDA App
 

pmdied

Senior Member
Mar 26, 2010
801
43
I'll buy someone a ham sandwich to permanently solve this and incorporate it into a build.

Sent from my SHIFTAO5P using XDA App
 

scotty1223

Inactive Recognized Contributor
Jan 3, 2011
2,813
3,056
Can this be done through terminal emulator?

Sent from my SHIFTAO5P using XDA App
Nvm

not really. all you need to do is open root explorer,navigate to that folder,open in a text editor and then make it look the same. you could carefully type all that on your phones keyboard,but i personally went to this thread on the xda app,and copied it. went to the folder,deleted wat was there,and pasted it. change back to r/o and rebooted.
 

MyComputerDoctor

Senior Member
you will need to open your " GPS.CONF " file which is located in:

/etc/gps.conf

use 'Root Explorer' and select " Mount R/W " (to allow you to edit the file
long press on it and select " Open In Text Editor "

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

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

when you are done, simply save it and that's it (may have to reboot).

now GPS works without having to do any weird GPS FIXES or anything.

Nice work. For someone who utilizies GPS as much as I do, this is a big help. Now I feel comfortable running the AOSP ROM's again. Thanks.
 

brizey

Senior Member
Aug 6, 2011
2,451
620
Crap, I blew the damn file away and forgot to look at the permissions. Can anybody out there tell me what they are?
 

brizey

Senior Member
Aug 6, 2011
2,451
620
Does anyone know what the agps_rm file is for? It is blank in every ROM I have looked at, and google is failing me.
 

DaRkL3AD3R

Senior Member
Dec 5, 2010
784
240
I was praying these changes would fix my Cyanogenmod GPS/Network Locations problems, but it didn't. The only way I've found to correct the GPS bug in AOSP is to load a Sense rom trick.

There isnt even a way to fix Cell based Network Location with geolocation apps that I know of. Thanks for trying though guys :(
 

voxigenboy

Senior Member
Jul 2, 2010
1,610
208
San Diego
I was praying these changes would fix my Cyanogenmod GPS/Network Locations problems, but it didn't. The only way I've found to correct the GPS bug in AOSP is to load a Sense rom trick.

There isnt even a way to fix Cell based Network Location with geolocation apps that I know of. Thanks for trying though guys :(


that is bizarre. i tested this on 3 different AOSP roms and it worked:

A05PTH3ORY_V1.4X_AOSP_UPDATE_SIGNED_F.zip
SHIFTAO5P_V1.2X_ECLIPSE_UPDATE_SIGNED.zip

update-cm-7.1.0-RC1.7-Thunderbolt-MR-2-signed.zip


as you can see, it includes the latest CM7. that and the GPS.CONF file is basically the missing lines from a Sense rom(Synergy) imported into the same file on CM7.
 

Night_Watcher

Senior Member
Jul 12, 2011
188
39
62
Wellington, Ohio
Totally agree... I am using the test aosp from DT.. Was having a number of issues with gps... Made both changes listed on this thread... Had to reboot and force an update on weather bug... And been accurate ever since... Thanks for your time researching and sharing...

Sent from my SHIFTAO5P using Tapatalk
 

onestoploser

Senior Member
Jul 6, 2008
671
508
Xiaomi Mi 10T Lite
not really. all you need to do is open root explorer,navigate to that folder,open in a text editor and then make it look the same. you could carefully type all that on your phones keyboard,but i personally went to this thread on the xda app,and copied it. went to the folder,deleted wat was there,and pasted it. change back to r/o and rebooted.

I copied the OP with Tapatalk, opened the file in Root Explorer text editor, pasted and just deleted the stuff that I didn't need. Worked like a charm and took all of a minute. Lol

Sent from my Liquid Thunderbread HTC Thunderbolt
 

tcallahan

Senior Member
Sep 9, 2010
57
0
okay so I was hoping this would work cause I run cm7 and I love it to much to go back to anything else so i've been having to sacrifice using navy. I was excited to see this BUT after adding this to the file my gps shows my location and accurately as well but it first thinks im somewhere in the UK and my navigation just says it cant find directions for the route.. it gets stuck thinking im in the uk.

any ideas why this is happening??

Question: Was i supposed to add this to what is already in the file or delete everything else out and put only these lines in there?

Also.. in CM7 is it normal to never see the gps indicator in the status bar?

Thanks guys!

Really appreciate any feedback.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    [EDIT] It has been verified that this "fix" takes care of the Google Maps application. It will pick up your location just fine as well as allow you to use the 'Directions' portion of the application. However, if you are trying to use the Navigation application, there is a good chance it will not work. Navigation seems to be an issue on practically all AOSP roms.


    =============================================

    you will need to open your " GPS.CONF " file which is located in:

    /etc/gps.conf

    use 'Root Explorer' and select " Mount R/W " (to allow you to edit the file
    long press on it and select " Open In Text Editor "


    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

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


    when you are done, simply save it and that's it (may have to reboot).

    now GPS works without having to do any weird GPS FIXES or anything.

    ==========
    ==========

    [EDIT]: I received an email suggesting that people who are experiencing issues with this fix may have DNS problems. If that is the case, then try this fix instead:
    ------------------------------------------------

    NTP_SERVER=65.49.70.245
    NTP_SERVER=68.67.69.235
    NTP_SERVER=0.68.67.69.235
    NTP_SERVER=1.68.67.69.235
    NTP_SERVER=2.68.67.69.235
    NTP_SERVER=3.68.67.69.235
    XTRA_SERVER_1=http://216.187.118.44/xtra.bin
    XTRA_SERVER_2=http://69.90.74.97/xtra.bin
    XTRA_SERVER_3=http://216.187.118.44/xtra.bin
    C2K_HOST=default
    C2K_PORT=0

    ------------------------------------------------
    2
    Open up RootExplorer>system > build prop. Be sure to change r/o to r/w in top right corner prior to attempt editing.

    Sent from my 1.6GHz processor TB w/XDA App!

    i looked in system/build.prop for persist.radio.agps.mode=x and i couldnt find that line at all :confused:

    found alot of persist.other stuff but not persist.radio.agps

    did i miss it? or is it just not always there?
    1
    Crap, I blew the damn file away and forgot to look at the permissions. Can anybody out there tell me what they are?

    rw-r--r--

    on mine, if that helps
    1
    i looked in system/build.prop for persist.radio.agps.mode=x and i couldnt find that line at all :confused:

    found alot of persist.other stuff but not persist.radio.agps

    did i miss it? or is it just not always there?
    In CM7 based, it's under the "+from QCT Fusion" section
    1
    the gps.conf and build.prop fix the gps when you are using the Maps program. seems to work just fine even when you do the 'directions' bit from it.

    for some reason though, the Navigation program still has an issue. i've tried practically every aosp rom out there and Maps/Directions works fine no problem, but every single time.. wether i apply this "fix" or not, navigation still craps out.

    i've not only used this maps fix, but tried those "gps fix" .zip's from DT's threads and installing a sense rom first, getting a fix, then installing an aosp rom.. yet still, Maps is fine, Navigation is not.

    I had to do the Sense trick to get my GPS to work with CM7 initially and my Navigation works perfectly. The only issue I have is the network location issue that is present in AOSP ROMs for our device.