yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] crypted:
First, I want to with everyone a very happy holiday season. I will be sporadic with my responses to any questions or comments here on the aGPS Patch threads for the next three to four weeks.

Things to think about if you're having an issue:

Read all of the Notes Section commentary. I wrote that because so many people continually have the same or similar issue that can be easily resolved.

Remember that any GPS tools from Android Market CAN and usually DO overwrite this patch. Therefore, don't use any. The only thing I recommend if you're wanting to get stats is GPS Status, as referenced hundreds of times by yours truly.

If your getting a weak signal: remove the phone from a case and try again. Try a different ROM as CM users and ROMs derived from CM tend to show problems because of faulty ROM compilation, not this patch. Ensure your build.prop has the right variables. Go outside, try again. Lastly, delete the SUPL server section from the bottom of the gps.conf and try without that. Some models with some ROMs have issues with SUPL...outside of my control.

Post and wait for someone to respond. I'll do my best to get on the forum off and on over the holidays.

So, let me give you a general update directed to those 3.x trunk users:

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. :eek:

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.

My server has served up over 500,000 xtra.bin files to users like you on XDA since v3.1 was released.

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.

If you're a DEV and this is used in your ROM, please notify me via private message with a link to your ROM thread. This helps me track issues and keep you up-to-date with any new versions. We both win there!

Finally, if you use v3.x you should remember this isn't free to me. As all of the information above notes "My server...", I foot the bill to keep supplying this data. It's useful as hell to you and to me. :D

Consider donating a little to help offset server costs

AND

to help expand provisioning should enough donations come in. You can donate via Paypal by clicking the donate button next to my username on this or any of my posts. Every little bit helps. If you can't, I understand that as well. :o

Again, thanks everyone. Don't forget to click the Thanks button on my posts should you enjoy what I've got to say...like those amazing numbers cited above for 3.x users.
[HTC Sensation] KCuadrado:
Crypted, I can't see your PayPal donation thingy. Please pm me for a donation or say it here.

Sent from my HTC Sensation 4G.
[HTC Sensation] crypted:
Thanks for your consideration. I copied the link URL from the donate image that XDA generates automatically. It is http://xdaforums.com/donatetome.php?u=700051 and the top should show my Paypal email address as a @derekgordon.com email address.

Thanks again! ;)
[HTC Sensation] KCuadrado:
There you go, not much but you can buy some beers or something with it. Confirmation number: 6TL33539XB710723S

Sent from my HTC Sensation 4G.
[HTC Sensation] timoskrempel:
I tried the 3.x and the 2.x version with a new and stock TMOUS HTC Sensation 4G and the GPS locks very quickly. But I noticed a strange problem that went away when I went back to the stock gps.conf:

The phone is and stays connected to wifi and 3g after the first use of GPS (according to the status icons next to the time). Any idea why this happens and what to do about it?
[HTC Sensation] crypted:
That makes no sense to at all. This patch wouldn't change anything to affect data connections. It only tweaks your GPS units configuration.
[HTC Sensation] 4D3:
Can this be used on ICS roms?

Sent by gremlins from space training to be ninjas!!
[HTC Sensation] kpjimmy:
You can try it. All that needs to be replaced is the gps.conf file. The suplrootcert is optional, but I always delete it in my experience.

Just back up your current gps.conf file to revert back to it. Also if you are just copying it over from an extracted file, please take note of the permissions used in the old gps.conf for the new one.

I haven't needed to replace my current file in the Virtuous ICS rom. GPS locks in pretty fast for me. But I am in the US though.
[HTC Sensation] timoskrempel:
I was surprised too. My only explanation would be, that it for some reason decided to use the mobile network to download agps data. Maybe because I used the google config on a TMO rom, who knows.
[HTC Sensation] crypted:
Both files would use data connections for agps data retrieval.
[HTC Sensation] phantomblu:
What's the difference between this and the method here: http://xdaforums.com/showthread.php?t=1239713

Is this one better?

Edit: Tried it. It's faster, but the accuracy is way off, it shows my location in another state. I'm using the google build of 3.x. Any way to fix this?
[HTC Sensation] crypted:
Uh that means you are not using agps at all. In other words, your current ROM may be disabling agps usage even though the patch finds satellites. Try another ROM.

