yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Mar.29.2011 UPDATE:

If anyone has been keeping track of the Dev forum Post, you will see we are making progress in the GPS/AGPS development. One of the key things that has surfaced thank to MEMIN1857 is the GPSFix.0.1.apk file, which can be downloaded from his post: GPSFIX-0.1.apk. Install this on your phone, and then run it after install, there is no gui, it will download the necessary "xtra.bin" file that is needed by the GPS/AGPS, and after 30 seconds it will say fixed. This is one of the cruiel parts of the GPS that has been missing. Also I found through lots of searching you should add the following lines to the end of your GPS.conf file located in /system/etc. Add the following to the end of the file:

AGPS=/data/xtra.bin

XTRA_SERVER_1=/data/xtra.bin

Also jaba_cz had a line in theory which I will post here which you can add at the end as well, all three lines will not break anything, so its safe to add this line too, I just cant confirm results as of yet:

AGPS=http://xtra1.gpsonextra.net/xtra.bin

Many people are working on this with alot of info I am hoping soon we will get the gps working for everyone in an acceptable manner.

USA & International v1.2 Released!

Todo List: for V1.2

New command codes Adding New Code to Gps.Conf file! *DONE V1.2*

AGPS Aiding *IN PROGRESS* Looking to make Library implimentation THANKS ARNE182!

Faster First Locks *DONE V1.1 & 1.2*

Narrowing GPS searches for countries *DONE V1.1*

Splitting USA into 6 regions for locks *DONE V1.1*

1.2 RELEASE 4/24/2011 Change Log:

Fixed All Banners for all Zip files.

Added More command codes.

Rearranged command sequences.

Added Line by jaba_cz.

1.1 Second Release Change Log:

Added commands for xtra.bin to point to phone.

Added more commands for faster fix.

1.0 Initial Release

ROMS TESTED: (Either by or by Users)

Raidroid HD Sense v1.2 - Desire HD Base

Rafdroid 2.3 & Rafdroid 3.0 & 4.0

Motoman PCB Desire Build v0.1

CMYLXGOs Stock Desire HD v1.0.9n & v1.1.4

Unofficial CM7 Nightlies

GPC_hd2_gingerbread_v1.7

TyphooN CyanogenMod 7 RC2 v2.6 (2.3.3)

Motoman234 Black & Blue Remix V1.0

NexusHD2 Gingerbread v2.3

HyperDroidGBX-v9 2.3.3 with Hyperkernel v 5.0

ROMS FAILED:

imilka's RAM Desire HD (Erratic lock times for two days)

HyperdroidGBX 7.0 (Have not gotten any locks for 10 minutes)

KERNELS TESTED:

GPC226 Kernel

GPC215 Kernel

CM7 Kernel (Nightlies)

Gauner 1.29.11 Kernel

Rafpigna 1.7OC Kernel

TyTungR2 Kernel

MDJ 10.3OC Kernel

Raidroid Kernel

GL Kernel V6

GL Kernel V10

KERNELS FAILED:

NONE

WARNING: THE FILE "SUPLROOTCERT" COULD POSSIBLY INCREASE YOUR LOCK TIMES, IT IS ORIGINALLY PULLED FROM AN AT&T PHONE, IF YOU INSTALLED THIS FILE AND EXPERIENCE LONGER LOCK TIMES PLEASE DELETE THE FILE. YOU CAN DELETE THE LINE ALSO IN THE CONF FILE BUT IT ISNT REQUIRED.

SuplRootCert - CWR: Thanks Carl1961 again!

http://xdaforums.com/showpost.php?p=11364559&postcount=64

For anyone that doesnt have CWR,Thanks to WarlockW here'sa link to do an ADB push from your computer.

http://xdaforums.com/showpost.php?p=11371825&postcount=78
[HD2 Android Q&A, Help & Troubleshooting and Genera] daemonfly:
Thanks for all the hard work, I'll give this a try this week and see how it goes.

