yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] clyder:
Few days ago I looked into friends ZTE Racer phone and in his gps.info was very few options and for NTP_SERVER only line he has wasnt with address for country specific NTP server but it was:

NTP_SERVER=xtra1.gpsonextra.net

I deleted all my NTP_SERVER=.......lines and put only this one..

I had two cold locks since then. Yesterday I got a lock in 36s and today in something over 50s.....so that is in my usual time range.

Perhaps that option don't help much with lock speed.... Just guessing.

Anyway before I used gps.conf from this thread I had very bad locking time so maybe the improvement was there because of the other lines in gps.conf because I have a great difference when using default builds gps.conf and gps.conf from here....
[HD2 Android Q&A, Help & Troubleshooting and Genera] V0RT3XXX:
I'm in Kuwait right now. At first I tried the gps fix version 1 US mid-east because I thought it's for the middle east. Then realized it's for US. But at least it was still working and I got a lock relatively quick. Anyway, I then switched to the Iran.zip and now ended up with no lock whatsoever. I switched back to the US mid-east but still no luck. What should I do guys? Thanks
[HD2 Android Q&A, Help & Troubleshooting and Genera] EViS:
Apologies for the noob question but how do I add lines to my gps.conf file?

I copied the gps.conf file to my PC and added lines, but when I try to copy it back (and overwrite the existing), I get a "Could not copy file" message. I'm using the standard Android File Manager.

Trying to edit gps.conf directly on the phone with ES File Explorer doesn't work either, it can't save the changes or overwrite the file.
[HD2 Android Q&A, Help & Troubleshooting and Genera] slbenz:
Did you try installing the QBanin GPS Fix apk near the top of the OP? Seems to help me better than GPS Fix or Faster Fix apps. Then try the Iran.zip file again.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Either edit the file in notepad on the computer and then copy it to the sdcard and then back to the location. Or you can use root explorer, remember to also to make sure you have write access to the folder.
[HD2 Android Q&A, Help & Troubleshooting and Genera] EViS:
How do you add write access to the folder/file? Can this only be done with root explorer? And is there a free version of root explorer? The one on Marketplace isn't free...
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
EViS, if you have a rooted phone then you can use just about anything, if your phone is not rooted then you would have to adb push the gps.conf file to your phone. If you are using a custom rom then you are rooted, you can then try using Astro File Explorer to copy the file over. If again if you are having trouble, you can use the file in the first or second post that has a link to Warlocks adb push file, you would just replace the gps.conf in the folder.

Also I am currently testing V1.2 I have sent it out to testers to see what results they are getting, waiting on feedback before I start testing phase 2. Phase 2 may or may not come with 1.2, its currently a [W.I.P], if it does come to light, there will be two versions, one will be for Froyo, and one will be for GB, since the drivers are somewhat different. If it doesnt make it to 1.2, then it will be in 1.3 if the testing goes as expected.

Again do understand that without proper AGPS support, these are files are to aide GPS for faster and consistent locks, If and when we get true AGPS support, I would say these scripts will be 100x more effective. Currently I am beta testing this with two other HTC phones that have Android native with working agps, and the results coming in are quite impressive and encouraging for others to try.
[HD2 Android Q&A, Help & Troubleshooting and Genera] EViS:
Managed to do it with another free File Explorer off Marketplace. I'm using a custom rom so am rooted :). Thanks for the reply mate, looking forward to seeing your current work once tested. I shall report back how v1.1 works for me in a week or so.
[HD2 Android Q&A, Help & Troubleshooting and Genera] SimMak:
Any mirror site to download the file?

Sorry I cannot download "Hong Kong.zip". Any mirror site for us to download?
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Hong Kong File
[HD2 Android Q&A, Help & Troubleshooting and Genera] h20pt:
@ AngelDeath

Sir, any news/release date on v1.2? :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] jjrumph:
If you would take the time and read the few posts ahead of yours he explains what is happening with v1.2. Only about 3 or 4 posts up.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Hegemor:
I cant click the norway link...

