yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] crypted:
Good to know. Other devices show improvement. Also, my Sensation testers had improvement. But, there seems to be a quality issue with a number of you...

I'll review my changes and if I can contemplate a reason, I'll message y'all some test updates.

EDIT: upon further review, I wonder if this new TMOBILE variable I added is causing it. No other changes would cause distance variation. Sending you all messages now with a test build.
[HTC Sensation] mutiny:
Actually, thanks but that won't be necessary for me. I just tested the 1.3n zip and it's even faster than 1.2. So whatever variables were added on the 1.3 zip, I guess my Sensation doesn't like it. The 1.3n zip is perfect, though.

Using GPS Fix, I picked up all satellites within 8 or so seconds. When I turned on the Navigation app and entered an address, it found a route for me within 4 seconds. That's without any exaggeration and would even put up a video if anyone is that skeptical.

I did all the tests outdoors.
[HTC Sensation] kpjimmy:
I agree. If you are on the faux kernel any version, you will most likely not get a consistent lock. Try rebooting and turn off wifi if on and make sure you have a clear line of site of the sky.

I am still using the bricked kernel v8 and works for me.

Also I tried out the other thread for tmous usa people. I was curious and tried it. Didn't get a lock and only got 1 sat to read. Switched back to 1.3 and got 7 sats and locked within 92 seconds initially. After that fix, I did back out of all the programs went away from the window, and walked back to the window and the gps fix shortened to 29 secs.

I noticed the 1.3 alpha you had sent me had a splrootcert reference but the new one in the OP does not. May be a mute point now :)
[HTC Sensation] crypted:
I removed that reference as no ROM I use has the cert file and the tls server it was for appears to be defunct. But, I'm wondering if it's actually a part of stock ROM's. For that reason, I'm on the fence about keeping it or not. No-one has confirmed this on any of the phones I offer the patch for. So, time will tell.

Having it won't hurt anything, but might not help.

There were a couple variables deleted in v1.3 compared to v1.2. Those variables worked in tandem. But, the server is no longer active and just means that the GPS software is trying to access an assistance server that is offline. I've sent an inquiry to TI about that server & its status, and have not heard back.

EDIT:

Check out this recent test. I had the same results on v1.3 and v1.4 (future release). I was using ARHD 6.1 and ARHD recommended radio. I was sitting on my couch with nothing but a wood and shingled roof over my head. It's a partly cloudy day. I received similar results on VU 2.37.

The patch works. Other things can have a profound effect on individual results. Example: Flash a different radio other than the radio recommended for a ROM by its DEV? Well, then you don't have the right drivers (RIL files). Flash those.
[HTC Sensation] rockmaster:
I tried to flash the fix version of ur pm. Firstly I got 10 but then I went down to usually 8, sometimes it reached to 9 but never 10 again. I had those results in 10 mins with GPS stas.

Using the same app but then I reset GPS state and still now it cannot lock GPS anymore... only 3 sats :eek:
[HTC Sensation] crypted:
Have you tried rebooting?

1. What ROM are you using?

2. What kernel are you using?

3. What radio are you using?

4. Do you have a case?

5. What are the surroundings that you are testing under?

6. Did you reed the notes? (reboot, let it run for a while to "learn", etc...)

Would like to help, but need extra info.
[HTC Sensation] rockmaster:
I tried of course. That must be first thing to do. I just reflashed and it locked at 7 sats. statically.

1. Virtuous with his kernel v12

3. latest one (I don't remember, the one with _2 from XE recently)

4. I do have a plastic case

5. 4th floor in my place and others around same same.

6. Of course I did, must be first thing to do either :)

Im sorry I don't have screen shot coz virtuous screen capture function doesn't work. But now it locks at 7 sats

Edit: do u turn on navigation using wifi signal? I saw ur screen shot has wifi turned on. IF so it captures a lot faster. I tested under GPS only.

I will flash xboarder mod today and 'll tell you how it works on this later on
[HTC Sensation] crypted:
Test with WiFi on and in range. I always have my WiFi on. The reason some say don't have it on is to do with a few kernels not being up to par.

Remove the plastic case. DO it where you are either on the top floor and there is no cement above you, or outside for at least 5 minutes. Let it run and see if it locks on any. It needs to stay ON and ACTIVE to learn the sats in your area and the information the sats send out.

Consider flashing ARHD and testing with it.

The patch won't make GPS worse in and of itself. So if that is the case, there's an underlying factor and would probably be kernel-based.