Now, from your explanation of one of the actual problems, servers being overloaded, I have a ponderance. I'm guessing if someone ran their own time server (which many do, or at least have the resources to do so), they would be able to modify their phone's config to use their own servers for quicker response. Or does the general user not have access to whats needed for the GPS lock?
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Actually no, normal time server will not work, so if you ran your own time server you would not have the same results, If you ran your own time server, you would be considered the same as the pool.ntp.org site, since those servers are in a round about way, 4 or 5th tier or possible further down, not saying pool.ntp.org doesnt work, but the higher in the chain you are the less round robin time you have to wait especially local.
[HD2 Android Q&A, Help & Troubleshooting and Genera] augustopacheco:
tank you for your excellent work. i try install europe.zip, but i have error. i have magldr v1.13 and when i try to install zip from sdcard, i choose europe.zip, and he cant't open zip (bad). i download to my pc and copy to sdcard. please help.
[HD2 Android Q&A, Help & Troubleshooting and Genera] the_scotsman:
So are these just editing the time server in gps.conf?

Personally I haven't found that to make a huge difference...but it may work for others :)

Oh and GPS devices don't send anything back up to the satellites, they are only receivers ;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] huggs:
Same result for me with US Midwest. So I just unzipped it, took the gps.config out and moved it to my sd card, and then used Root Explorer to move the gps.config file to system/etc/ of my phone.

Haven't tested it out yet, I will in a couple of hours on my way to work.
[HD2 Android Q&A, Help & Troubleshooting and Genera] gear_rus:
Good, but one question: does Russia come under "europe" part of your script, if so, will give it a try:)
[HD2 Android Q&A, Help & Troubleshooting and Genera] htc-hd2:
At the moment my GPS will fix (cold start) after +/- 70 secons.

I'm going to give your "tweaks" a go and will report back.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
I will look into it. It might be that the zips might have gotten compressed even though I told it not to, but you can take it out and use root explorer to copy out over. Will look at it in the morning, might have to replace the bad ones. Thanks for pointing this out.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Yes for now. If you have trouble let me know and I'll make one specific to russia.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
I never said gps devices send anything up.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Esaj2:
Thank you very much! I was able to get a cold GPS lock under 30 seconds. :) Second lock took only ~10 seconds. This is the first time, when my GPS actually works.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Jamaloogy:
asia.zip file bad

Asia.zip file is bad as well.. thanks
[HD2 Android Q&A, Help & Troubleshooting and Genera] htc-hd2:
I'm not using CWR, so I can not reboot into it.

I've had a look at the ZIP and I think that all that is needed is the gps.conf and a replace with the one in /etc/

Am I correct?
[HD2 Android Q&A, Help & Troubleshooting and Genera] WarlockW:
Yes .. that correct .. Just Un-Zip the file .. replace with the one in system/etc/

Make sure you set the permissions :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] jotekman:
And for all those who ask those permissions would be 755 yes? Or something else?

:)
[HD2 Android Q&A, Help & Troubleshooting and Genera] WarlockW:
I just set them to all - 777 i think its called? :/
[HD2 Android Q&A, Help & Troubleshooting and Genera] huggs:
Finally got around to testing, lock in 30 seconds. Thank you AngelDeath
[HD2 Android Q&A, Help & Troubleshooting and Genera] brainmaster:
Thanx buddy. Before your fix I had a GPS lock in 30 - 45 sec, now in less then 5 sec. It's amazing.
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
so i i flashed back to Rafdroid 3.0, today. locks really quick the first time after that about 20 to 50 secs! amazing.

heres the better part. my parents needed me to take them some paper work to this office about 30 miles away. i got the address typed in navigation. works flawlessly.it lost the gps lock about 2 times but got it back about 5 seconds later.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Wingnutt:
I have no idea what CWR is, and I cannot edit my gps.conf no matter what I try, downloaded every file explorer, Zroot or some such ****, ran everything.. no matter what I try any changes I make to the file do not stay. nor can it be deleted or moved.

Im pretty sure im screwed, not one single thing ive tried or that has been suggested has even come close to working.
[HD2 Android Q&A, Help & Troubleshooting and Genera] mwakious:
i can confirm that it works very very well in Rafdroid 3.1,good work guys!!!!!!!!

continue the great work!!!
[HD2 Android Q&A, Help & Troubleshooting and Genera] dkl_uk:
You're trying to amend your filesystem in readonly mode.

Think of it like throwing a sponge at a wall. You can do it as much as you want but you're going to get nowhere.

You need to read up on things i'm afraid. "CWR" is more often referred to as clockwork recovery. This is the latter part of your learning curve. You first need to find out how to root your phone. If you've got an Android ROM on your phone i'm surprised you don't even know about this.
[HD2 Android Q&A, Help & Troubleshooting and Genera] feloccio:
Hey i might be wrong, but in the first line of the gps.conf isnt there a ntp missing?