And I dont understand how to start the phone in cwr mode, I have magldr on my phone..
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
To All,

I am sorry for today as the website has been up and down, they are upgrading the lines in the area and putting up new poles, so its been causing havoc on my server, as of right now, the server is back up again. I am going to see about putting a mirror in place for in the event this happens again there will be a fall back.

Again, I truly apologize, I hope they get out of my area soon, Also as a reminder you cannot download the files thru your android phone, my website works on the phones but linking to the zip files wont download onto the phones.
[HD2 Android Q&A, Help & Troubleshooting and Genera] hendr1k:
I am from indonesia and using indonesia.zip

1rst time lock gps around 10-15 minutes

and 2nd time 1 minutes and so on always get 1 minutes even tho I turn it off straight away and turn it on again always 1 minutes hmm
[HD2 Android Q&A, Help & Troubleshooting and Genera] alexnalexn:
May I know if I can apply this zip file by OpenRecovery instead of CWR ? :confused:
[HD2 Android Q&A, Help & Troubleshooting and Genera] Esaj2:
AngelDeath, just to let you know, I got my HD2 back from the service center. I don't know if you remember me, but back in march, I had a GPS issue, which caused instant freezing, while using GPS in Android. I was able to use the GPS short periods of time in WinMo, but not in Android. I did get the GPS working in Android, but it didn't work long periods of time, just like in the WinMo. So I couldn't use the phone for example navigation.

Now my device has brand new GPS module, motherboard, chassis and touch screen. The last two items were changed for some unknown reason. The key is, that the GPS is working again brilliantly in Android. :D Reasonably fast cold lock times, no freezing and no loss of signal. I've been talking to a guy called lukesan and he had these same exact issues, like I did. He did also sent his device to the service center, for the GPS module replacement. I'm just telling this, because if someone else has these same issues, he/she might have the same issue like me and lukesan. If the GPS is causing the HD2 to freeze in Android or in WinMo, it could be caused by faulty GPS module. At least for me, the new GPS module did fix all the problems I had with GPS.

And added bonus, I might now have a EU HD2 with Sharp display. :D I'm not sure, but before the repair, I had that famous two second lag, but now the lag is less than a second. I'm using the same setup like last time. Rafdroid 4.0.2 and 2.15.50.14 radio.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Not all locations will get fast locks, unfortunately it is based on time servers that I try for local areas (countries) that are direct, first, and second tier, if they are not available, then I try to use the closest TS to that location. Have you tried using the GPSFix-0.1.apk file I posted? that should help since it downloads the xtra.bin file directly to your phone, and adding the three lines I suggested helps by having the phone look at the phone before looking outward.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
I dont know what open recovery is, but you can push the file by extracting the file from the zip, or you can copy the file (the gps.conf) file and copy to your sdcard, and then copy it to its location of system/etc/ manually, just make sure after you copy it that you open it and check to see if the file actually copied over.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Yes I remember you, I am glad you got the problem resolved, and you are enjoying your new phone and the gps working properly, I know its painstaking when something doesnt work the way its suppose to and cant figure out why.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Numpangx:
Hey AngelDeath im not sure if you fixed it yet or not but when i flashed USA North East, it said that i had just flashed USA Mid West.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Its just the banner, it was too late when I was doing it to fix close to 70 files with the right banner, I'll make sure to fix it before the next release. ETA: 4/23/11.
[HD2 Android Q&A, Help & Troubleshooting and Genera] ryu-lamp:
Thanks a lot!:D
[HD2 Android Q&A, Help & Troubleshooting and Genera] boomboomer:
This reduced setting for accuracy has made a big difference for my early model (older gps chip?) HD2. With the config file from Angeldeath I could get locks, but only by resetting the gps chip several times and took over 5 minutes. With accuracy set to 50 I get a cold lock in 100 seconds and a hot lock in under 10. Drops were common before, when it wouldn't relock, now it locks right back on. Anyone else tried this, that still get problems after updating config? Worth adding to the first post Angeldeath? (although with caveat about maybe not for all phones)
[HD2 Android Q&A, Help & Troubleshooting and Genera] prattjo:
GPS fix not working for me

