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

Root GPS not working foreign ROM

You can check the gps.conf file in etc/gps.conf, look for NTP_SERVER=.........
See what it contains, since i am in India, mine has NTP_SERVER=asia.pool.ntp.org
for europe its NTP_SERVER=europe.pool.ntp.org
for america its NTP_SERVER=north-america.pool.ntp.org

As per my understanding i think this contains the data for the available gps sattelites for that region (just a guess)

Some devs have even developed a multiple source pool so that it works for most roms, but that has been comparatively less success in that, gps fix takes too long and are quite inaccurate.

Use the lagloose's gps patch if you have a gps problem in CM7
 
the NTP line isnt even there it just says SUPL=supl.google.com
SUPL_port=7276

so I will add the ntp line as a new one.
 
still doesnt work, the gps logo just keeps flashing. google maps says current location unavailable, and this is a stock rom not on CM at the moment, russia based 2.3.6.
 
Don't add a new line, specially when you don't know what it does.
Try this, extract the gps.conf file to your pc, make a copy as bakup.
Now erase all the lines inside it and replace theme with these NTP_SERVER=europe.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
SUPL_HOST=supl.google.com
SUPL_PORT=7276

Now push this back into your system, and set the permissions as rw-r-r-

Use some other app to test your gps, like GPS Test for example.
Give it a good few minutes to get a lock. Make sure you are under open sky.
 
well you just said dont add a new line but then told me to add it again anyway.

and I know what a NTP server is.
 
well you just said dont add a new line but then told me to add it again anyway
I said that to stop you from adding random lines in a file :p

This is the content of a gps.conf file that i have for a europe based rom, i thought it might work for you.

and I know what a NTP server is.
Good for you, i have no idea what ntp server is :p
 
But I wasnt adding random lines ;) I was adding the line you gave me, but then you gave me the same line again :p

A NTP server is a time sync server so is used to sync time on devices.

Back to the GPS.

I restored my oldest CWM backup to my O2 rom to try and get to the bottom of this, sat hee for 20 minutes without a single sattelite showing in GPS TEST.

Then read on another site one is supposed to be outside to get a lock and someone also had to enable 3G, so I turned on 3G and moved near a window, after about 3 minutes more sattelites appeared and I got a lock, it seems it wont lock until at least 5 sattelites are visible. After this google maps etc. works properly. If I then turn of GPS and turn it on again it locks much quicker the 2nd time. So its good news its not a hardware issue on the phone, what I havent tried yet is if this trick will work when I go back to foreign firmware.
 
while i was on stock i never had a problem with the gps, i got pretty fast locks and that too indoors, but since i shifted to CM initially it was hopeless, never get a lock but since i flashed the lagloose's gps fix its working well but still not as good as the stock.

i never tried with switching on 3g though.

Do you know any good app for worldwide navigation through gps?
 
no idea sorry.

Interesting I tested again on CM.

CM RC3 came with no gpsd binary haha, god knows how that was missed, installed the gpsd from lagloose fix but didnt overwrite any of the libs (following someones advice on XDA) and installed another gps.conf I got hold off.

Result on CM is I get very fast locks, under 5 seconds. So GPS is fine now, still using the baseband for my country as well instead of that russian one.

Of course its problem after problem and on CM I doscovered I have no compass function amongst other things now.
 
GPS needs atleast 5 L2 sats to calc a fix.

Theoretically you need a minimum of 3 sattelites to obtain a fix, if you can get more than 3 you will have a much better accuracy.

Chrcol, kindly tell which files you added and which ones did you replaced.
 
sure.

What I have noticed with this gps.conf it locks on straight away with only 1 sat, thats why much faster. I get GPS on with 3 now instead of 5 as well.

This came from iandol on XDA so not my credit.

Code:
NTP_SERVER=uk.pool.ntp.org
NTP_SERVER=0.uk.pool.ntp.org 
NTP_SERVER=1.uk.pool.ntp.org 
NTP_SERVER=2.uk.pool.ntp.org
NTP_SERVER=3.uk.pool.ntp.org 
ENABLE_XTRA=TRUE
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
SUPL_HOST=supl.google.com
SUPL_PORT=7276
DEFAULT_AGPS_ENABLE=TRUE
#START_MODE=WARM

Ok Basically I opened up the GPS___Sensors_Patch_Updated_by_itasoulas.zip file on my PC. Then copied the file system/bin/gpsd to /system/bin/gpsd on the phone. Permissions correctly set to rwxrx-rx- and then reboot the phone. This was on the 7.2 RC3 build, when I used vo-1's 14 may build I didnt need to do this.

It seems tho the custom kernel's which give smartassv2 BLN etc. break the compass function so getting fully working GPS is still troublesome.
 
ok I tried a different gps.cooper.so lib.

The one in vo-1's rom is 59k quite large, the one I got from a dir on my sdcard which I cant remember is sourced from, (probably my stock rom) is only 17k much smaller so I know from that its a different variant, although dont know if its stock CM or not.

Copied it to /system/lib/hw and rebooted.

Now I had initial lock still take quite a while 2-3 minutes. But the difference now is GPS relock eg. by exiting the app or turning it off deliberatly, then when its on again its very fast as if it now remembers the sattelite info for a quick relock. Also accuracy is 18 feet instead of about 900 feet. Currently indoors I have 10 sattelites with 7 in use, although the in use is changing a lot.
 

Attachments

Back
Top Bottom