It says "europe.pool.org" but i think i should be "europe.pool.ntp.org"?
[HD2 Android Q&A, Help & Troubleshooting and Genera] clyder:
I also saw that, but I changed the first server to rs.pool.ntp.org since I am from Serbia, so don't know if it would make problem to leave without .ntp part...
[HD2 Android Q&A, Help & Troubleshooting and Genera] dkl_uk:
You're not wrong.

server 0.europe.pool.ntp.org

server 1.europe.pool.ntp.org

server 2.europe.pool.ntp.org

server 3.europe.pool.ntp.org

Taken from the pool.ntp.org website.

EDIT:

However...the first line is pool.ntp.org. It's the global reference.
[HD2 Android Q&A, Help & Troubleshooting and Genera] feloccio:
Wow, GPS works like a charm now. First fix within 20 seconds and after this immediate!

However i tried two methods of flashing.

First i pushed the gps.conf via root explorer to system/etc (r/w enabled). I made it even more precise editing to de.pool.ntp.org-> Didnt work. Lock time was as slow as it was before. (Even after reboot)

Second i flashed the europe.zip via Clockworkmod Recovery and it worked. Even indoors less than 20 seconds to first fix.

So maybe the update script does more than pushing gps.conf to system/etc, or maybe i did a mistake.

Anyway i recommend to flash it just like it is. Dont edit trying to make it better.
[HD2 Android Q&A, Help & Troubleshooting and Genera] htcvidi:
I did some additional tests yesterday and this morning with prj Clean Desire v0.3.2 rom and the last test script from angeldeath.

After cold restart I have never exceeded 2 minutes 30 seconds to get a fix with an average time of 1 minute.

It's really much better than before.

For me, the most important is not the time to fix but be sure to have a fix within a small specified time (2 or 3 minutes maxi) which was not the case before.

I think you made a really good job AngelDeath. Your script works fine without crash.

Tomorrow I will test at my office. There, fix time has always exceeded 10 minutes.
[HD2 Android Q&A, Help & Troubleshooting and Genera] thesniffer:
Hi mate, if you use RootExplorer to modify or to copy the gps.conf file you'll need to choose Mount R/W option in order to make any changes ;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Your both wrong.

NTP_SERVER=eu.pool.org

This is correct. It is not from the ntp.pool.org site. It is a Atomic Clock Timeserver (Read first post if you dont know what that means).

I am working on files by region to International countries, I am just waiting on feedback to the alpha script, the commands are very extensive, some may work, some may not, but I was holding back the files till I got responses on that so i didnt release 2 version. So stay tuned, Looking to have them released By the weekend.

Let me know, I dont like the idea of 2min and 30seconds, can you test the script posted against the alpha script, and let me know the time difference. Thanks.

Sorry been away for the weekend, but will be back to working on the scripts this week.
[HD2 Android Q&A, Help & Troubleshooting and Genera] yasir7:
thanx will try it
[HD2 Android Q&A, Help & Troubleshooting and Genera] htcvidi:
The results are not good this morning.

I left the phone in airplane mode overnight.

This morning I had a fix in 5 minutes in traffic.

I switched off the phone, restarted it 5 minutes later, and i've had a fix in 30 secondes.

Then i switched off the phone again for 2 hours and I did a new test near my office. At this place, there are a lot of buildings.

I've had a fix in 7 minutes.

Edit : I made a new test this afternoon at my office. 5 minutes 15 secondes to get a fix. Phone has been switched off during 1 hour and an half before.

When you ask to test 'script posted' is it the Europe.Zip script available on the first page ?

Should I leave the files of the alpha driver script or reflash to have a clean rom ?
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Actually both. First replace the gps.conf with the posted posted europe, and see if that makes a difference, this way we can see if the old script with the new drivers/files works, and with removing the alpha files manually. back to the original way it was.

I really need to find someone who is good with logging, cause when the gps status program runs I cant see when it resets the data and downloads the data.

ANYONE who is good with the logcat let me know.
[HD2 Android Q&A, Help & Troubleshooting and Genera] twilightgod:
Please post a Chinese version:D

gps_zone=cn
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
In the works.

At the moment you can attempt using Asia, or Oceania for your region.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Thank you: feloccio for your donation.

Running list at main post.
[HD2 Android Q&A, Help & Troubleshooting and Genera] slbenz:
AngelDeath,