Also, the notes section discusses how some gps fixing apps override this patch I offer.

Lastly, play with the build.prop discussed in the notes section if you are certain the ROM is good to go.
[HTC Sensation] phantomblu:
I don't have any gps fixing apps, unless gps status counts. The gps file from the other thread works, so I don't understand why this one is wacky.
[HTC Sensation] crypted:
Yeah being that the one you reference is a rip from my v1.3 if I recall! Been a number of months though. Feel free to try that one for fun.
[HTC Sensation] zcdg:
The best working is simplest gps.conf file that suplied with official 2.3.4 ROMs - 232bytes file. The best compromise between speed and accuracy and stability. All this additional settings just make GPS to become crazy. At least with ROMs made on base of official(2.3.4 sence 3.0), not test HTC roms. Have tested a lot of ROMs and different apps and settings for longer time. Simple original 232 bytes gps.conf is the best.
[HTC Sensation] crypted:
Each person is entitled to their own opinion. Also, each person may experience different results for a number of reasons aside from ROMs and gps.conf files used.

Hundreds of thousands of downloads of this ROM with over 300,000 downloads of the xtra.bin file daily (3.x users) suggest this is working fine for many. Not only that, but many ROM devs incorporate this in their ROMs.
[HTC Sensation] crypted:
All threads have had an overhaul that was way overdue.

High points:

Note discussion of what the patch does and what it replaces.

Note confirming ICS support from various users.

Note section has gotten long, but covers most questions I am repeatedly asked.

A total of 9 officially supported new devices.

Download section reminds people to backup their settings. You only need to backup /system/etc/gps.conf and /system/etc/suplrootcert if you have one. But, I never had to revert!

As always, please don't forget to click Thanks if you use or like this patch -AND- don't forget to Rate the thread.

Donations

are always welcome.
[HTC Sensation] crypted:
FYI: Method 1, the easiest of the methods for those unfamiliar with file managers or recovery, has been updated. Some people required that the script also mount the partition. I have added that line to all options available and updated the ZIP file. Thanks

enigmaamit

for confirming that the new PUSH script works.
[HTC Sensation] GavTheStoner:
Just flashed this onto Trips cm9 rom and it speeds up GPS massively.

Locking 4 / 5 sats INDOORS within seconds! Very nice. Thanks very much. :)

*The first lock was a bit screwy - it thought I was in manchester when im in the south west of the UK lol. But now it works great!
[HTC Sensation] mgorman:
Tried the google patch but I still am.having trouble locking onto my location. it finds the satillites and connects but never locks my position
[HTC Sensation] crypted:
Did you read the Notes Section? This would lead you to your probable solution.

Some of those Notes refer to the following:

Are you using a case?

Have you rebooted the phone? Cold boot? Pulled battery and rebooted after a few seconds of the battery being out?

Do you have any other GPS fixing software installed such as GPSFix, Fasterfix, etc.?

Have you ensured that it is not your ROM causing the problem by testing other ROMs?

You really should give us more information than a simple statement that you are having a problem and wanting us to help you.
[HTC Sensation] mgorman:
I apologize.

Yes I use a case. My GPS has worked before in my case

I've rebooted the phone but haven't done a battery pull

The only other GPS software I have is GPS Status and I don't think that counts as a fixing tool