Hi AngelDeath,

I am from Israel and since there is no Israel file I am using the Europe one.

After changing the gps.conf file I still have no GPS fix at all, I didn't have one before the change either.

My ROM is an SD Android ROM:

Android 2.3.3 :> Cope & Warrenb - AmeriCanAndroid AOSP HD2 GB233 CM7

Thanks for you work anyway
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
I would suggest using a file closer to your location, europe I think is too general for your location.

Also you have to be sure the gps is working in the rom, if its not, no script will help you get a lock.
[HD2 Android Q&A, Help & Troubleshooting and Genera] prattjo:
How can I check if the GPS is working If I am not getting a fix. A software called GPS Status says "GPS on" I have a flashing widget but no fix.
[HD2 Android Q&A, Help & Troubleshooting and Genera] slbenz:
I don't see a GPS on dialog when I use GPS Status and Toolbox. That sounds like GPS Test from Chartcross. If you wait a few minutes and don't get a lock in either app, I would look at the OP of this thread and add QBanin GPS Fix and the script described. I run the QBanin app before running any other GPS app to ensure a quick lock. Also, you may want to look for a more localized zip file for your area of the United States that you are in. All of the Android builds, SD like yours use a general United States gps.conf file. If you don't get a lock within 3-5 minutes the first time, you may have a failed GPS module in your phone.
[HD2 Android Q&A, Help & Troubleshooting and Genera] pgs4kind:
thanks.....gr8 help/...
[HD2 Android Q&A, Help & Troubleshooting and Genera] Hegemor:
Im not able to download the Norway zip... If I use the 1.0 europe that is attatched in the post, do i install it via magldr menu? or is that just for v1.1.

Do I do anything else, like edit the conf file?

We are travelling to denmark this summer, will the Norway fix work there as well?
[HD2 Android Q&A, Help & Troubleshooting and Genera] jjrumph:
For What its worth Dept.

I was also frustrated that I couldn't get my gps to lock after trying everyones solutions. SO... In my Dennis the Menace effort I took the phone apart to make sure the antenna was connected. I guess it sort of was but it came loose easily so I snapped it back on. Put the phone together and voila. Phone booted but no screen response. I''l keep this short. Phone is ruined. No screen response, cant get to magldar menu and cant get to clockwork. Reflashed windows and it boots and looks great until I have to unlock it and screen still wont work.

So being PO'd as I am I am determined to get another since I like the phone with this rom. So I found one on Craiglist. This time made sure GPS worked on windows which it did.

JUst loaded v12 with just the gps.fix apk. Gps locked on in about 45 seconds. After that 3-5. I am a happy but dumb ass camper since I had to ruin one phone to figure it out.

I know new version 1.2 for gps is coming. I'm afraid to try it. I have never subscribed to the theory that if it ain't broke dont fix it. I always say if it aint broke I bet I can make it better. That works about 30% of the time.LOL
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
The unresponsive screen, is not most likely due to the screen but the end button, if you read my post (located in my sig about unresponsive screen), you will see that by pressing often you can get the screen to respond again, its the way the end key lays either on the screen wire, or the way its touching something, my best suggestion would be to read the post I referred you to and stop using the end key as much as possible, I have links to alternatives that I use now which saves the phone from this demise. You can also try calling HTC and see if it might be under warranty, if you complain enough you never know they might just fix it.

And as for the 1.2, this will not damage your phone, this is why I tell everyone to make a backup of their file before changing it, so this way if it is worse you can always put it back.

Good luck with your new phone, and since you have another, I would read that post, because there is a video link attached as well on how to take apart of the phone and put it back together :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] bbot3k:
the gps fix

when i downloaded the northeast file and installed in with magldr, it showed up saying it was "optimized for the midwest". is there a mistake or was that really for the mid west? im in new jersey so would the northeast file be right for me?
[HD2 Android Q&A, Help & Troubleshooting and Genera] huggs:
No, its ok they all say that. Its ok, you got the right one.
[HD2 Android Q&A, Help & Troubleshooting and Genera] bbot3k:
ah! thank you!
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Thanks Huggs :)

