yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] bonkasnucca:
Wow definitely can not wait for this..my gps takes forever and/or doesn't connect nd always gets lost..hope this is the light at the end of the tunnel
[HTC Sensation] tissimo:
Ahh, I was wonder why anyone would need this, its not a Galaxy S :D

With a Sense based rom I get 5-9 bird locks in about 5-10 seconds. Highest I've seen is 10 satellites.
[HTC Sensation] crypted:
I really don't get your point.

---------- Post added at 11:29 PM ---------- Previous post was at 11:27 PM ----------

For those interested, you could use v1.2 for either Inspire/Desire. It ought to work just fine.

I'll have v1.3 out by the middle of next week.
[HTC Sensation] Bsketball:
This looks good! No ROM I've tried works nearly as well with GPS as stock did for me. Hopefully this does the trick. When should the Sensation version arrive?
[HTC Sensation] steve841:
Well ... I've been playing with the file and created my own..

My theory ... less is more.

I have posted the files and you can try for yourself.

http://www.arvida1.com

Credit to crypted for original modded file.
[HTC Sensation] crypted:
Hijacking threads ain't cool. And as I told you on another thread, less isn't always more. There are a lot of factors including physical hardware (GPS unit on the phone), software (kernel: modded vs stock), and drivers. And, I gave you access to my upcoming release to test it. Not to build something for you to post on my thread before I even had a chance to release it.... Testers are requested for testing.

Each var has a purpose. It's a matter of will that purpose be supported from what I said above. Yes, dropping a bunch of them can work just fine for one schema. But, contextually it might not be so great for many other flavors of flashing.

I have a standard release schedule. v1.3 comes out next week. Sensation will be kicked up for official support at that time.
[HTC Sensation] steve841:
Don't hate...

Just trying to help everyone.
[HTC Sensation] kpjimmy:
Wow steve,

I agree with helping everyone, but you should have kept your own edits to yourself and should have stated if anyone wanted to test your version out they should PM you and not to detract this thread.

Moving on now...let's just get this patch going from the OP, he was nice enough to let us test his script.

---------- Post added at 10:44 AM ---------- Previous post was at 10:42 AM ----------

Just extract the 1.2 file from post 2-depending where you are, of course. Push the gps.conf file to your phone which is /system/etc.
[HTC Sensation] steve841:
I must really be on another planet ... I just edit a file from the OP and give to everyone to try (after I made sure it worked for me) ... and I get flamed for it.

Im not asking for donations, fame or "thanks".. just a working GPS.

Crypted ... pm me and I will remove all my posts and create a new thread if that makes everyone happy.
[HTC Sensation] crypted:
No worries. I will release it as planned. Just realize I have put over 50 hours of time into this project. Many ROM devs and APP devs have requested and have been granted permission to use this in their stuff. Just let me know what you want to do with it and talk to me via private message. No one expects to wake up and see someone using their work unexpectedly and posting it on XDA.

And remember: everything was done for a reason and will go through a major revision on V1.4.

V1.2 WILL work on Sensation as mentioned above. You can find it in Note #2. However, you MIGHT have problems flashing it with CWR. If you do, copy the file using root explorer or abd push.

V1.3 will provide CWR support for sure. I revised the update script to use more universal procedures that are compatible across many devices. It will bring some important NTP and XTRA updates. It removes one variable.

V1.4 will be a major revision.

V1.5 will have a great surprise for people. ROM dev's are excited about this one.
[HTC Sensation] quierotacobell:
Would like to try it when it comes out. My problem is that my GPS locks, but my location is wrong, say off by about 1000 meters or so. It'll show be down the street from the location, maybe it's a hardware problem. But navigation works great, I used it in California few weeks ago, went from Hollywood to Santa Monica and no problems. It's just the actual location in maps itself doesn't show exactly where I am.
[HTC Sensation] crypted:
Yes, that sounds like it is not using your GPS at all. Typically, Maps and other apps will show you in a generic location based upon the tower(s) your phone is using for data transmission. It's a backup general location method when GPS isn't catching a signal.
[HTC Sensation] kpjimmy:
Are you in Long Island, NY? I grew up in Huntington worked in Melville for a number of years.