I don't have a Sensation to test from, so we have to work through this together.
[HTC Sensation] rockmaster:
Am no longer holding the fire to go with sense :D

I will try it tomorrow then, just flash xboarder and it's late here. Have school tomorrow. Thank you for the good work.
[HTC Sensation] mike1986.:
I've noticed settings for etc/SuplRootCert while only Sensation 4G ROMs have SuplRootCert in system/etc. I add it to my ROM in additions folder and it's installed only for 4G users. But other ROM's don't have it I think.
[HTC Sensation] crypted:
Yeah. I'm going to determine a solution for that. I think I'll make add-on CWR flashables. It isn't required, or necessary. But, if you're hell bent on using the SUPL TLS, it would be needed for carrier TLS servers.

I'm trying to see how many people have suplrootcert's and where they originated (by checking the file itself). I'm betting they are not common.

So, I can leave the variable in the future builds and provide optional suplrootcert's that I acquire.
[HTC Sensation] kpjimmy:
I've used the suplrootcert and without. Where Coredroid doesn't have it included and I have used your AGPS patch without it, so I can confirm, well in the USA anyway, it's not required to have to get your gps to work.

As for the testing files I have been using, I decided to revert back to the OP file of worldwide1.3 and spend a day with it with the new bricked kernel v.86. It's ok, I haven't gotten a consistent lock with the new bricked kernel so I am going to revert the kernel to v.8 and test out 1.3 again.
[HTC Sensation] crypted:
At least we know this works with stable kernels!!!! ;)
[HTC Sensation] kpjimmy:
LOL Correct in my case anyways. I reverted back to the Bricked kernel v.8 and it the agps didn't lock. It saw 2 sats but did not gps lock at all for 5 minutes. I then went and reverted back to the stock kernel and now I get a lock with 8 sats. The initial lock took about 1 minute first go around. Afterwards it locked within 2-10 seconds.

Now my set up is: Coredroid 2.4 and stock kernel with the 1.3 worldwide patch listed in the OP. I have a nillken kickstand case, but doesn't affect my reception IMO.
[HTC Sensation] crypted:
Well, I would agree about the case although there is debate. I noticed that some sat's that are further away may not lock with a case. I would attribute that to the extremely weak signal from distance and it just weeds it out. I can get an extra sat that's hell of a ways off without my case.
[HTC Sensation] mark9white:
Hey all,

As per a post I just made in the CM-thread, I believe that AGPS is not working at all on CM7 on the Sensation.

If I start Google Maps on a Sense-based ROM, during the GPS initialisation I get the following in logcat:

loc_eng_set_position mode: GPS_POSITION_MODE_MS_BASED

which indicates that it's AGPS, but on CM7 I get:

loc_eng_set_position mode: GPS_POSITION_MODE_STANDALONE

which I believe indicates that it's standard GPS. Therefore the tweaks in this gps.conf would currently be ineffective on CM7 until the root issue is fixed. (unless others are getting anything different in logcat?)

btw, as per this post: http://xdaforums.com/showpost.php?p=12387972&postcount=6 do not confuse AGPS with location service, which gives a quick lock via wifi/gsm cells.

Mark.
[HTC Sensation] rockmaster:
+1 AGPS doesn't work on my xboarder ROM also.
[HTC Sensation] crypted:
So, we are to conclude that there is an issue with CM nightlies? I'm confused as I see reports that it worked well with CM7.

Regarding the confusion on AGPS vs. location service: I suggest using GPS Status to see GPS information and testing rather than opening up Maps for GPS information when testing.

It seems fairly obvious that if you open up Maps, and you have a huge blue circle that encompasses a mile or so distance from an area where you know a tower is located, well you aren't getting GPS-related location information.

Again, I can't solve kernel dev or ROM dev issues. Wish I could, but they like to do their own thing and not have some nagging about this or that. :(

EDIT: Have you all uninstalled Maps, rebooted, and re-installed Maps? This is coming from some random notes I saw on GPS discussions. Some say that it is necessary for being recompiled to notice changes in GPS configuration. I'm not following that logic based on my own observations. But, give that a go and let me know?
[HTC Sensation] mark9white:
I believe there is an issue in the CM nightlies, I'm not sure that the CM devs have realised as they're probably focussing on whether GPS is working, not whether the full AGPS functionality is also working.

You are correct that the difference between AGPS and location service is certainly clear in GPS Status. However GPS Status would not clearly differentiate AGPS vs GPS, adb logcat is the only way I know to do that. (AGPS is a variant of GPS that is faster to locate you and can work under worse conditions)