And the new scripts will have the correct banners this time. I have already finished The USA 1.2 files, I am currently working on the 62+ other countries at the moment. Am going to be updating the main post when I put this out. Both US and International files will be release at the same time.
[HD2 Android Q&A, Help & Troubleshooting and Genera] boomboomer:
Thanks for all your hard work AngelDeath, I'd given up on using gps in android before you started this thread, looking forward to the new release.
[HD2 Android Q&A, Help & Troubleshooting and Genera] lukesan:
Ok, My GPS receiver, and LCD (no more 2 sec wait), and mainboard, and .... was also replaced.

Gps reception seems to be ok now.

Any news about the AGPS project Angeldeath?
[HD2 Android Q&A, Help & Troubleshooting and Genera] wolfson:
Hello, Thank you for all the work that you've done...

Unfortunately my country is not listed. I'm from Madagascar

Thanks again
[HD2 Android Q&A, Help & Troubleshooting and Genera] slbenz:
From the NTP Pool Server site, this is what they recommend for your area to use: http://www.pool.ntp.org/zone/mg
[HD2 Android Q&A, Help & Troubleshooting and Genera] sda.171:
Can sumone pls upload qatar.zip and GPS fix tool again- i tried downloading and failed- anyone? PLEASE? ^^
[HD2 Android Q&A, Help & Troubleshooting and Genera] dowhat87:
“E:Error in /sdcard/Malaysia.zip (Status 0)” when flashing Malaysia.zip..any solution to this? thanks
[HD2 Android Q&A, Help & Troubleshooting and Genera] dowhat87:
@jaiy

i think it is possible to just remove the a-gps command if u really dont need it..and if i'm not mistaken, either supl and c2k pde is services that's needed to be enabled to turn a-gps up and left by default on certain rom..leaving it there shouldnt be a problem.. + i guess, he already include google supl host in case both wasn't accessible..

btw y dont u refer to country specific gps script? i guess he already solve ur 1st argument regarding using only specific ntp server closest to ur contry.. :)

ps: i failed to flash this .zip , and yet i cant manage to change the permission on my phone to directly edit gps.conf..need some help right here :D
[HD2 Android Q&A, Help & Troubleshooting and Genera] Jaiy:
Further refinement

I'm now reading the Android code that parses the gps.conf file and see that it is only designed to handle one NTP_SERVER entry and one SUPL_HOST entry. Which means that if there are multiple entries for either of these, only the first will be used.

For the NTP_SERVER this means that it's very important that the entry be region.pool.ntp.org as it is in the original Gingerbread version. Using this pool name means that everyone will get a different server so we won't all overload one specific server and no one will be using a server they're not supposed to be using.

For the SUPL_HOST entry, this also means that I was correct in stating that AngelDeath's file with the invalid FQDN entry and the t-mobile.com entry as well as the non-existent C2K host, is effectively disabling assisted-GPS mode for everyone and reverting us all to non-assisted GPS mode. Which is why everyone is seeing the initial lock take a minute or two and subsequent locks be very quick. (With assisted-GPS, even the initial lock would be very quick, too.)

Since my updated file still had multiple NTP_SERVER entries, I am re-posting it again here with just the one entry.

NTP_SERVER=north-america.pool.ntp.org
INTERMEDIATE_POS=1
ACCURACY_THRES=5000
CURRENT_CARRIER=common
DEFAULT_USER_PLANE=TRUE
REPORT_POSITION_USE_SUPL_REFLOC=1

I am using this and it is working for me. I am getting fast GPS locks.

If you wish to use this, you should substitute north-america with the region or country suitable for where you are. You can find the list of countries/regions at