I have not tested other ROMs because I have had GPS working on this ROM in prior versions (unless something has changed, but I don't know what would change that would cause GPS to stop locking on)
[HTC Sensation] crypted:
So it was working before? What did you do before it stopped working? All you did was upgrade your ROM? What about the RADIO? Did it need updated as well to work with ICS?

And, are you sure the agps patch installed? You can find out by opening /etc/gps.conf and confirming. It will have a lot of #####'s in it if it's mine.

EDIT: The ROM you have in your signature used to have this patch built into it before it went to ICS. I sent the dev a message to see what's up with that and if it's still present. The thread does not indicate it being included anymore.
[HTC Sensation] mgorman:
All i've done since the time it was working til now was just install the newer versions of the rom. I'm pretty sure it was ICS when it worked last. Also, the patch did go through.
[HTC Sensation] crypted:
Odd enough. There have been tons of ICS success confirmations with this patch.

Now, did you install any new Market apps around the time it stopped working? Do you use anything like Backitude (which I love) that can "steal" location data?

Try another Maps program like Yahoo! or whatever to be certain we're not having Google Maps problems.
[HTC Sensation] mgorman:
Well my gps status doesn't lock either and no I haven't installed any new apps
[HTC Sensation] crypted:
I'd suggest trying another ROM. Do a quick backup of your files with Nandroid and try another out to make sure.

Also, I am messaging you privately with a link to a beta build for a new variant to this patch. We can try that but I doubt it will work in this instance based on your description.

We cannot go further if we cannot rule out ROM issues since all other answers seem on target.
[HTC Sensation] chukis13:
Wow! Just installed this and holy **** that locked fast! Hitting thanks!
[HTC Sensation] jayyo:
Just thought I'd post my experience. I initially flashed the google specific version. GPS status seemed to work somewhat better, but it would still take about 20 seconds to lock. I tried changing build.prop ro.ril.def.agps.mode = 1 (from 2) since I'm on CM7 alpha 10. It didn't seem to help. Tried powering off and pulling the battery. That didn't change anything.

Decided to try the Tmobile version. Flashed it with Ext4 Touch recovery, powered off the phone, pulled the battery, rebooted the phone. Fired up GPS status, it took awhile to lock. The next time I ran GPS status. It locked on to 8 satellites in a couple of seconds. WOW! I've never seen it lock so fast! :eek: I had no idea this was possible. I'm getting between 6 - 10 satellites indoors, with my case on.

Thanks for your work!
[HTC Sensation] raysacr:
What app are you guys using to show how fast and how many sats lock in? GPS status doesn't show me anything
[HTC Sensation] crypted:
That's the app of choice. Does it show literally nothing? Are you sure GPS is working?
[HTC Sensation] Spr33y:
GPS Test from market. And we're using "fast" as a relative term.
[HTC Sensation] jesterpaul:
I did exactly as you have explained, and I went from seeing none or only one satellite, with no locks with ROM as per my signature initially; and getting no change with Google specific version, to seeing 8 satellites with Tmobile version.

THANKS HEAPS MAN!:D

Suggest other Insert Coin current ICS ROM users try this
[HTC Sensation] raysacr:
Nvm, I got it now.

WOW. Fixed onto 8 sats in 44s while INDOORS. AMAZING
[HTC Sensation] dirtyreturn:
I'm having a difficult time locking on to any satellites. I'm coming from a Mt4g and have used your post from the desire/g2 I believe with great success. The phone can maybe recognize 2-3 and the hangs there then drops back to zero. If you could help me out I'd appreciate it. If you could tell me what information you need I will try to get it.
[HTC Sensation] crypted:
What ROM? What radio? Using a case? What kind of surroundings and general location?
[HTC Sensation] dirtyreturn:
It took an unusually long start, and rebooting the phone once or twice. It suddenly locked on incredibly fast. Did my phone need to adjust? It works perfectly now. Sorry for the inconvenience.
[HTC Sensation] crypted:
Yeah bad cache probably cleared out after that...
[HTC Sensation] KCuadrado:
I've been using this since the first version with my HTC Sensation and it has a 2 in 1 case (It's called Vertex). This is what I get inside a living room near a wall while using the case.

At first it will be looking for satellites for 2-5 minutes but then it will work faster. Also, if I turn GPS off, when I turn it on again it doesn't lock instantly like when you download agps-data with GPS status.

Anyway, I encourage everyone to use this. Crypted has done a great work here, and I just wanted to share my good results. (Once again)

View attachment 921443
[HTC Sensation] Sneakyghost:
Thanks. I was referred here by Dunc001 from Team Blue Droid in HD2 Android section. I am having difficulties with Navigon Select losing GPS from the System. Meaning: System does not lose GPS but Navigon cannot read it anymore after a while. Usually after about 10-20 Minutes.

What i noticed after flashing this modified Config is mainly that the Phone locks 9 satellites indoors (well got roof windows here xD ) and the fix was rather quick with under a minute. So that seems to be good.

