New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
crypted
Old
(Last edited by crypted; 15th January 2012 at 05:50 PM.)
#1  
crypted's Avatar
Recognized Contributor - OP
Thanks Meter 3804
Posts: 2,469
Join Date: Nov 2007
Location: Miami Beach, FL

 
DONATE TO ME
Default AGPS Patch HTC Pure 3.1 & 2.2 | Not officially supported

AGPS PATCH FOR HTC PURE USERS
Use this if you're having GPS issues (unreliability, no functionality, etc.)

IMPORTANT: This device is not officially supported. It has a different chipset than the gps.conf patch is intended for. Further, the Froyo Android port does not have GPS available. Some users HAVE indicated this helped with the Gingerbread port. It won't hurt, but may not help.


This patch was created to provide quick GPS locking across North America. But, it has been ported into a worldwide solution for multiple devices. Using a general ROM without this has resulted in 10+ minutes of GPS delay. Also, GPS lock kept being lost. By using this patch, most people experience a GPS lock within 10 seconds (2 - 20 seconds range can be expected). Typically, a device using this patch will lock onto 7 - 9 satellites. Users have reported up to 11 satellites being locked at once. Without this patch, the average satellite count is 4.

HOWTO INSTALL:
Method 1:
1. Download the "ADB Push Installer". This contains all versions for the latest build and old v1.3 versions.
2. Extract the files into a specific folder.
3. Plug your device into the computer and get it ready for adb pushing. Nothing out of the ordinary required.
4. Open the batch file called "ADB Installation Script - RUN THIS".
5. Select the version you want from the list.
6. Follow the prompts to reboot. You're done.
(Thank you eagleeyetom for helping make this possible!)

Method 2:
1. Download the patch
2. Copy gps.conf and suplrootcert into /etc/ of the system (not sd-card) using ES File Explorer, Root Explorer, or some other form. You must have SYSTEM set to Mounted and Root enabled. Check your explorer app's SETTINGS to do this.
3. Reboot the device
4. Review the NOTE section in Post #2.

Method 3 (easiest if you use a compatible version of CWR or CWM)*:
1. Download the patch
2. Boot into CWR (Clockwork Recovery)
3. Mount /system/ partition (on the main menu, select the "Mounts and storage" option, then "mount /system")
4. Flash the patch (on the main menu, select "Install zip from sdcard," then "choose zip from sdcard," and find the zip and select it)
5. Reboot the device
6. Review the NOTE section in Post #2.
*This was built for and works on Inspire 4G and DesireHD versions of Clockwork Recovery. The Google CWM Flashable Build has binaries known to work with CWM on the X8. It may work on other devices. Please message me your success if you try and flash with recovery version and phone model as part of the message.


Downloads:
There are many new builds available. The 1.x trunk only flashed a gps.conf file. Starting with 2.x, more comes along with the package. This provides the SUPLROOTCERT that many ROMs seem not to have. I prefer the Google Specific version myself.
IF you have issues with v2.x or v3.x, your ROM might require more variables. Try the old worldwide v1.3 version in this instance.

