(Depreciated version as of v1.3. v1.2 was last release. See page on A-GPS Worldwide Patch.)
If you have an Android phone that has issues locking onto GPS satellites, or staying locked, you probably have a bad gps.conf file. Below is a great gps.conf file I compiled to get the signal quickly and lock onto the signal properly. This works 100% with Inspire 4G and Desire HD devices.
Remember, you have to have rewrite access to the system-root, and will have to edit the /etc/gps.conf file. However if you have Clockwork Recovery, you can flash the ZIP at the bottom of this post to have your system patched immediately.
This is the gps.conf:
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
NTP_SERVER=0.north-america.pool.ntp.org
NTP_SERVER=1.north-america.pool.ntp.org
NTP_SERVER=2.north-america.pool.ntp.org
NTP_SERVER=3.north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_USER_PLANE=TRUE
REPORT_POSITION_USE_SUPL_REFLOC=1
QOS_ACCURACY=50
QOS_TIME_OUT_STANDALONE=60
QOS_TIME_OUT_agps=89
QosHorizontalThreshold=1000
QosVerticalThreshold=500
AssistMethodType=1
AgpsUse=1
AgpsMtConf=0
AgpsMtResponseType=1
AgpsServerType=1
AgpsServerIp=3232235555
INTERMEDIATE_POS=1
C2K_HOST=c2k.pde.com
C2K_PORT=1234
SUPL_HOST=FQDN
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
ACCURACY_THRES=5000
CURRENT_CARRIER=common
If you're in a different region of the world and still have problems with this patch, edit the NTP servers to your continent and/or country-specific time servers.
You can download the patch at XDA for these devices: Inspire 4G & Desire HD.
DISCLAIMER: I am not responsible for any problems you cause your device by making changes. Be careful when "hacking" or "rooting" your phone as this does void your warranty.
Thanks goes out to Angeldeath for his work no XDA for the GPS issues of Android on the HD2. His work gave me a base to start from!