Playing with the Maps app wouldn't help as the code that's failing here is part of the core operating system (ultimately GpsLocationProvider.java), and outputs the the same whether you're using Maps, GPS Status or any other app that keeps track of your GPS movements.
[HTC Sensation] crypted:
We're in agreement on everything. ;) I was just saying how to ignore location determination from WiFi or cell-towers.

I'm not a CM user, so that stinks they've botched AGPS.
[HTC Sensation] gs111:
I'm using CM7 Alpha5 on my Sensation... using the stock gps.conf I was getting slow locks of GPS (30 seconds) but it was working, both agps and gps.

I put this modified gps.conf back on the system/etc and the gps locks on if 2-5 seconds. As before on stock, there is a substantial improvement for me when use this one...

thanks again!
[HTC Sensation] crypted:
Glad to hear it. Get ready for the next iteration!!!!
[HTC Sensation] sirbilbo:
Hi, just installed your version 1.3 with cwr on Android Revolution HD™ 3.6.0 XE and I must say it did work perfect :D

On stockRom of sensation with kernel 2.3.4 it always took a minute or so, but now i get >6 sattelites at the max 10 seconds.

Much impressive work !!
[HTC Sensation] Evo_Pimpin:
We are on the same rom. I will give this a try and report back.
[HTC Sensation] crypted:
Any luck with your attempts?
[HTC Sensation] aohmer:
btw I tried this on ARHD 3.6 and it did not work. I sat outside for like 5 minutes no locks ... without this patch I am locking 7-10 in less than 20 seconds on my phone.
[HTC Sensation] crypted:
Understood. You probably wouldn't need the patch aa you seem to be a lucky one out of the box! :)
[HTC Sensation] KCuadrado:
Crypted, thank you a lot! You are the best, I can finally get a GPS lock with mobile data in Puerto Rico. I only got a lock when I was on WiFi.
[HTC Sensation] crypted:
v2.0 is out

First round of v2.0 is released. The beta-testers loved it and all gave the go-ahead today. I hope you all enjoy it as well.

Do note the multiple versions. I'm trying to help as many as we can specifically based on what people wanted.

I use the Generic/Google version even though I'm an AT&T customer.
[HTC Sensation] quahog_convo:
Testing out the T-Mo variant now!

Letting GPS Status do its magic.
[HTC Sensation] crypted:
Now, you may notice some variation in the error. But, it will perform a lot better when you're on the road I'm sure.

We tested the hell out of this. I would say it was used across 8 different types of devices for over 2,000 miles.

I dropped a number of useless variables for new devices. V2.1 will see refinements in the QOS (quality of service) variable sets.
[HTC Sensation] smint86:
could you write a little bit more about those different versions? i used the 1.3 patch for quite a long time, was very happy with it. if 2.0 is even better, i want to have it ofc :)

i'm not a at&t or t-mobile user - so it would be the "google specific" build for me, right? but what efford has it compared to the "gps.conf" build? what exactly is "SUPLROOTCERT" for? i'm just curious.
[HTC Sensation] crypted:
You know, a changelog was something I intended to put into the revised postings for all 8 devices. But, I've been swamped with real life and I forgot about it while rushing to get everyone access to v2.0.

In a nutshell, v2.0 has a lot of variables deleted. Why? Well, some variables aren't used for newer hardware. And, some newer hardware will use a default figure when the variable is not present but needed. So, why override something not required or already programmed into the GPS unit itself that might interfere...

I did some minor tweaks in the NTP and XTRA servers too, I think.

Forgive me for not remembering everything. I will need to review when I make a changelog in the future. I've been hard at work on v2.1 and v3.x trunk and getting prepped for testing on some theories of mine.

Lastly, a SUPLROOTCERT can be thought of like an SSL certificate for https websites. Some servers, especially those hosted by AT&T or T-Mobile, may limit SUPL access to those carrying a valid certificate for authentication. By having the SUPLROOTCERT for the SUPL server specifically in the gps.conf, you win the day and get access.
[HTC Sensation] KAwAtA:
Thanks SO much. I began using InsertCoin and my GPS just failed on me.. this fixed it and gave me faster gps fixes than my previous rom (normally took about 20 seconds.. this lowered it down to about 5-10!)
[HTC Sensation] moeinf:
google is for non at&t an tmo users? like 1.3 worldwide?
[HTC Sensation] crypted:
You could use any of them, but I'd suspect those two carriers would ban external users from accessing their SUPLSERVER even if you had their CERT. So, I'm all about the Google one. Hell, I use it.
[HTC Sensation] thunderskain:
Hi,