3.x trunk (currently v3.1)
Download the ADB Push Installer here. (contains all current builds and v1.3 builds) (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the Google Specific build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the Google Specific Alternate* build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the Google Specific CWM Flashable build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the AT&T Specific build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the T-Mobile Specific build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the LG Phone Specific build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the LG Phone Specific Alternate* build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the Sony Ericsson Specific build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the GPS.CONF only build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the GPS.CONF only Alternate* build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
*The alternate patch removes a variable that some GPS hardware on older models cannot handle. Try this if you have problems with the standard patch.

2.x trunk (currently v2.2)
Download the ADB Push Installer here. (contains all current builds and v1.3 builds) (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the Google Specific build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the Google Specific Alternate* build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the Google Specific CWM Flashable build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the AT&T Specific build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the T-Mobile Specific build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the LG Phone Specific build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the LG Phone Specific Alternate* build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the Sony Ericsson Specific build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the GPS.CONF only build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
Download the GPS.CONF only Alternate* build here. (Like it? Don't forget to click on "Thanks" and to rate the thread)
*The alternate patch removes a variable that some GPS hardware on older models cannot handle. Try this if you have problems with the standard patch.


Changelog: (I'll try to keep this correct and current)
Code:
v3.1(HELP WITH THE MAINTANENCE COSTS - DONATE A FEW BUCKS)
introduced my own NTP pools
repaired the LG Alternate build (was same as standard build, compilation error)

v3.0 (HELP WITH THE MAINTANENCE COSTS - DONATE A FEW BUCKS)
based on v2.2 configuration
has my own XTRA/AGPS server instead of Qualcomm
re-added two AGPS variables from v1.3   (two beta-testers saw instant results with these re-added)
re-added on USE SUPL variable from v1.3   (two beta-testers saw instant results with these re-added)
variables are now divided into sections and sections have descriptions
Code:
v2.2 (additional builds added)
added a new SUPL version using data from Sony Ericsson
added an alternate release using LG SUPL servers
added an alternate release using Google SUPL servers
updated the ADB PUSH to include new versions
fixed broken download links for the patch

v2.2
removed local AGPS variable
removed local XTRA_SERVER variable
created LG Build with LG SUPL servers (some LG ROMs fail to work with non-LG SUPL servers)
reduced redundancy in NTP and XTRA (unnecessary entries)
added newly located SUPL server to T-Mobile build

v2.1 (encompassing changes between 1.3 to 2.1)
removed two NTP server pools
removed xtra1 server
removed multiple SUPL_HOST entries
aligned SUPL_HOST with SUPLROOTCERT in each package
increased QOS timeout from 89 to 100
removed QOS standalone timeout variable
removed extra AGPS variables

Old Versions:
3.x Trunk:
v3.0 ADB Push Installer
v3.0 Google Build
v3.0 Google Alternate Build
v3.0 Google CWM Build
v3.0 AT&T Build
v3.0 T-Mobile Build
v3.0 LG Build
v3.0 LG Alternate Build
v3.0 Sony Ericsson Build
v3.0 GPS Only Build
v3.0 GPS Only Alternate Build

2.x Trunk:
v2.1 Google Generic Build
v2.1 AT&T Specific Build
v2.1 T-Mobile Specific Build
v2.1 GPS.Conf Only Build
v2.1 GPS.Conf Only Build (alternate)
v2.0 Google Generic Build
v2.0 AT&T Specific Build
v2.0 T-Mobile Specific Build
v2.0 GPS.Conf Only Build
v2.0 GPS.Conf Only Build (alternate)

1.x Trunk:
Worldwide 1.3
Worldwide 1.3n (alternate)
North America 1.2
Worldwide 1.2
Worldwide 1.2n (alternate)
North America 1.1
Worldwide 1.1
Worldwide 1.0 (not recommended)
North America 1.0 (not recommended)


NOTE(S):
  1. I recommend the GOOGLE BUILD of all trunks. However, you can use any build with any phone. You may have good luck with specific builds that do not fit your phone or carrier criteria. If you're curious, test it and see.
  2. This works with ANY ROM unless the ROM has aGPS and/or GPS disabled in the code. This happens with CMx nightlies and some betas! I cannot fix this, neither can you.
  3. Remember, this has to be reflashed when you update or change ROMs.
  4. CMx ROM users may not experience benefits from this patch. However, we have had good reports from CM users with one negative one. Remember to do all of the steps when flashing and the following notes are important too!
  5. Reports show that certain ROM's including some CM builds require a modification in the build.prop. You need to change "ro.ril.def.agps.mode = 2" or "ro.ril.def.agps.mode = 0" to be "ro.ril.def.agps.mode = 1" in order for aGPS to properly function. Only do this IF YOU ARE HAVING PROBLEMS after attempting the standard patch.
  6. Your phone "learns" about the individual GPS satellites. This is part of the aGPS design. Don't be surprised if the first time you use GPS Status that it takes 20+ seconds to "lock".
  7. I have read a lot that indicates that it is best to let your GPS run using any application for a while to "learn" aGPS information. I let GPS Status run for about 10 minutes (it has an option to disable the screen timeout, which I do) each "first time" to learn. I say each because I test a lot of tweaks and fully reset/delete GPS cached information to start retesting.
  8. Remember, this has to be reflashed when you update or change ROMs. Each ROM will have its own gps.conf, normally not suited to all devices.
  9. I use GPS Status to test my signal strength. It isn't 100% accurate, but it gives a very good sense of how the GPS is performing.
  10. IF you have issues with GPS locking in v2.x or v3.x, your ROM might require more variables. Try the old worldwide v1.3 version in this instance. It has been observed that some ROM's do not have SANE values for missing variables.
  11. If you're wondering why GPS is slow on certain apps? Or, you show up as on a street when you're 6 meters away from it? Well, those apps process GPS data differenty and is out of anyone's control except the app developer. Certain apps will force your location to a street until you pass the app error theshold. Food for thought.
  12. DO NOT USE any other GPS FIXING SOFTWARE with this patch. If you do, and you still have problems, I cannot help you. A number of these Apps will overwrite what my patch does dynamically.
  13. Variables are described starting in v3.0. Open up gps.conf in a text editor to read about what variable sections are for. It isn't in-depth, but should be enough to help you get a general understanding.
  14. Still having weak GPS reception? Take your case off. Cases have been known to affect signal, though some argue against it. Personally, I get 3 more sat's when I remove my case.
  15. There is a reported variable that can cause some GPS units not to work as well as it should with this patch. This is very odd as it's hit-and-miss and only seems to cause problems on less than 10% of handsets. This doesn't mean it screws up anything! It's possibly an older piece of GPS hardware incompatible with this variable. Have no fear, v1.2 will remove this variable for the worldwide version. This issue is more prone to occur in DHD.
  16. Tried taking the battery out for 30 seconds? Some have reported that their phone required the battery to be removed. First, power off the device. Second, remove the battery for 30 seconds. Third, put it back in and give it a try. I cannot explain this except for possible cache clearing.
  17. Some Inspire 4G and DHD devices have hardware problems. There is a known problem that the spring connectors to the GPS antenna sometimes are out of place or quit touching. http://forum.xda-developers.com/show....php?t=1101066 provides a video on self-repair.

AGPS Patch Officially Supported Devices:
HTC Inspire 4G
HTC Desire HD
HTC Sensation
HTC Incredible S
Acer Iconia
LG Optimus One
Sony Ericcson XPERIA X8
HTC Salsa
HTC Flyer
HTC Evo 3D
*This works on over 15 other devices, at least with certain ROM configurations. I do not officially support those devices as of yet. You may private message me your success story for official support considerations.

(For v1.0) Thanks to Angeldeath for permitting me to take his work and start tweaking it for Inspire users across the continent. Angeldeath made a great series of AGPS patches designed for his HD2 which essentially updated the gps.conf to speed up the locking process. However, those scripts are based upon regions for USA and no general support for North America after v1.0.
 
crypted
Old
#2  
crypted's Avatar
Recognized Contributor - OP
Thanks Meter 3804
Posts: 2,469
Join Date: Nov 2007
Location: Miami Beach, FL

 
DONATE TO ME
Currently: this is a tentative supporting thread for my aGPS patch. Assuming more report success, I will start officially supporting this device.

Please let me know your success rates. Thus far, a few people have sent me messages and emails stating that this patch works great on this device.

As such, I'm thinking it would be good to provide this officially for this device.

This has been used on over 40 devices successfully. I don't offer official support for all devices. Rather, I offer official support once users convince me to do so for that particular device. That happened here.

Statistically, here is part of my post from mid-December on all official threads:
Quote:
So, let me give you a general update directed to those 3.x trunk users:
  1. My server has automatically generated an xtra.bin file for your GPS excitement 3,980 times since September 26th when the first beta went online to test it out.
  2. My server attempts to build a new version every 30 minutes. Depending on what it can decypher from other xtra.bin sources, it provides a totally fresh xtra.bin approximately every 1.2 hours.
  3. My server has served up over 500,000 xtra.bin files to users like you on XDA since v3.1 was released.
  4. My server continues to provide a reliable NTP pool to v3.x users by directing your phones to a handful of RELIABLE and FAST-RESPONDING NTP servers around the world. This ensures you can travel and not have to switch NTP pools.
Enjoy!
 
arrrghhh
Old
(Last edited by arrrghhh; 12th January 2012 at 11:35 PM.)
#3  
Retired Forum Moderator
Thanks Meter 2199
Posts: 8,794
Join Date: Feb 2007

 
DONATE TO ME
Wow, so have you tested this on the TD2? Does it work on any other devices?

You know this is a Windows Mobile device running Android, correct? I'd be curious if any other devices in the port work...

Edit - I don't even know what to do with this, it just seems to be a gps.conf file and a cert... I find it hard to believe that's all that is missing from our port, but I guess it's possible.
 
crypted
Old
#4  
crypted's Avatar
Recognized Contributor - OP
Thanks Meter 3804
Posts: 2,469
Join Date: Nov 2007
Location: Miami Beach, FL

 
DONATE TO ME
Quote:
Originally Posted by arrrghhh View Post
Wow, so have you tested this on the TD2? Does it work on any other devices?

You know this is a Windows Mobile device running Android, correct? I'd be curious if any other devices in the port work...

Edit - I don't even know what to do with this, it just seems to be a gps.conf file and a cert... I find it hard to believe that's all that is missing from our port, but I guess it's possible.
As you would find, there are 9 officially supported devices which have had many people using it. This device, here, is one that some are swearing makes GPS work very well (better) than it was working before.

It was requested and I offered to bring some support tentatively. If it showed to be valuable to the Android port, I would keep following up as officially supported.

I don't own the device and relied solely on others who kept telling me about it over the past few days.

Yes, it's a gps.conf and a cert. Certs are matched with their SUPL carriers. Further, the gps.conf is tweaked. Lastly, and my favorite, it uses my own NTP pool and my own XTRA.BIN service if the user chooses the 3.x branch.
 
arrrghhh
Old
#5  
Retired Forum Moderator
Thanks Meter 2199
Posts: 8,794
Join Date: Feb 2007

 
DONATE TO ME
Quote:
Originally Posted by crypted View Post
As you would find, there are 9 officially supported devices which have had many people using it. This device, here, is one that some are swearing makes GPS work very well (better) than it was working before.

It was requested and I offered to bring some support tentatively. If it showed to be valuable to the Android port, I would keep following up as officially supported.

I don't own the device and relied solely on others who kept telling me about it over the past few days.

Yes, it's a gps.conf and a cert. Certs are matched with their SUPL carriers. Further, the gps.conf is tweaked. Lastly, and my favorite, it uses my own NTP pool and my own XTRA.BIN service if the user chooses the 3.x branch.
Well our port doesn't even have the userland libraries for proper XTRA support. So no offense, but I honestly don't see how a gps.conf file could magically fix all of our problems...

Unfortunately our issue is quite complex - much more so than a native Android device...

Edit - I'm still going to try this on a Rhodium, but I'm not hopeful. I got all excited at first tho .
 
crypted
Old
#6  
crypted's Avatar
Recognized Contributor - OP
Thanks Meter 3804
Posts: 2,469
Join Date: Nov 2007
Location: Miami Beach, FL

 
DONATE TO ME
Quote:
Originally Posted by arrrghhh View Post
Well our port doesn't even have the userland libraries for proper XTRA support. So no offense, but I honestly don't see how a gps.conf file could magically fix all of our problems...

Unfortunately our issue is quite complex - much more so than a native Android device...

Edit - I'm still going to try this on a Rhodium, but I'm not hopeful. I got all excited at first tho .
Let me know how it goes. I will followup with the people who had "success" reports. That's intriguing to assume that the libs not being present would add benefit.

Give it a go and let me know just for the hell of it if you wouldn't mind. And if it works on Rhodium, cool.
 
Entropy512
Old
(Last edited by Entropy512; 12th January 2012 at 11:49 PM.)
#7  
Elite Recognized Developer
Thanks Meter 21120
Posts: 11,602
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
There is 0 XTRA support in XDAndroid, unless someone has made some MAJOR patches since I last touched the GPS code.

Similarly, I'm 90% positive the SUPL interfaces are nonoperational.

What works on a native Android device isn't necessarily going to work on a port with incomplete functionality.

Someone wrote an improved GPS library for the HD2 which should be backportable to XDAndroid that might give XTRA support (SUPL is a different story - it looks like SUPL might need some RIL cooperation and that stuff is highly undocumented.)

Right now the only way I know to get good GPS performance in XDAndroid is to "preload" the chip by getting a GPS lock in WinMo prior to running HaRET.

Edit: Were you getting reports from GBX0B users or FRX07 users?

It looks like the Gingerbread codebase might be majorly overhauled.
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
crypted
Old
#8  
crypted's Avatar
Recognized Contributor - OP
Thanks Meter 3804
Posts: 2,469
Join Date: Nov 2007
Location: Miami Beach, FL

 
DONATE TO ME
Quote:
Originally Posted by Entropy512 View Post
There is 0 XTRA support in XDAndroid, unless someone has made some MAJOR patches since I last touched the GPS code.

Similarly, I'm 90% positive the SUPL interfaces are nonoperational.

What works on a native Android device isn't necessarily going to work on a port with incomplete functionality.

Someone wrote an improved GPS library for the HD2 which should be backportable to XDAndroid that might give XTRA support (SUPL is a different story - it looks like SUPL might need some RIL cooperation and that stuff is highly undocumented.)

Right now the only way I know to get good GPS performance in XDAndroid is to "preload" the chip by getting a GPS lock in WinMo prior to running HaRET.
Again, I'd reference my post just above yours in response to arrrghhh.

I find this response from you guys to be very amusing in the sense that if the software libraries aren't present, someone found success.

Let us assume that you cannot support SUPL or XTRA. I wonder if some of the variables were the result of the success.
 
Entropy512
Old
(Last edited by Entropy512; 13th January 2012 at 12:14 AM.)
#9  
Elite Recognized Developer
Thanks Meter 21120
Posts: 11,602
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
You have a bunch of "user reports" with no details, concerning an area (gps.conf) where 90% of the "fixes" people post are pure unadulterated placebo effect - Froyo? Gingerbread?

There's NO way that any SUPL or XTRA changes did anything on a Froyo build. I've read through the entirety of the source code for the GPS driver and I can tell you, without any doubt, there is not a shred of working SUPL or XTRA support. Gingerbread is a different story. Maybe these changes are useful on a Gingerbread build.

If these had an effect on Froyo, it was 100% pure placebo effect - the user likely locked in WinMo before booting xdandroid and attributed the success to gps.conf tweaks and not the fact that the GPS was preinitialized in WinMo.
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
crypted
Old
(Last edited by crypted; 13th January 2012 at 12:21 AM.)
#10  
crypted's Avatar
Recognized Contributor - OP
Thanks Meter 3804
Posts: 2,469
Join Date: Nov 2007
Location: Miami Beach, FL

 
DONATE TO ME
Quote:
Originally Posted by Entropy512 View Post
You have a bunch of "user reports" with no details, concerning an area (gps.conf) where 90% of the "fixes" people post are pure unadulterated placebo effect - Froyo? Gingerbread?

There's NO way that any SUPL or XTRA changes did anything on a Froyo build. I've read through the entirety of the source code for the GPS driver and I can tell you, without any doubt, there is not a shred of working SUPL or XTRA support. Gingerbread is a different story. Maybe these changes are useful on a Gingerbread build.

If these had an effect on Froyo, it was 100% pure placebo effect - the user likely locked in WinMo before booting xdandroid and attributed the success to gps.conf tweaks and not the fact that the GPS was preinitialized in WinMo.
I'm not trying to get in a pissing match here. I was actually agreeing with you all that if there isn't support there, then there would be as you say now a "placebo effect" if there were anything.

I'm only wondering if it would be possible that the other modifications in the gps.conf aside from the SUPL or XTRA would explain the better performance.

If that is a negative, then it definitely would seem placebo. This was an offering of tentative support to help users wanting to go Android from WinMo based on others experiences.

Sorry to have stirred the pot. If someone out there has tried this patch and had success, feel free to explain it. I've asked those to do so as well so my curiosity can be set to rest.

EDIT: And it would appear that the Gingerbread port was the intended one for supported success. So, there goes that for your other point.

Tags
gps, lock, satellite, supl

XDA PORTAL POSTS

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more