Just letting you know that I tried the modified gps.conf file on the NexusHD2 Gingerbread v2.2 NAND build and it gets a lock. The only thing I noticed that on that build, the GPS symbol is missing but I can see that Google Maps and the Navigation app still get a lock.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Are you using all the files in the alpha script? Because I am trying to use logcat to trace the commands and see if any of them are being access and either I am doing it wrong, or I am missing something. And do you know if they are quicker,same or worse, and does GPS status work on that rom? that would give you times,more importantly first locks
[HD2 Android Q&A, Help & Troubleshooting and Genera] slbenz:
AngelDeath,

I don't think it is your script. Even when I tried my highly customized script for my area, I still didn't see a GPS symbol on this build. In general, the Gingerbread builds had issues with GPS. Your alpha script still works in my area but is not as fast as the script I created for myself. As you know, I have over 5 secondary servers located in my city and that is what I am using to get a faster lock. Also, I am using several T-Mobile GPS certificates that I found on another thread and it seems to help a T-Mobile user like myself get a faster and more stable lock the first time.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
What about the drivers and/or extra files?
[HD2 Android Q&A, Help & Troubleshooting and Genera] htcvidi:
I switched back to HyperDroidGBX which has always been a bit quicker to get a fix.

I tested this morning at my office.

Yesterday I had a fix in 7 minutes with the Clean prj Desire

Today in 2 minutes 30 seconds with hyperdroid. (sky very cloudy)

The test was done with the alpha script and gps.conf from europe.zip without any modification.

After cold restart (phone off during 5 minutes), I had a fix in 25 seconds.
[HD2 Android Q&A, Help & Troubleshooting and Genera] jaftim:
Excellent fix, thank you!

For example - I use Typhoon CM7 2.3.3 build, and US servers configured in gps.conf. I had to wait more than 5-7 min before this fix to get position, and about 1 min after the fix.
[HD2 Android Q&A, Help & Troubleshooting and Genera] slbenz:
No problem with them. I just think the Gingerbread build I was testing has this one gps symbol flaw that I saw on my phone. I think adding the extra command lines for GPS and AGPS helps quite a bit vs. any of the stock gps.conf files normally associated with any of the builds the chefs produce.
[HD2 Android Q&A, Help & Troubleshooting and Genera] htcvidi:
my recent tests with hyperdroidgbx are not as good as before.

This can take up to 15 minutes to get a fix with either the alpha script or only with the gps.conf from the first page.

I have to say that it's raining since 2 days. I don"t think it helps a lot to have a fix.

I went tonight to the Typhoons. I'll see if it gets better.
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
I got a question for you all. has anybody noticed battery drain from this.

you see i have a timeframe from what my battery should last.

i wake up, unplug my phone fromt he charger around 7 am everyday and i should be leaving school around 4 pm with about 60%-50% left.

for the past week i have been screwing aroudn changing roms and applying the gps fix, and i have noticed my battery percentage when i leave school is around 30% this was after applying the fix.

so i jsut wanted to see if anybody else is getting this problem.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Sal2708,

The problem wouldnt be the fix of the script, the script only comes into play when you load either a navigation program, like google maps, or a standalone app that doesnt use data connection. Your problem would probably be elsewhere, I would suggest installing a system monitor app that keeps track of your battery useage and check which app is using your battery the most.
[HD2 Android Q&A, Help & Troubleshooting and Genera] slbenz:
I haven't seen any changes to my battery drain using the Instantaneous GPS Fixation files. I suspect that it is probably the various ROMs you have been using. I noticed some are more battery friendly than others.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Bessonov20:
Please post a Russia version :D

gps_zone=rus

TyphooN CyanogenMod 7 v2.4.1
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
yeah maybe thats whats going on. i was going to go today with out the fix but i forgot to plug in my phone last night i woke up at 5:45 and had 14 percent. -.-
[HD2 Android Q&A, Help & Troubleshooting and Genera] anap40:
Can this be installed if I am booting my android from SD with MAGLDR?
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Yes, its not dependant on any particular way of install, you would only have to manually push the files to the phone using adb, post two has a link for that.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
I am still working on the files, so please be patient, lots of countries to cover, I will not be adding the alpha script because I dont feel its made a significant impact, and In the logcats that I have run, I havent seen access to the additional files, so more testing is needed.

