1. Are you ready for the Galaxy S20? Here is everything we know so far!

gps fix for aosp

Discussion in 'Android Devices' started by scotty85, Sep 3, 2011.

  1. scotty85

    scotty85 Extreme Android User
    Thread Starter

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


    Dentul, SecondShot, Jon Niola and 4 others like this.

    1. Download the Forums for Android™ app!


      Download

       
  2. WormDoes

    WormDoes Android Expert

    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?
     
  3. scotty85

    scotty85 Extreme Android User
    Thread Starter

    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.
     
  4. WormDoes

    WormDoes Android Expert

    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
     
  5. Ibrick

    Ibrick Android Expert

    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!
     
  6. WormDoes

    WormDoes Android Expert

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

    Ibrick Android Expert


    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.
     
  8. WormDoes

    WormDoes Android Expert

    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
     
  9. Blacklight82

    Blacklight82 Well-Known Member

    Thanks for the link. Able to get a lock right away but I'll give it a test tomorrow.
     
  10. scotty85

    scotty85 Extreme Android User
    Thread Starter

    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 :)
     
    WormDoes likes this.
  11. WormDoes

    WormDoes Android Expert

    That's a great idea.
     
  12. Thats

    Thats That guy is This

    So far so good! Thanks!
     
  13. brizey

    brizey Android Enthusiast

    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.
     
  14. brizey

    brizey Android Enthusiast

    Crap. Forgot to look at the permissions. Can one of you helpful folks tell me what they should be?
     
  15. WormDoes

    WormDoes Android Expert

    rw
    r
    r
     
  16. brizey

    brizey Android Enthusiast

    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
     
  17. Jon Niola

    Jon Niola Member

    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?
     
  18. scotty85

    scotty85 Extreme Android User
    Thread Starter

    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 :)
     
  19. Jon Niola

    Jon Niola Member

    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.
     
  20. Jon Niola

    Jon Niola Member

    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.
     
  21. Jon Niola

    Jon Niola Member

    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.
     
  22. SecondShot

    SecondShot Android Enthusiast

    Nice find Scotty. Hey, how do you find out your gps satellite fix data? I looked around the phone and couldnt figure it out.
     
  23. Jon Niola

    Jon Niola Member

    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.
     
  24. scotty85

    scotty85 Extreme Android User
    Thread Starter

    i use an app called gps status,sounds similar to what jon is describing below.plus lets you donwload a-gps assistance data.

     
    trapperjohn likes this.
  25. shaddyyy

    shaddyyy Well-Known Member

    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
     

HTC Thunderbolt Forum

The HTC Thunderbolt release date was March 2011. Features and Specs include a 4.3" inch screen, 8MP camera, 768GB RAM, Snapdragon S2 processor, and 1400mAh battery.

March 2011
Release Date
0
Reviews
Loading...

Share This Page

Loading...