Wonder how it is with the GPS being dropped by some apps. I doubt a different config would change that.

I will report back after knowing more here.
[HTC Sensation] crypted:
Definitely sounds like LIB files and not .conf files causing your issue. Let me know if you figure it out for future references.
[HTC Sensation] Sneakyghost:
OK Crypted i am very amazed by your work here. This is my report after a 70 k continuous drive:

Navigon does NOT drop signal anymore. It works rock solid.

GPS locks 11-12 satellites in car but out of town. Rural flat land. Clear skyview. Light clouds.

Two questions:

1: why is the GPS_CLEANUP_ENABLED=0 fix for GingerBread not integrated? To my knowledge, it is a bug inside the GingerBread System that makes the Switching a pain, thus it generally is a good idea to disable the engine shut down. Please fill me in if you got more knowledge on this matter. I disabled the Cleanup manually now (modified your Config with that line at the bottom).

2: obviously, you have quite some server costs to cover. What happens to the patch users if it don't work out for you anymore one day? are they being notified? will you provide info on a good xtra.bin and ntp server? will your patch just be useless then? I find user contributed servers a nice thing but it also adds some question marks. Problematic. You thought through this already?
[HTC Sensation] crypted:
Glad it is working for you.

1. I'm not aware that this would be needed unless there were actual issues with a particular chipset or LIBs. I may play around with it and see, but this patch works amazingly as is so there really isn't a need to cause more work for the phone/tablet if it's working already.

2. I will always own my domain name, thus the NTP pool will always exist. I appreciate donations to help offset hosting and bandwidth costs for the xtra.bin file I serve. I don't intend to just stop, so I don't have a policy of notifying anyone. I believe that in the next two years we will no longer need this patch as better hardware and kernel/ROM software comes along.

That being said, v2.x is exactly identical to v3.x but uses NTP.ORG and Qualcomm servers rather than my own. If you try it out, you'll see it under performs compared to mine. :D
[HTC Sensation] bigkris74:
WOW!!

Tried the Google 3.1 manual copy mod on my Sensation ARHD 6.5.0 ROM.

Now I thought my GPS fix was pretty good before but this mod has made it LIGHTNING fast now, literally within seconds. Great work!

Will be trying on my Team EOS flashed Xoom when I get home.

This should be in every ROM.

Have a beer on me. :)

Confirmation number: 8GT49743DV7766426
[HTC Sensation] crypted:
Thank you! That donation will go directly to support the server costs.

A new variant will be released in a week or so. The testing community has had phenomenal results with it as I have.
[HTC Sensation] Sneakyghost:
Perfect reasoning on Number 2. That got me :D

Concerning Number one: it does work very well but the switching on Gingerbread is a very well known issue and happens on most ROM's for the HD2 i have seen. It might not apply to other devices, yet i think it was meant to effect all GB builds regardless of the hardware.
[HTC Sensation] crypted:
Okay, here's the quick summary for #1. I will not include it in any build because there is major issues with refresh rate changes and battery drain when it is enabled. I made a test build with that variable and had it tested on four different devices. The accuracy was not altered, but the refresh rate of incoming GPS data appeared to increase. This increase probably caused the rapid battery drain compared to not using the variable, thus not having such high rate refreshes.

I'll try and make a Note next week about this variable. But, you're the first to bring it up so I'm not sure that all HD2 people need it?
[HTC Sensation] Sneakyghost:
Thanks for this decent testing and the time U put into it. This sheds some light onto the issue from quite a new perspective. Very Interesting. Unfortunately I haven't gotten the time to look up the discussions on this switching issue but I think U can read it up on tytung's gps libs for the HD2 thread mainly.

I think it might actually be affecting the HD2 GB Builds only and maybe even just those that use tytungs libs. But i am very very sure i have read several explanations that GingerBread has issues with switching the GPS engine on and off regardless of the libs being used. It can be switched on, then off but not on again. For this reason, people issue the gps1_cleanup line as a workaround. Not a fix, just a workaround.

OK Crypted, this is the Commit Tytung refers to in his thread: https://github.com/android/platform_frameworks_base/commit/0a5098106c116f2b67c9e77e4ec0afbc92acd61c