Back to this thread...have you tried the 1.2 file yet? Don't flash it, extract the file and get the gps.conf out and push the file onto your device. Or you can use root explorer to overwrite the file. But remember to have a gps.conf backup to revert to if you run into any problems.
[HTC Sensation] crypted:
Take it out of a case if it is in one, and try again.
[HTC Sensation] KCuadrado:
Without the case it seems to get faster satellites and fixes. I have the latest MIUI ROM and in Insertcoin it worked too. Crypted, do you know where is the GPS antenna located in the phone? It might help if you don't touch it. (I think)

Sent from my HTC Sensation 4G.
[HTC Sensation] crypted:
Honestly, I don't know where the GPS antenna is on the Sensation. But if it's similar to the Inspire 4G/Desire HD devices, it would be located on the same panel as the LED flash. If there's a panel cut separate with LED flash on the back try this:

1. Open GPS Status

2. Let it lock

3. Put small pressure on the LED panel with your finger.

4. While putting pressure, see if there's any loss in GPS Status.

When I do this on my Inspire 4G, it degrades GPS strength and accuracy quickly.
[HTC Sensation] KCuadrado:
I'll let you know soon. I fix phones on my shop but I still haven't opened my Sensation and I can't find some guide in the internet neither with the guts of it.

Edit: it seems like the GPS antenna is where you said crypted. I had 10 fixed satellites and when I put pressure near the led orange light all the satellite signals lowered, and got 9 fixes.
[HTC Sensation] stev32k:
My GPS is really screwed up

I'm beginning to think I have a defective phone. My GPS is very erratic and unreliable. A few times I have gotten a lock in 3 or 4 seconds other times it takes 10 to 15 minutes or may not lock at all.

I tried the V 1.2 and 2.2 of the AGPS patch file and there is no doubt they both help get a faster fix on the satellites, but I still don't get a lock even with 8 to 10 satellites in view and fixed.

The device is the HTC sensation 4G. I have tried different ROMS, kernels and radios, but none seem to make a difference. Right now I have the stock ROM, kernel, radio, and the V. 2.2 patch. The phone is rooted with S-off and ENG S-off.

There are a couple of other things that do not seem right. One is the accuracy even with as many as 8 or 9 satellites fixed the accuracy will be 200 - 650 ft. The other is that the phone will move the satellites around on the screen. By that I mean satellite No. 28 might be on the 30 degree ring in the NW quadrant then move to the 60 degree ring at due north. I've attached some screen shots to show what I mean. A third item is the battery drain is also excessive at over 1% per minute.

The two screen shots attached were taken 3 minutes apart - notice the location of satellite No. 28 and the battery level. This was done outside under a clear blue sky and the device does not have a case.
[HTC Sensation] crypted:
I'd agree with you that the phone sounds to be a bit out of whack. You gave me more than ample information to have no real questions. The only thing that could cause that issue would be a case, which you say there is not one.

Do you know if the GPS antenna is in the same position or built similarly to DHD/Inspires? If so, it uses a spring to connect the antenna to the hardware which could be loose. If it's out of warranty and you can locate the antenna, you could try self-repair.
[HTC Sensation] stev32k:
I checked the antenna and it seems to OK. The contacts on the body look like they make good contact with the rear cover.

The part about the satellites changing position bothers me. Have any one seen that before?
[HTC Sensation] crypted:
In the images you appear to have rotated your phone. But, it doesn't show such a difference because only one screenshot has any sat's in view. You're saying it moved from the plane it was in (ignoring rotation)?

That seems odd. Are you flying in your own private Concord jet at the moment? Too fast for it to handle? :D

I'll play around with mine and see, but I'm thinking it's unusual.
[HTC Sensation] stev32k:
You need to look again. The orientation of the phone is only a few degrees different and both shots have satellites in view. At 11:30 sat. No.28 is at the 9 o'clock position between the 30 and 60 degree rings at 11:33 it is at the tip of the north arrow.
[HTC Sensation] crypted:
Can you confirm that it is downloading the xtra.bin file? Try downloading it manually in a browser. The link is in the gps.conf. If it's downloading, we know that it's going to be phone-related. If it isn't downloading, you're not going to have the necessary data for the phone to figure out where those sats SHOULD be.