I have a problem with this patch.

I used the google one and i can't get a GPS fix even after waiting 5mins.

Tried the worldwide 1.3 but it still doesn't work.

I'm living in Singapore...

Any tips on which one should i use??
[HTC Sensation] Heppieboeddah:
Thanks to OP/Dev

Thanks for sharing this one! Used the 1.3 version because i live in Europe. Had to extract the .zip and copy the gps.con manually with root-explorer to:

/etc

/system/etc

This due to the fact on my rom [Bulletproof1.4] there is an etc in the /root and in the /system. Whenn i flash the patch, after reboot it reverts to the standard con.

After rebooting the phone i started GPS-status and had a fix indoor within 5sec!! 8 sats, 8 connections. So, works great.....
[HTC Sensation] crypted:
Try with your phone connected to WiFi. Also, are you inside or outside? What's the weather like? Are there a lot of tall concrete buildings around you? Do you have a case on your phone?
[HTC Sensation] KCuadrado:
To everyone: even after the patch, sometimes I can't get a lock on the Maps app. What I do to fix it is open the GPS Status app (it's free in the Market). Wait for it to lock like 9 satellites, and when I open Maps, it locates me where I am at in Puerto Rico. Try it out.
[HTC Sensation] thunderskain:
Its always connected to wifi. I'm at my balcony of the 16th floor of my apartment. The highest floor so i dont think there are any higher concrete buildings. Currently not having any case attached.

I tried and waited even with GPS status open but all i get was up to 4 satellite detected and no GPS lock at all. One of my phone a Garmin Asus A10 took only 10secons to establish lock and i really want it to achieve a lock at such a speed.

Thanks for your help
[HTC Sensation] KCuadrado:
When GPS Status really located you, it will show a lot of numbers below. That's when you have to press the menu button and then tools - manage agps state and download the GPS state. It's what works for me.
[HTC Sensation] crypted:
Did GPS work for you before? What about when you were on stock? Are you sure you copied this gps.conf over? Check the actual file in /system/etc and make sure that it is actually copied.
[HTC Sensation] thunderskain:
Yes it worked while I was on stock but using ARHD 3.6.1 now. I checked and yes the gps.conf is copied over. Does it matter which one did I use, either the Google one or the worldwide one?
[HTC Sensation] crypted:
I recommend using the v2.0 Google one. However, a few users reported that their specific conditions required v1.3 to get great performance.

DHD's are known for bad GPS antenna issues, too. While it worked for a while, it could be that the springs are loose now. But if this happened immediately after flashing a new ROM, I doubt it is hardware.

Take it out of the case if it's in one.

Try outside, or somewhere away from concrete walls. If you're in a wooden building and on the top-most floor, you may be okay for testing.
[HTC Sensation] Vipeout:
How do you check to how many satellites you're locked? I have GPS Status but I can't seem to find that information
[HTC Sensation] KCuadrado:
It should say something like 9/9 at the right side below the compass thing at the right. That's 9 locked satellites, or 2/4 is 2 locked sats and 4 available.
[HTC Sensation] gilbert11231123:
i downloaded the t mobile specific one and yes maps is really quick but navigation takes for ever to get me turn by turn directions , the way around it is to open maps enter the address hit menu get directions and then menu then hit navigate that way i get turn by turn directions in less then 3 seconds . i don't even use the navigation app anymore i do everything from maps .
[HTC Sensation] crypted:
That will be LIB based for the actual app. I can't resolve that, it's the app's problem in its code and how it gains, processes, and operates with the GPS data.

Ever wonder why you stay on a street in the Nav app even when you're 15ft away? Libs process your data and try to force you onto the street... Only after you pass the maximum error distance do you get accurate locations as you walk further from the street. Libs.
[HTC Sensation] gilbert11231123:
ok i think i understand now, no big deal i get crazy fast turn by turn directions in maps ......thx crypted and great work..
[HTC Sensation] crypted:
v2.1 is out

Everyone, the latest version is out. It's a minor update.

I put a changelog on the thread now. It's just above the Notes section.

Also, there is a new installation method. You can install via a batch script. It uses adb push behind the scenes to install whatever patch you select from the menu options.
[HTC Sensation] Marteni:
2.1 worked a treat for me. Updated AGPS in GPS Status and had to wait 2-3 minutes for lock. Since then smooth as with all GPS Apps, GPS was real flakey before applying this Patch. Thanks heaps for your work crypted :)
[HTC Sensation] crypted:
Awesome! Which build are you using, and which method did you install with?
[HTC Sensation] Marteni:
Google specific build and Method 3.