There you can see the fix for this GingerBread bug. It has been committed 1 year ago. I am very much a newb on these things so i am not sure if you can do anything with this information. I cannot even find out to which Android versions it applies to (appart from it being a piece of GB Code).
[HTC Sensation] crypted:
Just a friendly notice that the thread has been updated.

There is a new build which I recommend. Before questioning or inquiring why I removed the use of SSL, review the NOTE on the matter. This has proven to be a faster operation by tests in various regions and numerous devices. ;)

Lastly, I added a section for asking questions. Review that before communicating here. It gets really old seeing that people refuse to read what I've worked hard to write especially when it usually answers the questions asked.

Don't forget to consider donating if you appreciate the work and find it useful. :D
[HTC Sensation] dyval:
Will this AGPS patch help me in correcting my weather current location in sense. Because my weather in HTC sense thinks that I'm in korea when I'm not.
[HTC Sensation] crypted:
Because this is a code issue in the HTC porting, it fails to be resolved by patches for agps...
[HTC Sensation] crypted:
Thread kind of updated to include a new device:

Asus Transformer Prime

This patch can be useful on devices that need the GPS XML file which is prevalent in non-Qualcomm chipsets. So, it can be used in other devices as well.

The new release has no effect on other supported devices unless it is a non-Qualcomm phone.
[HTC Sensation] Sneakyghost:
Hello Crypted,

running Google Specific - No SSL 3.1 on the HTC One S, ROM is TrickDroid V7 with latest Chainfire SU and CWM Touch Ville 5.8.3.1. Android is Build 4.0.4.

Install fails.

The Error is: "E:\name.of.agps.zip has an error..." or something like that.

System was mounted manually.

I am unsure about the CWM, it seems to be buggy. Previous versions are worse though.

I pushed the gps.conf manually and that works good. There is no SuplRootCert in that ROM so the updater.script doesn't need to delete that either.

Thanks for your work.

PS: my comments on the gps cleanup line as a workaround for that Gingerbread bug where the GPS cannot be restarted after shutdown seems not to apply to newer devices. By now, i think it was pretty isolated on the HD2 for whatever reasons. It was never a sole HD2 issue per definition, so i expected it to happen on other devices too, yet it is not so. Thank god.
[HTC Sensation] crypted:
Glad you used another method to install the patch.

There are so many recovery setups that it would require me to maintain 100+ different ZIP files to offer this patch in a flashable manner for all forms of recovery. This is because of differences in the update.binary and script methods. I do not have the time or the interest in supporting such a crazy endeavor.

If it works great, feel free to nag people to donate!
[HTC Sensation] Sneakyghost:
yeah not a problem.

I was already asking on the Rom threads if anyone is interested in integrating it but so far no reply. Not sure it got noticed.

Will tell people to check over here and drop you some cash if it gets picked up.

Best regards,

Sneaky

sent from the tip of my finger
[HTC Sensation] crypted:
This is already incorporated into at least 15 ROMs on various devices. But, unsure what if any use it here. Devs don't always report or credit it so it's hard to track.

Sent from my Desire HD
[HTC Sensation] Sneakyghost:
Torxx from TrickDroid (HTC one s) says he's using another mod which is equally good according to him.

LeeDroid is not working on his Rom at the moment, probably no use asking, will do anyway. Did not yet try other Rom's on this device.

sent from the tip of my finger
[HTC Sensation] crypted:
While I very much doubt that someone else has been able to reproduce what I have done, I won't complain that another DEV won't include this in a ROM.

I'm quite sure no-one else offers their own pool of Stratum II NTP servers selected based on routing to mobile data network nodes and I know that no-one else offers their own provisioning of an xtra.bin data file. :D
[HTC Sensation] Sneakyghost:
I don't doubt that. I had both my wifes and my One S check for a fix indoors. Same position. Mine with your conf, no SSL, hers with the TrickDroid standard conf. Both same software, radio etc.

My device got the fix in 3, hers in 5 seconds. Not much a diff but still noticable.

[EDIT]

LeeDroid is already offering your config optionally in a tweak-package.