GPS Issues and the gps.conf file - HTC Inspire 4G

In the mysteries that lie within the GPS woes on the Inspire; I have been having GPS issues for sometime now. I have used three different ROMs and a handful of radios, all with GPS issues. I feel there is an issue within the Inspire itself that I hope HTC fixes soon, but with no real solution, I don't have any answers; just something to try. In my research on XDA and the WWW, I have found two different versions of the gps.conf file that have a slew of added lines. I added, subtracted, and even carried the one and came up with this:
NTP_SERVER=0.us.pool.ntp.org
NTP_SERVER=1.us.pool.ntp.org
NTP_SERVER=2.us.pool.ntp.org
NTP_SERVER=3.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
XTRA_SERVER_4=http://xtra4.gpsonextra.net/xtra.bin
INTERMEDIATE_POS=0
ACCURACY_THRES=0
DEBUG_LEVEL=3
ENABLE_WIPER=0
ENABLE_XTRA=TRUE
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
SUPL_HOST=supl.skyhook.com
SUPL_PORT=7278
CURRENT_CARRIER=common
#REPORT_POSITION_USE_SUPL_REFLOC=1
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
DEFAULT_USER_PLANE=TRUE
#START_MODE=WARM
#OPERATION_MODE=STANDALONE
PHONE_TYPE=UMTS
Now I just added this gps.conf file to my phone last night, so I'm still testing it. Adding this to your gps.conf file should help mostly with A-GPS. Last night and today I have been able to lock on pretty damn quick (before I would sometimes go 30 minute without any luck). I am using the stock AT&T HTC Inspire radio (internet speeds are the best, but if GPS continues to work, I'll be happy man).
For those that don't know, the gps.conf file is in system/etc. You will need a root explorer to navigate to it and edit the file. I use ES File Explorer (needs to be enabled root explorer within this apps settings). Nav to the root then to system/etc. Open gps.conf, paste the above, and save. May want to back up the original gps.conf file first just in case. If not, it will most likely contain something like this:
NTP_SERVER=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
SUPL_HOST=supl.google.com
SUPL_PORT=7276
PHONE_TYPE=UMTS
Let me know if this helps or not. I hope it does.
**adding the gps.conf file in a zip, it is not flashable (can't upload the .conf extension)

Good info. Can you upload the gps file? This way people can push it via adb or create a flashable zip. I like what you've done here. I see in other threads people have had success with it.
Sent from Desire HD or Inspire 4G or whatever this thing is called via premium XDA app.

what ive found is theres 2 seperate issues. 1 is where gps completely stops and doesnt even try to connect anymore(no gps icon or any gps activity at all). the other and more common problem is when gps turns on, just refuses to get a lock in maps. i think this happens when maps is updated or for whatever reason in /data, then roms are flashed but /data is not wiped. this is copy/pasted from my thread cause i dont feel like typing it up again, and should work for those that cant get a lock. some of these steps are probably unnecessary, but since this is exactly how i did it and it worked for me and someone else so far, thats how im gonna type it.
Ok disregard my last post. After messing with some things, my gps was broken as well. Not broken really, cause the gps was coming on and seeing sats, but maps WOULD NOT locate me at all. Here's exactly how I fixed it (its now locking almost instantly-
Go to /data/app with root explorer, delete com.Google.Android.maps.apk(whatever is in there involving Google maps, delete it)
Now go to /data/data-delete com.Google.Android.maps folder.
Now go to settings/applications/ click the all tab. Find maps in there, probably called com.google.Android.maps or something like that. Click on uninstall updates and force stop if its lit up. Now there should be just 'maps' under the all tab, click it and then clear data.
Now open maps and it should work.
I think what's happening is maps is being left in /data throughout flashes, and its getting corrupted or something. What we just did forced the maps in /system to work, and it should be now. Let me know if it works. It just did for me
Also, don't update maps in the market, that's gonna put maps in /data again, and it might not work. It could, I don't know. Since there is an update for maps, ill put the new one in the next build
Click to expand...
Click to collapse

@Irs421, added gps.conf file in 1st post
@di11igaf, what if you format /data using CW before flashing? Do you thing the map data is left behind? I always do the factory reset using CW and other times manually format /data, /system, etc using CW.

You might want to try the scripts in my sig, I've been working on this for the HD2 for awhile now since there is no agps support in the gps driver. But these scripts have helped many people including myself. Inspire at least the stock rom has agps support, and the stock gps.conf file seems to be enough (At least here on the east coast), I have a completely stock inspire and have no trouble when it comes to locks, But I have suggested my scripts to a few others in the inspire forum with promising results, I am now having Aria people testing the same script and it seems across the board its making an impact.
All files are CWR, 6 regions of the US and 62+ individual countries. Currently released is 1.1, I have 1.2 currently being tested by a handful of testers before testing phase two of the 1.2 release.

I love what you have going on here AngelDeath! Can you fix the link for US - North East?
Adding this to my gps.conf file has worked amazing for me for the last two days, but this morning I was not able to get a lock on. I have I hopes for your script, AngelDeath.
{edit}... It did try to created a flashable zip myself that I tested last night. It didn't work (obviously ); and this could be the issue to it not working this morning. I'll have to reflash the phone, set it all back up and test again to confirm.

Sorry directorfer, lost power in the area, but up and functional now that they fixed it, try again. Hope you have the same results, i am currently testing 1.2 with some testers if all goes well, then I can test phase two for the HD2, but the Inspire and the Aria dont need phase two. I'll keep you posted.

GPS is looking good again
Flashed my phone again last night and reapplied these settings to my gps.conf file and it locked on quickly and stayed locked on. This morning on my way to work it was the same. I hope this works for others.
AngelDeath, I haven't tried your script yet. I wanted to test the configurations I have here first. Next time I flash I will give it a try and let you know. Thank you!

AngelDeath said:
Sorry directorfer, lost power in the area, but up and functional now that they fixed it, try again. Hope you have the same results, i am currently testing 1.2 with some testers if all goes well, then I can test phase two for the HD2, but the Inspire and the Aria dont need phase two. I'll keep you posted.
Click to expand...
Click to collapse
Ever since using AngelDeath's scripts, I've had minimal problems with GPS, no matter what ROM I've used it on.
A good thing that works for me, even if I'm having problems, is to just go into GPS status first, let it lock, and then do whatever I wanted to do in the first place.
I usually get a lock in under 20 seconds, and the extra time spent in that app is totally worth it.

Hey AngelDeath the link for USA North East is wrong. When i flashed it, it said Mid West.

I am running CM7, I tried what the OP suggested, but it did not change anything. I still get maybe one or two satellites at the most. Funny thing is that with MIUI 1.4.15 after applying the fix in the original thread, I get anywhere between 6 and 10 satellites in GPS Status. I have never had that with CM7.
I wonder what the difference lies in CM7 and MIUI?

Numpangx said:
Hey AngelDeath the link for USA North East is wrong. When i flashed it, it said Mid West.
Click to expand...
Click to collapse
Should bring this issue up on AngelDeath's forum:
http://forum.xda-developers.com/showthread.php?p=11342772#post11342772

codyg1985 said:
I am running CM7, I tried what the OP suggested, but it did not change anything. I still get maybe one or two satellites at the most. Funny thing is that with MIUI 1.4.15 after applying the fix in the original thread, I get anywhere between 6 and 10 satellites in GPS Status. I have never had that with CM7.
I wonder what the difference lies in CM7 and MIUI?
Click to expand...
Click to collapse
Take a look at what AngelDeath has, http://forum.xda-developers.com/showthread.php?p=11342772#post11342772. I'm going to imagine that his scripts will do other procedures besides just adding content to the gps.conf file. Right now I have only tested this tweak using Cognition HD 1.0.1 which is based on the stock Inspire ROM. I haven't tested this tweak on ROMs that are based on the Desire HD stock ROM. While these ROMs work on the Inspire, there might be slight difference that could interfere (but don't quote me on that).

Numpangx said:
Hey AngelDeath the link for USA North East is wrong. When i flashed it, it said Mid West.
Click to expand...
Click to collapse
Its correct, I was too lazy to change the banner to reflect the location, Will change all in the next release.

directorfer said:
Take a look at what AngelDeath has, http://forum.xda-developers.com/showthread.php?p=11342772#post11342772. I'm going to imagine that his scripts will do other procedures besides just adding content to the gps.conf file. Right now I have only tested this tweak using Cognition HD 1.0.1 which is based on the stock Inspire ROM. I haven't tested this tweak on ROMs that are based on the Desire HD stock ROM. While these ROMs work on the Inspire, there might be slight difference that could interfere (but don't quote me on that).
Click to expand...
Click to collapse
I use AngelDeath's script on my phone, and I used GPS Status to see if it worked. At first it didn't see any satellites, but I reset the A-GPS data, and then it locked into seven satellites. Maps locked onto me instantly. Later on that evening, I tried it again. No dice this time. It only saw one satellite.

After flashing the zip with the updated gps.conf I have noticed a huge improvement on gps. Initially after flashing it took almost 10 minutes to get a lock on I think 9th satellites, this was indoors with rain. Since then I've been able to get a good lock within 30 seconds at most, usually quicker. Accuracy seems to float around 50 feet.
Great work on tweaking this file, works like a charm now!
Sent from my Inspire 4G using XDA App

directorfer said:
In the mysteries that lie within the GPS woes on the Inspire; I have been having GPS issues for sometime now. I have used three different ROMs and a handful of radios, all with GPS issues. I feel there is an issue within the Inspire itself that I hope HTC fixes soon, but with no real solution, I don't have any answers; just something to try. In my research on XDA and the WWW, I have found two different versions of the gps.conf file that have a slew of added lines. I added, subtracted, and even carried the one and came up with this:
NTP_SERVER=0.us.pool.ntp.org
NTP_SERVER=1.us.pool.ntp.org
NTP_SERVER=2.us.pool.ntp.org
NTP_SERVER=3.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
XTRA_SERVER_4=http://xtra4.gpsonextra.net/xtra.bin
INTERMEDIATE_POS=0
ACCURACY_THRES=0
DEBUG_LEVEL=3
ENABLE_WIPER=0
ENABLE_XTRA=TRUE
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
SUPL_HOST=supl.skyhook.com
SUPL_PORT=7278
CURRENT_CARRIER=common
#REPORT_POSITION_USE_SUPL_REFLOC=1
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
DEFAULT_USER_PLANE=TRUE
#START_MODE=WARM
#OPERATION_MODE=STANDALONE
PHONE_TYPE=UMTS
Now I just added this gps.conf file to my phone last night, so I'm still testing it. Adding this to your gps.conf file should help mostly with A-GPS. Last night and today I have been able to lock on pretty damn quick (before I would sometimes go 30 minute without any luck). I am using the stock AT&T HTC Inspire radio (internet speeds are the best, but if GPS continues to work, I'll be happy man).
For those that don't know, the gps.conf file is in system/etc. You will need a root explorer to navigate to it and edit the file. I use ES File Explorer (needs to be enabled root explorer within this apps settings). Nav to the root then to system/etc. Open gps.conf, paste the above, and save. May want to back up the original gps.conf file first just in case. If not, it will most likely contain something like this:
NTP_SERVER=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
SUPL_HOST=supl.google.com
SUPL_PORT=7276
PHONE_TYPE=UMTS
Let me know if this helps or not. I hope it does.
**adding the gps.conf file in a zip, it is not flashable (can't upload the .conf extension)
Click to expand...
Click to collapse
Hey, why would you add a supl server and then work in standalone mode? Just asking

carloss86 said:
Hey, why would you add a supl server and then work in standalone mode? Just asking
Click to expand...
Click to collapse
Why would you bring this up after almost a year? There are plenty of GPS threads.
Thread closed

Related

[GPS Scripts][APR.25.2011 1.2 FINAL RELEASED!] GPS Notice of Error Post#1 EAST COAST

15.July.2011: Please follow this link: GPS Mis-Naming & GPS Lock Times EAST COAST ONLY.
An error was caught by Firemanj79 that could affect GPS Lock times for people living on the East Coast.
Greetings All,
I would like some people to beta test something I have been working on in the HD2 forum, which I think will benefit MOST people. I cant guarantee it will work for everyone. I started this project in the HD2 forum because the GPS drivers are not complete with agps support, and made a new gps script to aide in helping lock times to be quicker, and to lock onto more sats. Which has been successful.
I have an Aria that I had laying around and my daughter wanted to use, so I decided to let her use it, which I just rooted, flashed a stock att rom, and upped the radio to current, then installed gps status and tried testing the gps. I was getting 2 sats with difficulty, after I replaced the gps.conf file, my lock time shortened very quickly and instantly had locks to 9 sats.
So even though I know the file is universal and just about any android phone can use this, I would like if people could try my file and post results here to see if it helps people with trouble with their GPS and even if you dont have trouble, if you just want to try it.
Most from what I see only get a lock to 4 or 5 sats, seems 9-12 is unheard of. The files are in CWR so flashing it through recovery should not be a problem. If you want you can just pull the gps.conf file from the zip and adb push the file. The link obviously is in my Signature, but just to make it easy:
Instantaneous GPS Fixation CWR v1.2 USA & INTERNATIONAL COMPLETED!
Of course by the name, I have made files for the USA broken down into 6 regions, and I also made files for 62 countries.
If it works for you, please hit the Thanks button, do not fill the posts up with Thanks thats what the mods made a button for. If you feel the urge to donate, please feel free coffee does wonders.
But I am more then happy just to give back to XDA with what I can. If any Dev's wish to use any of my files, you may do so as long as credit is given where credit is due.
1.2 has been released!
Thanks for this post...and obviously, the work you've done. I travel 100%; GPS lock speed is something I notice on a weekly basis... new city... leaving airport rental car facility... "which way to the hotel" ?
Keep up the good work.
Tested with Gene's 2.2.2 and CM7 Stable + Ladios' kernel + old gps libs - Very fast lock times on both.
Lock times from a reboot & data cleared
CM7 - 12 sec.
2.2.2 - 9 sec.
Smooth reboot after flashing on 2.2.2
CM7 after flashing restarted 5 times from the HTC white screen (I thought it was going to boot loop but it didn't) and booted fine.
I received an error code 0 when trying to flash the North America file to my Aria. This usually means that the edify update binary is not correct. I then replaced it with the binary from the current CM7 and it started to flash, but then errored out with a "Mounting SYSTEM mount () expects 4 args. got 3.
Looking at the script it should probably be:
mount("yaffs2", "MTD", "system", "/system");
instead of mount("MTD", "system", "/system");
Maybe it is just me, so maybe someone else can try North America on their Aria.
Got a double post. Anyways, after an initial lock in under 1 minute indoors, subsequent locks are under 5 seconds. I am located in Costa Rica.
bkmo said:
I received an error code 0 when trying to flash the North America file to my Aria. This usually means that the edify update binary is not correct. I then replaced it with the binary from the current CM7 and it started to flash, but then errored out with a "Mounting SYSTEM mount () expects 4 args. got 3.
Looking at the script it should probably be:
mount("yaffs2", "MTD", "system", "/system");
instead of mount("MTD", "system", "/system");
Edit: That worked for me
Maybe it is just me, so maybe someone else can try North America on their Aria.
Click to expand...
Click to collapse
I flashed the newer updates 3.22.11 from further down in his thread. It has the US broken down into regions. Maybe those work better???
cHarley04 said:
I flashed the newer updates 3.22.11 from further down in his thread. It has the US broken down into regions. Maybe those work better???
Click to expand...
Click to collapse
Dunno, I flashed the North America because I am in Costa Rica. I looked at the newer ones and the update-script is formatted the same. Maybe I am chasing something that wasn't broke, but all I know is that the first one without mods gave me an error and wouldn't flash.
my location started to jump across the city and back
I dont know if it makes any difference, but these are obviously for an HD2, maybe the scripts are different in the Aria? Honestly they all work with CWR in HD2, but if you are having trouble like I said, you can just take the gps.conf file from the zip, and either adb push the file, or mount the system in CWR and copy the file over. I copied the file over in CWR mounting the system through droid explorer.
drowningchild,
Thats a bit odd, try rebooting and see if that might help, I know the file gets read at the very beginning of boot up during the white htc screen. But it shouldnt make you bounce all over the place.
Works great for me!!! the gps now locks in 10 sec aprox! i use the South America script (im in Argentina), I have to push via adb... the flashable file dot work in my Aria... Exelent work!!
fedealf,
There is a specific zip for Argentina that I made. I am going to be update the post shortly and link all the ones that are not in the main post. but in case you want to try Argentina here is the link Argentina.zip
Dude this is great. INSTANT Gps fix. Running stable CM7 with Ladios Kernel.
I don't even have to run this RC4 'fix'. I love you.
Edit : tried to use navigation and it said I was on a different road than I was on.
Getting locks, but not where my location is. Reset AGPS using gps status.
Edit 2 : Went to navigation and it locked on my house this time. I rebooted. Shows correct direction and road.
Thanks bud
Would love to test if I could download it, keeps telling timed out. southmidwest
Plumberchuck,
Since you said south mid west I wasnt sure what you were referring to, so I added both to this post, let me know how it works for you.
All the files are hosted on my webserver, I dont know why some have trouble, I can tell you that for some reason it will not allow you to download the file if you are trying with the phone, it has to be from a computer, dont know why though.
You rock man! for argentina to, thank you very much!! later i tell you how it works.
dead links?
^^^^ you've got to download from a pc. Not your phone.
Sent from my Liberty using XDA Premium App
Sorry area lost power today, try again, everything is back and running.
Thank you, I was on my comp and could download everything but the link, don't know why am loading zip tonight will let you know tomorrow how it works for me.

[Trick] Speed Up Satelite Fix for GPS on Android

Guys,
I decided to write this because a lot of us here still facing GPS issue on their device. I almost give up on my HTC Desire HD because of the GPS problem. After I find this trick, now I realized that HTC devices have one of the most brilliant GPS hardware. It always get a location lock within 5 - 15 seconds.
This trick not only to speedup the satelite fixing. Some also found that it increase the reception (strong signal even during cloudy, light raining, and inside building's window). I am one of this case .
Here is the tricks. It is tested on HTC desire HD, SGSII, and speculated to work on most Android device (Please note that it is in sequential order):
Requirements:
Rooted Device
File Manager: e.g. Root Explorer
1. Searching for NTP server information
Go to http://www.pool.ntp.org/en/
At the right side of webpage, there is "Active Servers". Go in and look for the setting of your 1)region and 2)country
For example, one's region is Europe then you write down the NTP server for that: 0.europe.pool.ntp.org; 1.europe.pool.ntp.org; 2.europe.pool.ntp.org; 3.europe.pool.ntp.org
Then the servers for your country from the list down there and click the link(Example: Switzerland — ch.pool.ntp.org; 0.ch.pool.ntp.org; 1.ch.pool.ntp.org; 2.ch.pool.ntp.org; 3.ch.pool.ntp.org
The "Italic" words are the information you need to jot down for later use
3. Modify the gps.conf file (Most Crucial Stage)
Copy the codes in grey box (in first post) to a notepad, then change the extension name from .txt to .conf then copy to your phone
Use file manager to copy to this location: /etc/gps.conf and replace the original gps.conf
Open and Edit the gps.conf using rootexplorer or others file managers
Change the COUNTRY and REGION in following lines with the info you got from the website just now. Keep other values unchange unless you know what it is. Example of REGION such as NorthAmerica, Asia, Africa, Europe.
Your new gps.conf should look as below:
NTP_SERVER=0.COUNTRY.pool.ntp.org
NTP_SERVER=1.COUNTRY.pool.ntp.org
NTP_SERVER=2.COUNTRY.pool.ntp.org
NTP_SERVER=3.COUNTRY.pool.ntp.org
NTP_SERVER=0.REGION.pool.ntp.org
NTP_SERVER=1.REGION.pool.ntp.org
NTP_SERVER=2.REGION.pool.ntp.org
NTP_SERVER=3.REGION.pool.ntp.org
NTP_SERVER=COUNTRY.pool.ntp.org <-This is changed from the top line to here. It may works better if we put it here.
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
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=0
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=3425
SUPL_SECURE_PORT=7275
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
# FOR C2K PDE SUPPORT, set the following
C2K_HOST=c2k.pde.com
C2K_PORT=1234
CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
# TRUE for "User Plane", FALSE for "Control Plane"
DEFAULT_USER_PLANE=TRUE​
Make sure the permission of the file is rw-r--r--
4. Reboot
Go setting, turn on your "use GPS satelites" and "Integrate Google Navigation"
Restart the device (normal restart)[/B]
5. Use GPS status and Toolbox
Tool available in market for free, please donate so developers are encouraged for better release in the future[/B]
Open app> tools> manage A-GPS state>Reset
Open app> tools> manage A-GPS state>Download
Optional restart device (not compulsory)
Use GPS status to start fixing satelites
Your satelite fixing speed should VERY FAST now
After get a successul GPS Lock, open your GPS applications and use like normal (e.g. Copilot, Sygic, or TomTom)
Extra Suggestion: Please make sure your GPS is enabled before your device is turnoff or restart. It won't actually use GPS unless you open map-related app or google.com.
CAUTION!!!: DO NOT use fasterfix after this. It will overwrite all the content in gps.conf​
Credits: Thanks for JMax and Vault Killer for the gps.conf file
WARNING: Please do backup before messing with your device
Do it at your own risk, I cannot be held resposible for any damage or dysfunctional of your device
[Update: 17 August 2012]
Sometime even my phone won't work consistently. It won't able to get fix within 30seconds everytime. And i found this tool can be very very help to make sure my agps 95% up to date and thus has the best performance.
The tool is called "Leo AGPS Injector" developed by Tytung. Please click thanks or consider donation on the following post to thanks for the developer - Tytung. I have no credit at all for this tool. I just share it.
Here is the link http://forum.xda-developers.com/showpost.php?p=16384028&postcount=1907
Step to use the tool:
Install and place the widget on your home screen
Ensure your GPS setting is on
Make sure you're conencted to Internet / Mobile data
Press on the widget to inject AGPS data
Now you're good to go. The internet can be turn-off now. and your gps should work well
Note: I noticed once i connect to a big internet network (such as my university internet network). My GPS won't work anymore.
This is what i do to make it back to normal:
Connect to Mobile data (3G) and use "Leo GPS injector"
if it is still not working, i switch to airplane mode and back to normal mode again, then repeat step 1
And i notice, it works better if you use mobile internet, rather than fixed source internet at home. This is just what i feel, not necessary true.
Please post your feedback to let others know it works on your device model
Please click "Thanks" if you feel this post is useful for you​
Thank you very much for this post.
Fortunately I've never had a GPS issue on my DHD, but still I would love to "fully" understand your solution ...
If it is possible, can you please explain what exactly these settings do, or can you post some links where I can find some extra info regarding these settings and their "ïmpact" for my DHD ..
(Always curious, you know ! )
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=0
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=3425
SUPL_SECURE_PORT=7275
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
# FOR C2K PDE SUPPORT, set the following
C2K_HOST=c2k.pde.com
C2K_PORT=1234
CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
# TRUE for "User Plane", FALSE for "Control Plane"
DEFAULT_USER_PLANE=TRUE
Click to expand...
Click to collapse
and, what exactly is meant by
4. Reboot
Go setting, turn on your "use GPS satelites" and "Integrate Google Navigation" rw-r--r--
Restart the device (normal restart)[/B]
Click to expand...
Click to collapse
Do you want me to put permissions on a settings selection in the "Settings - Location" options ?
Sorry if my question is unclear, but I'm a bit puzzled by that part of your solution post.
AGAIN !! Thanks for the nice post and great effort .. Much appreciated !!
Should we be removing extra lines at the top if we have less NTP servers available? For example, Canada only has 1, so should I be copying that multiple times or just put it in once?
DalSegno said:
Should we be removing extra lines at the top if we have less NTP servers available? For example, Canada only has 1, so should I be copying that multiple times or just put it in once?
Click to expand...
Click to collapse
Yes. Remove the extra lines if you need less servers for your place
Wacco001 said:
Thank you very much for this post.
Fortunately I've never had a GPS issue on my DHD, but still I would love to "fully" understand your solution ...
If it is possible, can you please explain what exactly these settings do, or can you post some links where I can find some extra info regarding these settings and their "ïmpact" for my DHD ..
(Always curious, you know ! )
and, what exactly is meant by
Do you want me to put permissions on a settings selection in the "Settings - Location" options ?
Sorry if my question is unclear, but I'm a bit puzzled by that part of your solution post.
AGAIN !! Thanks for the nice post and great effort .. Much appreciated !!
Click to expand...
Click to collapse
Hi Wacco,
That's rw--r--r things was an typo mistake, I will removed it. Thanks for pointing it out.
Unfortunately, a friend of mine send the file to me. He said all the descriptions are as per in the comment (#). I think he said he extracted from the firmware of a GPS system in my country. And i wasn't expert in GPS things, I afraid I'm not the right person to answer you Perhaps some experts may drop by and asnwer you question soon. I also wanted to know the details too
The app faster fix will not work for me in my sgs2 it just shows a black screen is this step needed or can i miss it out?
Please ignore my nooby type post before i needed to upgrade my busybox duhh
This works like a a champ. Best GPS lock time I've ever had!
Thanks a bunch.
Tried it on my Motorola Atrix and it didn't make an improvement but it wasn't a detriment as well. Granted, my office is a cable head end with satellites and ****loads of cable equipment which may interfere.
I'm sure it will probably help if anything though. Thanks for the tips!
Yes. The surrounding is very influential to the working of GPS.
My car's windows are tinted with silver chrome tint. I nearly cannot get a single satellite fix inside my car.
But the GPS just work like charms in my bro's car with normal tints.
This trick mainly is to help users with slow GPS fix, it is not a magic
THe main idea is hope that before users mess with the risky fix (e.g. messing with hardware: physically adjust the antenna), they can try these low-risk tweak. So that they won't broke their device.
And most of the time, it is software issue, rather than hardware
wjsturgis3 said:
This works like a a champ. Best GPS lock time I've ever had!
Thanks a bunch.
Click to expand...
Click to collapse
Thanks for the feedback. Glad to hear that
What roll does Fix it Actually play?
What roll does Fix it Actually play since we are replacing the GPS.conf file anyways?
About to try on a Toshiba THRiVE Tablet will let you know if it helps...
UPDATE: I think it made it REALLY WORSE...2 mins and no fix
when we upgrade our ROM (for ex from ARHD 5.2.6 to ARHD 5.2.7) , do we need to redo this ? or we only redo it if we fully wipe before ROM install ?
cheers
flipper44 said:
What roll does Fix it Actually play since we are replacing the GPS.conf file anyways?
About to try on a Toshiba THRiVE Tablet will let you know if it helps...
UPDATE: I think it made it REALLY WORSE...2 mins and no fix
Click to expand...
Click to collapse
If you look at the comments in the script it's self explanatory.
I tested this from home and another few locations and it locked on very quickly. Thanks for the tweak!
Goodm7sn said:
when we upgrade our ROM (for ex from ARHD 5.2.6 to ARHD 5.2.7) , do we need to redo this ? or we only redo it if we fully wipe before ROM install ?
cheers
Click to expand...
Click to collapse
Hi mate, I really not sure cuz I always do a clean flash. Maybe you can share with us when you upgrade your ROM. And a quick way is to save your gps.confirm file in sdcard. Then replace the one after flash (if the flashing revert it back to normal).
Sent from my Desire HD using Tapatalk
bongd said:
If you look at the comments in the script it's self explanatory.
I tested this from home and another few locations and it locked on very quickly. Thanks for the tweak!
Click to expand...
Click to collapse
Lolz glad to hear it works ; )
Sent from my Desire HD using Tapatalk
flipper44 said:
What roll does Fix it Actually play since we are replacing the GPS.conf file anyways?
About to try on a Toshiba THRiVE Tablet will let you know if it helps...
UPDATE: I think it made it REALLY WORSE...2 mins and no fix
Click to expand...
Click to collapse
If you willing, please keep and try for few more days (keep your agps data updated via downloading tru gps status frequently). Cuz one of my friend also didn't work immediately but a few days after that.
Sent from my Desire HD using Tapatalk
bongd said:
If you look at the comments in the script it's self explanatory.
I tested this from home and another few locations and it locked on very quickly. Thanks for the tweak!
Click to expand...
Click to collapse
Am i missing something..i run fixit.apk, that is an installed program...not a script...then i replace a bunch of text in gps.conf...again not a script...what im asking is what does fixit.apk do...i could replace the gps.conf file without fixit.apk
Xenova said:
If you willing, please keep and try for few more days (keep your agps data updated via downloading tru gps status frequently). Cuz one of my friend also didn't work immediately but a few days after that.
Sent from my Desire HD using Tapatalk
Click to expand...
Click to collapse
Will do will let you know
flipper44 said:
Am i missing something..i run fixit.apk, that is an installed program...not a script...then i replace a bunch of text in gps.conf...again not a script...what im asking is what does fixit.apk do...i could replace the gps.conf file without fixit.apk
Click to expand...
Click to collapse
Hm... In my tweak, the first step is to download, install, and run Fasterfix (not Fixit, i not sure whether they did the same thing or not). But i didn't mentioned that it is optional to use the faster fix or not. I suggest to run, to be a safer step. Yes, it will write the gps.conf (but currently not sure whether the app change other things or not until i verify with the app dev). So i just keep the whole process that i gone through to make my gps works

AOSP GPS Issue - Discussing which Sense rom to flash FROM.

So I recently decided to switch to ThunderShed 1.5 from Infected Eternity, and the GPS was not working whatsoever. I spent the better half of the weekend flashing different sense roms to see what would yield a working GPS. (Performing the GPS lock in sense, then flashing immediately to ThunderShed)
I think I have achieved somewhat of a successful case, so I decided to share in case anybody was wondering.
Case 1:
Infected Eternity Sense 3.5 -> Thundershed
No working GPS, icon does not appear even after extended time.
Case 2:
Stock .5 and Thunderstick -> Thundershed
Random GPS fixes. Sometimes it would work, sometimes it doesn't. Takes a random amount of time before deciding to work.
Case 3:
Finally, BAMF Forever 1.10/1.11 -> Thundershed
First lock takes a little bit (with no icon), but after the first lock, GPS works after that without reboot. (Locking varies between position and conditions)
So there you have it. It took me a while to find a working BAMF Forever to flash from, but you can find it on their team BAMF website.
Does anybody have any other experience with this?
Edit: Also, I'm using the latest leaked radios from OpenMobile and was always using bundled kernels...
I've had luck flashing from both stock .9 and Bamf SoaB to Liquid 3.2 and getting a GPS fix. Regardless of the rom the first lock seems to always take a while, but after that it seemed quite a bit quicker.
Edit: This is all using the .9 OTA radios and kernel (except for the Imoseyon LeanKernel in Liquid)
gps.conf
Instead of flashing different Sense roms replace /system/etc/gps.conf with the stock file or run FasterFix from the play store, which is just as good.
The one that comes with ThunderShed 1.5 points to non-functional NTP servers and missing xtra.bin files.
jhudak said:
Instead of flashing different Sense roms replace /system/etc/gps.conf with the stock file or run FasterFix from the play store, which is just as good.
The one that comes with ThunderShed 1.5 points to non-functional NTP servers and missing xtra.bin files.
Click to expand...
Click to collapse
Good information. I want there to be a clear guide for all those with GPS woes... I spent way too much time on it! =X
ive also had luck using killasense & zeus
jhudak said:
Instead of flashing different Sense roms replace /system/etc/gps.conf with the stock file or run FasterFix from the play store, which is just as good.
The one that comes with ThunderShed 1.5 points to non-functional NTP servers and missing xtra.bin files.
Click to expand...
Click to collapse
Are there instructions for replacing the Thundershed file with the stock file? Where can I get the stock file?

[Q] Slow GPS fix

Hello ,
I have a problem with my optimus 3d p920 .
It seems to get a very slow GPS fix .
I been searching alot but not realy found a fix .
Can someone point me in the right direction ?
i am on XPlay3D v2.0 rom with baseband l6260_modem_sic_01.1042.00 accoring to system info of phone
.
Im having the same issue
I think it depends on the ROM settings and maybe even the build.prop file in /system/
I am using Prometheus ROM v1.4 with stock+ kernal and my GPS locks VERY quickly. I usually leave GPS enabled anyways which probably helps once its locked the first time.
I have been on other roms that takes FOREVER to lock onto GPS as well and if I recall correctly, I think some of Meemos roms had that problemf or me too.
Sorry I can't be much more help than that. My suggestion: try other roms and see how they do.
carlsberg112 said:
Hello ,
I have a problem with my optimus 3d p920 .
It seems to get a very slow GPS fix .
I been searching alot but not realy found a fix .
Can someone point me in the right direction ?
i am on XPlay3D v2.0 rom with baseband l6260_modem_sic_01.1042.00 accoring to system info of phone
.
Click to expand...
Click to collapse
What I use and I must say with success is a little apk called GPSFix.I start gps module from drawer, then start the gps fix, wait for about three secs till morr sattelites are shown then start my navigation program. Doing so in about 20 secs maximum, usually I get a 12 secs, I do get a fix.Anyway for me it works.
Sent from my LG-P920 using xda app-developers app
BigBadSheep said:
What I use and I must say with success is a little apk called GPSFix.I start gps module from drawer, then start the gps fix, wait for about three secs till morr sattelites are shown then start my navigation program. Doing so in about 20 secs maximum, usually I get a 12 secs, I do get a fix.Anyway for me it works.
Sent from my LG-P920 using xda app-developers app
Click to expand...
Click to collapse
Where do you get that ?
Check your NTP setting in:
system/etc/gps.conf
In the line:
NTP_SERVER=(you must set your closest location)
And change SUPL_PORT= to 7275
Search for your closest NTP server in www.pool.ntp.org
I found out that the GPS fix speed is ROM and/or settings dependent. For example, all the Froyo stock roms were much faster to get a GPS fix (10-20sec) comparing with the Gingerbread stock roms (45-90sec). The same applies to custom roms as well.
I would not recommend getting the GpsFix as suggested because it comes with tones of spam as you can see on the comments. Instead you could use the much more popular and with many additional features GPS Status & Toolbox.
Also if you don't want to change your NTP settings manually as suggested above, you could do it with an app called FasterFix.
I have to say though that even if the above apps could help decrease a few seconds from your GPS fix time, the most important for that is the ROM that you are using. I think it's unacceptable for LG to break the GPS fix on GB roms (together with other things) while it was working perfectly fast on Froyo.
I just made a comparison of O3D with the 6 times cheaper ZTE Blade with the app GPS Status. For O3D it took 75sec to fix and it fixed on 5/7 satellites. ZTE Blade made a fix in 11sec on 12/13 satellites!
Hello ,
Flashed XBSA V21E P920 and it seems much better , bt im gonna test more .
Thx for the help .
avelosoi said:
Check your NTP setting in:
system/etc/gps.conf
In the line:
NTP_SERVER=(you must set your closest location)
And change SUPL_PORT= to 7275
Search for your closest NTP server in www.pool.ntp.org
Click to expand...
Click to collapse
thx but in this rom i cant seem to find gps.conf .. it isnt where it suppose to be ..
botson71 said:
I found out that the GPS fix speed is ROM and/or settings dependent. For example, all the Froyo stock roms were much faster to get a GPS fix (10-20sec) comparing with the Gingerbread stock roms (45-90sec). The same applies to custom roms as well.
I would not recommend getting the GpsFix as suggested because it comes with tones of spam as you can see on the comments. Instead you could use the much more popular and with many additional features GPS Status & Toolbox.
Also if you don't want to change your NTP settings manually as suggested above, you could do it with an app called FasterFix.
I have to say though that even if the above apps could help decrease a few seconds from your GPS fix time, the most important for that is the ROM that you are using. I think it's unacceptable for LG to break the GPS fix on GB roms (together with other things) while it was working perfectly fast on Froyo.
I just made a comparison of O3D with the 6 times cheaper ZTE Blade with the app GPS Status. For O3D it took 75sec to fix and it fixed on 5/7 satellites. ZTE Blade made a fix in 11sec on 12/13 satellites!
Click to expand...
Click to collapse
You might be right even if the spam that I get is not generated by GPSFix. But even so we're talking about offline navigation, so there won't be any data connection so no spam.Even so you can use some ad blocker program, starting from rom toolbox lite, just to name one.
Sent from my LG-P920 using xda app-developers app
avelosoi said:
Check your NTP setting in:
system/etc/gps.conf
In the line:
NTP_SERVER=(you must set your closest location)
And change SUPL_PORT= to 7275
hi i just got my lg 920, leaving in south africa.
i tried every thing but i still cant get a gps fix.i edited the gps.conf files as recomended here with the following settiing
server 3.za.pool.ntp.org
server 1.africa.pool.ntp.org
server 0.africa.pool.ntp.org
can anyone please help me
Click to expand...
Click to collapse

Yet Another GPS Fix

This may or may not be "snake oil," but it may help the GPS lock time.
The attached secgps.conf adds the following lines to the "stock" version.
Code:
NTP_SERVER=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
It includes an NTP server (for North America, if you're elsewhere, you can check the NTP Pool page) and XTRA servers. I don't know if the SGS4G proprietary driver (and no, Aries doesn't have an open source one that I know of) can take advantage of them, but at least the information is there now.
After removing the .txt extension, install as
/system/etc/vendor/samsung-agps/secgps.conf
Ownership is root:root
Permissions are 644
The location may be different for anything except Team Acid's current ICS ROMs
(This was posted prior to the release of the Aries kernel)
These ideas came from the Crespo4G secgps.conf
I think (think) that this GPS fix only works for people who lives in America I really dunno if this would work in other continents still thanks jeffsf
Edit: nvm didnt saw your hiperlink
This seems to work well for me. I don't have hard evidence but it seems like it's working better.
Sent from my SGH-T959V using xda app-developers app

Categories

Resources