Cheers!
[HTC Sensation] Shagman68:
My GPS Finally works!

None of these methods worked for me. Finally I took my wife's unmodified phone and pulled her gps.conf and SuplRootCert files and put them on top of my LeeDroid Rom. Now my GPS finally works again. :)
[HTC Sensation] crypted:
Could you private message me a link or something to obtain your wife's files? Would be useful to build another SuplRootCert build if it's different. ;)
[HTC Sensation] RiNo808:
I tried 2.0, 2.1 and my gps reception got worse then with 1.3...is that possible? And when I get a lock, I only can get within 19m and its spotty...with 1.3 I can get it to lock within 4 m...please help...

Sent via Sensation Z710a AT&T
[HTC Sensation] crypted:
#7 of the Notes section has particular relevance here. Basically, it is possible depending on the ROM. That note recommends v1.3 to people who experience this.

If you are willing to work with me to determine what variable is causing your specific problem, I'd like to figure it out for future reference. I could build 4 variants to compare against v1.3. Message me if you're interested.

Otherwise, just keep v1.3 until I can figure out what some people require for their particular setup. :confused:
[HTC Sensation] xstormli:
hey man, if you still remember me.

sorry i disappeared for a while,

i went back to my hometown,

and did not get online for awhile.

i just tried out your 2.1

fabulous work man, locked under 10 seconds.

under these conditions:

--location: haikou, hainan, China

--weather: cloudy

--environment: next to the window in a room on 21 floor of a 26-floor building

--program: AMAP, Chinese Navi/Map program (did not try out google map, it seems not working lately in China)

2.1 works fine in Asia i suppose, at least southern China and southeast Asia

this is definitely sweet stuff!

I'll post your products in our Chinese Forum shortly.
[HTC Sensation] Soween:
Hi,

First of all thank you very much for your work on this particular issue.

For me, one of the main reason I choose the HTC in favor of the Samsung was the GPS (good or bad point...), I really remember previous HTC with perfect GPS which were able to have a fix even while in the TGV (the very high speed train).

At that period it seems that the AGPS was only in addition with the real antenna, but perhaps I'm wrong.

Today i think that the GPS is really not usable..

I have a stock rom 2.3.3 which is rooted, an Incipio case. Using near Montreal, Canada. I use GPS status to check on GPS.

With this base I had GPS signal which was not bad/not good... let's say that it was really 50/50 to use in a car, it was a constant stress because it would lost the signal at any moment.

So I tried some of your packages:

- v1.3: not better, perhaps even worse.

- v2.1: idem.

Of course I don't use it from a clear field where I stand for hours to get a signal, I use it from buses or close to a window, as in real life.

I don't really know what I can do, I would be glad to help, as long as it is testing/trying, I don;t have skills to develop any package.

Thank you anyway for making some of us having better GPS 8-)
[HTC Sensation] crypted:
Are you using it with a case? Take the case off.

Which v2.1 build of the patch did you use?

I'd be interested to see your original gps.conf and suplrootcert if it came from the Bell stock ROM.
[HTC Sensation] Soween:
Ok I can try without the case on, but this is not real life for me 8-)

Plastic would be such an obstacle?

I use the 2.1 "google" as you considered it the best one.

May I still see those files since I updated with your packages? If yes, how/where can I find those?
[HTC Sensation] c19932:
I have CM7 alpha 8 on my phone and gps was working fine. I applied the T-mobile agps match from this thread and it kinda "broke" the gps. I live in San Francisco CA and it tells me I'm in Nevada. Any idea?

I flashed back to original CM7 conf file and it worked fine
[HTC Sensation] crypted:
I have released v2.2. Changelog is updated. A new version is out for LG phones. It might work with others just fine as it is only a change in SUPL to LG servers.

Still working on v3.x I promise!
[HTC Sensation] zoman7663:
Hey Crypted, Just wanted to say THANK YOU! On my Sensation 4G with RCMIX3D v.06 and Bricked 1.2 Kernel, I have never had good luck with the Gps until using your files. INSIDE the house got a lock in less than 30 seconds! Totally unheard of on this phone or my G2x. My G2 was good always, but this is bringing that quick GPS lock back into the picture! Using your new 2.2 TMOUS! Thanx Again! Good work!