It might be that its guessing old locations, gets an intermediate lock assuming an old location, and then updates to the sats true location upon fully locking.
[HTC Sensation] stev32k:
afraid I don't know how to do what you are asking? I don't see a link in the gps.conf file. What should the file permissions be for the gps.conf file?
[HTC Sensation] crypted:
I'm referring to http://xtra3.gpsonextra.net/xtra.bin and want to know if you can download that file from your phone. And if so, how long it takes.
[HTC Sensation] crypted:
NEW VERSION(S) OUT!

v2.2 is updated. There were bad ZIP links for which I apologize for. Further, I added some new BUILDS. These builds can work on all phones no matter what your manufacturer is. However, some manufacturers provide SUPL data for their hardware. I'm helping you take advantage of multiple SUPL SERVER providers.

v3.0 is here! What does this mean for you?

I provide you with my very own xtra.bin file. This has led to some beta-testers having INSTANT locks. I can't promise that, but it works wonderfully for all testers except one person in China.

Guess what!

It costs me money to provide this.

Donations would be welcome to cover hosting fees should this work for you.

What's next for the 3.x trunk?

You should see v3.1 in a matters of weeks depending on reported success of v3.0. I intend to create my own NTP servers and NTP pools. This may cost a few dollars a month, but should be worth it for all of us.

Other flashing recoveries may be supported. Right now, I'm only providing for Clockwork Recovery. But, there are two other easy installation methods available aside from CWR in Method #3.

I've added more notes. Read them if you have issues before posting.

I've added more information to Method 2 installations.

Finally, click thanks on this POST if you truly enjoy and appreciate the work! ;)
[HTC Sensation] stev32k:
I think I fixed my problem

Just out of curiosity I started looking at the gps.conf file permissions with root explorer. What I noticed was that there were no exe permissions checked (first screenshot) . So I decided to try something different and checked exe permission for every one(second screenshot). Then rebooted and launched gps status and I got a lock in about 9 seconds. Before this it was taking 3 - 10 minutes if I got a lock at all. Most of the time I gave up after about 10 minutes. The gps would always find 5 - 9 satellites in 5 - 10 seconds, but had a large problem getting a lock.

I rebooted and repeatedly got a lock in 4 - 20 seconds. Next I went back to file permissions and unchecked the exe boxes, rebooted and tried GPS again. Much to my surprise I got a lock in about 10 seconds. I tried several more times and got a lock every time - damn what the heck is going on? At that point I gave up and started doing some chores around the house.

About an hour later I tried again and could not get a lock in five tries over about a 30 minute period. So once again I went into root explorer and changed permissions in gps.conf to allow exe. Then rebooted and called up gps status again, this time it locked in about 5 seconds.

I had one more problem and that was the error(accuracy). The best I can remember seeing was about 150 ft and normally it was in the 250 - 400 ft range and sometimes much worse (see third screen shot). I started messing with sensor filtering and found when it is set to "strong" my error goes way down and the lock times do not seem to affected very much (see screen shot 4)

I repeated the whole process this morning with the same results. When I remove exe permissions from gps.conf I can get a lock for several tries, but after a period of time - maybe 1 - 2 hours I start getting slow or no locks. Putting the permissions back to exe results in fast locks. I also repeated the the accuracy tests by changing the sensor filter settings and get significantly lower error readings when the filter is set to strong.
[HTC Sensation] crypted:
Permissions should not matter. The conf is not executed, so I would say you're seeing a placebo effect. The only thing that would matter is if the conf could not be "read" by the GPS daemon when activated by an app. However, that should be running as ROOT so it wouldn't need any permissions to be read by the ROOT user.

Are you testing inside? Accuracy can get crazy inside a home. GPS signals bounce of windows, walls, etc. The further you are inside a home (especially with levels above), the more odd it acts.

You could get great accuracy if you use an Alternate patch. This removes the use of intermediate positioning data and solely relies on fully-locked satellites.
[HTC Sensation] stev32k:
You may be right about the permissions. I've been doing more testing and the main factor seems to be the filtering. With filtering turned off the lock times are in the several minute range if at all. With filtering set to strong the lock times are in the few second range with an occasional time of two or three minutes, but it always locks.