I am doing the Europe countries first, USA will be broken up after I post Europe scripts.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Chronos1121:
Thank you for posting these scripts. And which region fix should I download for Turkey?
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
For right now, you would have to use Europe. But when the new scripts get posted, it would either be Greece, or I'll make one for turkey.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Chronos1121:
OK, thanks. Flashed Europe config and in GPS status it says 67 seconds until first fix. That's awsome.
[HD2 Android Q&A, Help & Troubleshooting and Genera] backie:
That's good, I lock it within 2 minutes for my first lock, thank you very much!
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Just a FYI, I have finished making all the Countries and have updated the post with the release date for Countries. USA will be delayed for a couple of weeks, since it took a very long time, much more then I expected to get all the countries done.

These are the countries:

(If you dont see your country, ask, there are a few that have no possible way of making a gps conf file due to the fact they have no active time servers in the current location).

Philippines

Malaysia

Turkey

Singapore

India

Japan

Korea

Thailand

Taiwan

China

Indonesia

Vietnam

Iran

Uzbekistan

Sri Lanka

Kyrgyzstan

Cambodia

Qatar

Austria

Switzerland

Germany

Denmark

Spain

France

Italy

Luxembourg

Netherlands

Norway

Poland

Sweden

Slovenia

United Kingdom

Finland

Ireland

Russian Federation (Russia)

Belgium

Portugal

Greece

Hungary

Bulgaria

Romania

Czech Republic

Yugoslavia

Estonia

Belarus

Slovakia

Ukraine

Lithuania

Macedonia

Moldova

Latvia

Croatia

Republic of Serbia

Bosnia and Herzegovina

Australia

New Zealand

New Caledonia

Canada

Mexico

Panama

All files will be CWR zips, if you rather to use ADB Push, then download Warlocks File (Link in post #2) and just replace the gps.conf with the one you download.
[HD2 Android Q&A, Help & Troubleshooting and Genera] D4rk50ul:
What cwm zip do you recommend for hawaii?
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
I just made this for you, from what I read, hawaii has issues, because it is not a mainland state, time servers are about 11minutes off. but I know which rom you are using, and I have yet to test to see if the gps works, from in the mean time, I made this file. its not a CWR, just download the file, and either use root explorer to replace your current one, or you can use the ADB Push file Warlock made: Link located on Post #2. I will test the rom and see if I have any success getting a lock here since it seems quite a few have problems with this rom.
[HD2 Android Q&A, Help & Troubleshooting and Genera] D4rk50ul:
Thank you very much. Didn't work at first but now I'm getting GPS lock in under 10 seconds on cold start. Almost instant after that.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
V1.1 Released, Refer to Post 1!

Post results, Good Bad or Ugly please.
[HD2 Android Q&A, Help & Troubleshooting and Genera] hg3atintin:
Cant dl Sweden from the webpage. :/
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
is it possible ot get a texas one? i get a pgs lock but quite a while. not alot too but yeah... Thanks anyway great job :D
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Just checked, no problem here, but I'm trying from a computer, but it shouldnt matter either way, try on a computer and let me know.

I wont be doing one for the 50 states, but I am working on the US next, I plan to break up the US in 6 regions: North West, South West, North Middle State, South Middle State, North East, South East.

Currently, for your location, South Midwest should work, or try the North America one, but thats more for a traveling person since it can have longer lock times since the file is much much longer.
[HD2 Android Q&A, Help & Troubleshooting and Genera] D4rk50ul:
A 1.1 hawaii file would be awesome since we aren't really part of anything. Last file is pretty good though not sure if its needed. Thanks for the work you do.
[HD2 Android Q&A, Help & Troubleshooting and Genera] hg3atintin:
Tried from my phone. Did not work there :P Downloaded from my computer now. Thanks.
[HD2 Android Q&A, Help & Troubleshooting and Genera] QuaQuaRaQuaQua:
Will this work on the MDJ 2.6 GingerBread?? (See signature)

[Edit:] Don't have CWM so i just changed the gps.conf. Big improvement :-)
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
Well that was easy to answer LOL, glad it worked Qua.

Actually I wouldnt be surprised if this worked on all Android builds and not just the HD2.

Any strays from the other forums want to give it a whirl?
[HD2 Android Q&A, Help & Troubleshooting and Genera] h20pt:
offline link

Can't download Portugal script.. link seems to be offline or something.. can you upload it again please?

Thanks ;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] htcvidi:
try to replace "http://computer-guardian.net" by "http://173.72.6.48:2549" in the url of the file.