(no spaces and, yes, the @ is part of the URL; sorry, it won't let me post clickable links here, yet). On that page, click on a region to see the country-level zones. Choose the region or country where you are.

Now, this is still a work-around. The real problem is that the Gingerbread assisted-GPS handler is broken. That's the code that parses the SUPL information and initializes the GPS driver with information about which satellites to listen for based on your approximate location. Since that code is broken, your GPS receiver is probably being told to listen for the wrong satellites or for none at all, which is why it never locks. The gps.conf files in this thread simply turn off assisted-GPS mode which means the GPS receiver will listen for all satellites and eventually choose those with the strongest signals for its lock. The real solution to this problem will be to fix the Android assisted-GPS SUPL code. I haven't found the Android code for this handler yet... I am not sure that it is even part of the open source code. So it may well remain up to Google and/or HTC to fix that code so that we can re-enable the use of assisted-GPS.

Anyway, hope this info helps everyone.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Also you can try the Africa File as well.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Attached. Remember files cannot be download by phone.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Might be the way you copied the file to the phone and it might have gotten corrupted, try copying it a different way (Thru the computer with the phone in disk drive mode) if it still fails, you can use Warlocks ADB push file located in post #2.

Remember you have to have root access to the phone for this to work.,
[HD2 Android Q&A, Help & Troubleshooting and Genera] lukesan:
@Jaiy

Some people actually wonder if the gps.conf actually does something on our HD2's.

I am actually one of them. I have my HD2 back from Tuesday from the repair center and to be frankly I deleted the gps.conf file since that day (running Rafdroid 4.02)

Been driving around 2 different countries over the past days and I have a lock within a minute.

To add a bit more evidence I don't activate roaming data abroad. The lock time was about the same abroad.

Some devs already commented that agps is not activated in the driver.
[HD2 Android Q&A, Help & Troubleshooting and Genera] huggs:
Dude you're a beast. Can't wait to test out ver1.2 for ya. You put in alot of work around here, and not just on the gps stuff, either. Thanks once again for all your time and efforts :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Okay, then I have a simple answer, dont use it, its **** and it doesnt work, and its all pot luck. So everyone in the HD2 forum dont use it, Aria Forum, dont use it, and the Inspire 4g Forum dont use it Jaiy says its pot luck and it has no merit.

And Could I cite the source of my Statement that there is no AGPS support in the HD2 drivers? Your kidding right? I dont have time for this, Try the search feature of google, try the AGPS Development thread in my Sig, try doing a search on XDA, Try reading the whole thread. Sorry but I've entertained you enough without your source and I really dont need this thread to go in the wrong direction.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
As for the gps driver, so far there is no source code, the libgps.so file is only 22kb, which clearly has been stated that the agps lines are not in the driver. one would either have to re-write the driver from scratch, or if the source ever does become available, then it could be worked on as to add the missing code, as of right now, my script is the only thing that is for the most part for many having there gps work consistently and reducing long lock times, and has increased their sats almost double. If you click on the AGPS development link in my sig you can read the whole disscussion about the agps there.
[HD2 Android Q&A, Help & Troubleshooting and Genera] dowhat87:
@AngelDeath

my phone is rooted already..and, i have been flashing things a lot before and never had this problem..and i tried to use terminal emulator to edit this file and sadly, i failed! so here's what i do

su --> SU granted

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

chmod 777 /system/etc/gps.conf ---> said: read-only file system (wtf)

rm /system/etc/gps.conf ---> failed

mv /sdcard/gps.conf /system/etc/gps.conf --> cant be move

i'm was a failure :(
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Okay, well it should be that hard to move really, What rom are you using? Because another thought that has come to mind is if its squashed FS, I know one way that crossed my mind, but really this should be that difficult, all the CWR files work as they should flashing them in CWR copies them over. Have you tried to delete the existing gps.conf in your system/etc? does it allow you to delete it? If not then I would then look as to why it doesnt allow you to, most squashed roms make the system folder a read only.
[HD2 Android Q&A, Help & Troubleshooting and Genera] dowhat87:
i'm using cm7 stable release + ladios' kernel (shouldn't be any problem, i guess)..i tried to gain access on the gps.conf, deleting, removing or even renaming but seems, i cant, no matter what i did..it will keep on telling me "read only"..did u have any other idea regarding this?

thanks