I tried filter settings with the permissions set to exe allowed and exe not allowed and in both cases the filter setting made the difference. That seems counter intuitive to me, but I did the tests inside and out and the results are always the same - a strong filter setting makes the difference between getting a lock and not getting a lock.
[HTC Sensation] crypted:
I don't recommend filtering crap out. But, I'm not following how you are "filtering" unless you're using another GPS app which I do not recommend as it interferes with this patch...

You can adjust three threshold variables to get more or less sats depending on location. You can disable intermediate positions altogether by using the Alternate builds. This means you won't get GPS as fast, but that you'll use only solid locked sats.
[HTC Sensation] stev32k:
I use gps status + toolbox; goto ->menu ->settings -> gps & sensors -> sensor filtering -> select strong.
[HTC Sensation] crypted:
Ah, yeah I believe that is only going to work for that App and how it considers GPS satellite data.
[HTC Sensation] xstormli:
flashing 3.0 as we speak!

instant lock?! this is uber stuff we are talking about lolz

must try! have to try!

great work bro!
[HTC Sensation] webmaster:
So does this method work with a Sensation, or might it cause problems? I only ask because you specifically mention it was built for another version of CWM.
[HTC Sensation] crypted:
Without having a phone, I cannot attest to it working. However, it would just "fail" instead of processing the update if it wasn't compatible.

You can give it a go and if it works, you're golden with #3. If it fails, you need a different method.
[HTC Sensation] Lafenear:
Just tried it with the Google version 3.0 via. EXT4 Recovery.

Flashed just fine.
[HTC Sensation] crypted:
I just added a new flashable ZIP to both current versions. Some users are reporting issues flashing with CWM on the X8.

Thanks eagleeyetom for your help as always!

I placed this update on all threads so others who may not have had flash success can try it out. Feel free to send me a private message with what recovery app and version you're using, the phone model involved, and whether flashing anything worked.

Method 1 seems to be the best bet for anyone without flashable abilities with these ZIPs. It's a quick adb push script...

v3.1 is still in the works I promise. As stated previously, it'll be a bit longer before I get it out to the public. I hope to have my beta testing community trying it out in a week or so.

Again, v3.0 has all gps.conf variables grouped into sections with small discussion on what they are for. I'll try and replicate this into the v2.2 ZIP files in the near future.
[HTC Sensation] zmfl:
It locks on in about 3 seconds, while drivng! Amaizing!

I used the google one... I supposed that's the apriopriate one since I'm in Europe.

Thanks!

edit: Ok, today it doesn't get a lock in 3 seconds... It was more like 2-3 minutes. Perhaps it's still learning :/
[HTC Sensation] Shagman68:
CM7 v9

I found it worked hit or miss on CM7 v9, but after I changed a value in the build.prop file this mod worked a whole lot better.

Original:

# For the default value of agps

ro.ril.def.agps.mode = 2

Mod:

# For the default value of agps

ro.ril.def.agps.mode = 1
[HTC Sensation] crypted:
Good to know. I'll try and add that to the Notes section on all threads soon!!! Though, I'm not sure people read my Notes section based on lots of posts I receive.
[HTC Sensation] Bastaerd:
What changes when you change that value?
[HTC Sensation] webmaster:
crypted,

I have tried many different versions of the patch, and they all give me the same result. The GPS icon flashes and then indicates it has a lock with about 3 seconds, however it shows my location as "Unnamed Road, Tonopah NV, 89049" even though I am in the heart of New York City!? Any ideas what could be causing this error? I am running a Tmobile USA Sensation 4G if that helps.
[HTC Sensation] crypted:
Your GPS isn't being used. That information is supplied from either your cell tower or a bad SUPL server reading. There are towers with poorly programmed coordinates all over. I know of one tower here in OKC that will put me in NYC when I'm using it for location information.

What ROM?
[HTC Sensation] webmaster:
Interesting. I am running HyperSensation (CM7 based), available here on these forums.
[HTC Sensation] crypted:
Try another Rom or change the build prop value discussed above..
[HTC Sensation] artymarty:
The intelligent people read your notes, the painful people don't.... Sigh.... :)

Sent from the future using a sensational Z710a size rip in the space-time continuum
[HTC Sensation] Shagman68:
LOL, i had the same city on one of the ROMs i was running. I could not find a fix for that one, so i switched ROMs.
[HTC Sensation] Shagman68:
It locked faster and more accurately.
[HTC Sensation] crypted:
It appears to be beneficial with CM and not other ROM's. I'm using it set as your ROM originally had it, =2, and testing ROMs. It works fine. However, CM is another beast.

I wonder if this relates to issues as my first note in the Notes Section discusses. CM seems to kill aGPS capabilities hard-coded. Maybe this is a location where the CM people forgot to repair to match their overhauls to re-enable aGPS. I'm speculating, but it is feasible.
[HTC Sensation] wchiichang:
I'm on leedroid 4.0 brick kernel1.4 and i'm in Asia..so which patch is the best..do I need to do any backup b4 I flash?
[HTC Sensation] umka83:
How do you find out how many sattelites are connected?
[HTC Sensation] crypted:
As it clearly states in the "Downloads" section, I recommend Google build for everyone.

You obviously did not read anything I wrote. The "Notes" section and numerous posts on this thread discuss "GPS Status" app for that.
[HTC Sensation] hwaaka:
I flashed google build via cwr on SenseAy 2.0 bricked 1.4. It locks it seconds
[HTC Sensation] webmaster:
Quick update. After trying most of the different patches and using GPS Status, the best I can get is three satellites. That doesn't seem to be enough to sort out my location however, since Maps is still showing my location as Nevada. Based on this, does it sound like something else is wrong with my setup?
[HTC Sensation] crypted:
Can you try another ROM? You're issue is because GPS is not being used for some reason. That indicates a hard-coded issue to me since you're having no luck with patches.

Again, remove it from a case if it's in one to see if it'll fully lock. Try it outside. Flash ARHD or something different... Re-flash the patch...
[HTC Sensation] webmaster:
I am happy to report I got it working, and the fix was so simple I think you should add it to your initial list. All I did to get it working was the following:

1) Flash patch

2) Shut down phone

3) Remove battery for 30 seconds

4) Power phone back on!

Thats literally all there was too it. Not entirely sure why that was the issue (or the solution), but it worked for me. Now I can get around 9 satellites and a cold lock within 5 seconds. The accuracy leaves a little to be desired, but I am hoping that improves with use.
[HTC Sensation] crypted:
I'm glad it's working for you finally! The only thing I can think of would be that the loss of power, once the circuit's drained, cleared the cache.

I added this to my "Still Have Problems" section. I'll post it along with some more notes in the near future. Lots of threads to update, so I'm waiting to be sure there isn't anything else pertinent to post.
[HTC Sensation] crypted:
Just thought I'd post an update. The Notes section has been revamped, added, and the Notes / Still Having Problems sections have been consolidated.

I considered adding checksums to the thread. But, I really don't see the need. If people prefer not to trust this, heck with 'em. They can pay $300 for a good standalone GPS unit.

3.1 is still on track.
[HTC Sensation] DonJuan692006:
So I used the CWM flashable Google Specific 3.0 fix running CM 7 and Faux's 0.2.4 kernel. After booting back up, I ran GPS Status and got instand lock....in Nevada....I'm currently in North Carolina. I let GPS Status run for around 15 minutes and only managed to lock onto 1 satty. I did go into build.prop and changed the agps mode to 1 vice 2 with no change.
[HTC Sensation] webmaster:
Shut the phone off, then take out the battery for 30 seconds. After that put that battery back in and power it back up. That "should" fix the issue, at least it did for me.
[HTC Sensation] crypted:
Report back on the issue once you did as webmaster suggested. This was in the Notes section by the way. Also, the Notes Section discusses issues with CM nightlies. One is where aGPS is disabled in the code, services.jar specifically if I recall right.

It isn't the patch so much as the phone isn't even using the GPS unit for some reason. Again, try the battery suggestion and report back.
[HTC Sensation] webmaster:
So did you try what I suggested?
[HTC Sensation] adambala:
hello all help needed...i am ta greece what exactly do i have to flash via recovery???i am confused.....pls help
[HTC Sensation] crypted:
Country does not matter. Pick one and install it. As the Notes say, I recommend

Google Build

.

Install it however you want. There are three methods available. The first one is normally the easiest.