yashsingh1/xdaforums huggingface dataset:
[HTC Inspire 4G] crypted:
If it's in a case, remove it and try again. If v1.3 worked, might as well keep it. There is no legitimate change from those other than my xtra.bin provisioning. However, that has proven 100x better than Qualcomm's for seemingly all other users.

I'm very perplexed. If you have other GPS tools installed (aside from GPS Status) please remove them as well.

Inside thick housing and not near a window, too maybe?
[HTC Inspire 4G] Seanbest:
No other GPS stuff. Same house and same testing as with 1.3. I'll try reflashing, then going back to 1.3 I guess.
[HTC Inspire 4G] crypted:
A user has confirmed that build.prop settings are very important. For best GPS operations with the patch, it needs to be "ro.ril.def.agps.mode = 1"
[HTC Inspire 4G] RampageRR:
I am using a user's SCI MIUI rom, and the value is set at 2. Should I change it to 1?
[HTC Inspire 4G] crypted:
If you're having problems, sure. Or, you can try it out just for fun even if you're not having problems. I'd like to know the results if so! :)
[HTC Inspire 4G] RampageRR:
Just switched it up and flashed 3.0. Will report with results.

Edit: changed value to 1, flashed 3.0 google. Went from 45 sec lock to 9/9 satellites in 3 seconds, 5m accuracy. Wow. Thanks!
[HTC Inspire 4G] d00mz:
If more evidence proves this to be required, you're gonna need to update your directions. CM7.10 also has the build.prop with this value at "2".
[HTC Inspire 4G] crypted:
It's already in my Notes section for the next time I do a thread update.

It would be a bad idea to incorporate this into the standard instructions because it appears to be a CM ROM issue. This is designed and works on literally all ROMs. I would confuse a majority of the users.

I might make a mention to review two notes related to CM if you are such a user, though.
[HTC Inspire 4G] Seanbest:
Easiest way to do that without root explorer? I got it for my phone, and not hers though.

Sent from my SGSII (Cognition X2) using the XDA App
[HTC Inspire 4G] crypted:
Method One?.
[HTC Inspire 4G] heathroi:
build prop edit = 1

that made a lot of difference getting locks inside the house within moments - weak signals of course and 70 odd foot+/- error ( on gps test)
[HTC Inspire 4G] papa bewr:
I changed it to a 1 and now my GPS is perfect. Also flashed 3.0.

Sent from my Inspire 4G
[HTC Inspire 4G] crypted:
That variable will be heavily dependent on combinations of the ROM, Radio, and RIL.

It's definitely part of my soon-to-be-updated Notes and Additional info sections.
[HTC Inspire 4G] 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 Inspire 4G] :
running absolution mod on inspire 4g. went from 5-8mins to get a gps lock outside to under 10seconds using 3.0 agps patch. great work!!!
[HTC Inspire 4G] ladiesgod:
Sorry, EXACTLY which one did you download? Thank you
[HTC Inspire 4G] :
http://derekgordon.com/gps-files/agps.patch.att.build.v3.0.zip

the AT&T build.
[HTC Inspire 4G] crypted:
I wonder if the Google build would be even better. For me, it certainly is! :D

AT&T doesn't provide SUPL server hostnames. It relies instead on what only I can interpret as being hard-coded servers in some LIB somewhere. If that LIB isn't present, it won't be assigned and SUPL won't be used. That doesn't mean aGPS won't work, just that server-side assisting won't...
[HTC Inspire 4G] :
I will give that one a try tomorrow and see.
[HTC Inspire 4G] d00mz:
I have what I think, is a weird activity.

After applying this patch; when I fire up GPS Status or GPS Tools, I get several satellites very quickly (usually less than 10 seconds). The programs even show they are using 8/8 or 10/10 satellites. However, the programs do not get GPS Lock for anywhere from 45-300 seconds. All the time, seeing and reporting they are using 8/8 or 10/10 satellites.

Why is there such a delay in getting a true GPS Lock? The programs report they are seeing and using all the satellites, and the number they see are sufficient for a lock.

I'm using CM7.1, the 10.04.03_M radio with correct RIL. I've also changed my build.prop to show RO.RIL.DEF.AGPS.MODE=1. This is with and without the cover, outdoors, under a clear sky.

Is this normal?

Does anyone else's device show this behavior?
[HTC Inspire 4G] crypted:
It may take two minutes for the first full lock, but after that it should be fine.

Read the Notes section. There are a few specific to CM.

I'd try one more thing. Flash the Google Alternate Build so that a variable is set to 0/disable that may be an issue. It seems like your device is having a real problem with intermediate lock processing. This is very, very odd as Inspire 4G's should have this capability natively. This Build will disable it.
[HTC Inspire 4G] d00mz:
OK, trying that today at lunch. :)
[HTC Inspire 4G] stretch148:
about had given up on my gps. was excited to see this.

first, it didn't work, but this may be because I had also used GPSfix...some app. symptom was, brightness was 10. middle of the night clear sky...tons of stars, would not even lock on the first satellite. Left it sitting and spinning for 10 mins or so. nothing.

read note that says, don't use other gps fixes....doh! so, i flashed my LeeDroid back on again....applied the Google 3 patch...first try, lock within a minute. all locks since... instantaneous. VERY VERY VERY HAPPY!
[HTC Inspire 4G] bigdog533:
I flashed the google build 3.0 and still my gps takes about 10min to get a lock (without the case on) I followed option 3. I had the version 1.1 on but gps was getting a little slow figured i'd try 3.0 but it seems worse. Is it something I did wrong?

Edit: Also Im running Cleardroid 1.3.1
[HTC Inspire 4G] crypted:
Inside/Outside? Case? Radio? RIL? Data connection? Build.prop (Note #5, could experiment to see)?

I'm pretty sure Cleard bakes my patch into his ROM, too.

EDIT: Notes 15, 16, & 17 may be useful as well...
[HTC Inspire 4G] crypted:
Version 3.1 is released. If you didn't think it could get any faster, well you may be surprised. Beta-testers are swearing to instant locks. My magic tricks sure do pay off!

Pay off? Speaking of that... There have been 30,000 downloads of v3.0. My server has served over 100,000 xtra.bin downloads. And even though I stated that this costs me money to provide,

there's been zero donations

since v3.0 was released. A few bucks really can help defray the hosting and provisioning costs I incur to keep y'all running top notch. If each user gave $0.10, that would be worth a whole dediated server for a year. Just sayin'.

Devs: I request that you notate your threads with which version of my patch you're using. If you include v3.x, please note the cost to your user base. Send me a message if you're using the patch so I can keep track and keep you in the loop of any impending changes.

With that, let me know how well this performs for you. I'm interested whether users see an increase in performance over the amazing speed that v3.0 provided.
[HTC Inspire 4G] ClearD:
Yessir. Version 1.3.1 is running crypted gps mod v3.0 :) I made a mistake both in the OP and Rom manager... We have been running crypted's for a while now.
[HTC Inspire 4G] Jasoninaz:
Man this tweak kicks ass.
[HTC Inspire 4G] crypted:
Let everyone know that!
[HTC Inspire 4G] wmg316:
I seem to have better luck with the Google Specific CWM Flashable vs. the Google Specific. I don't understand why...could you explain the difference in the two?

Thanks.
[HTC Inspire 4G] crypted:
That would be a placebo and very strange. Let me know specifics on that.

Literally, they are exactly the same! The only difference is the update.bin file which deals with flashing.
[HTC Inspire 4G] wmg316:
Ok then...I'll take the placebo explanation. I really think it is my house...or my location!! I sometimes get very quick locks; I sometimes don't. Same with internet speed tests...sometimes quick...sometimes SLOW!

I will try v3.1 now...

---------- Post added at 10:09 PM ---------- Previous post was at 10:03 PM ----------

Quick question...using Method 1, is there something to look at on the phone to verify the installation?
[HTC Inspire 4G] crypted:
Open /etc/gps.conf and see if it has my ntp pool...
[HTC Inspire 4G] drearg:
Just tried agps.patch.att.build.v3.1 and worked great!! Used method #3, CWM.

Using CWM ver 4.8.0.5.

Currently running Virtuous v2.39.0.

May try Google build to see if any difference.

Had to do step #14,16 in notes but excellent results!!

Got to reload, got you a beer though!!!

Thanks!!
[HTC Inspire 4G] crypted:
Glad you like it. Let me know if you notice better lock times and such with v3.1. I think this NTP pool will help a good number of people.

Some may not benefit that much because they may have been lucking out with fast NTP servers on their own...definitely coincidence in my humble opinion.
[HTC Inspire 4G] wmg316:
This is probably not relevant to Android devices...but I just have to ask (since I am BRAND NEW to the Android scene)!

On my Tilt 2, I always edited my registry to get better locks with my GPS to a "nokia server" as follows:

[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\SUPL AGPS]
[B]"DynamicURL"="supl.nokia.com"[/B]
"EnableAGPS"=dword:00000001
"EnableLocInfo"=dword:00000000
"ServerIP"="66.35.236.25"
[B]"ServerURL"="supl.nokia.com"
"TLSHostName"="supl.nokia.com"[/B]
"APN"="wap.cingular"
"Network"="MEdia Net"
"GPRSConnection"="MEdia Net"

Is that something that can be implemented on an Android device (I know there is no registry; but looking in the gps.conf file, there were similar command lines)?

Or is this totally irrelevant to Android?
[HTC Inspire 4G] crypted:
It wouldn't do you much good to use it, but you could try to rip the SUPL information. The issue will be not having a suplrootcert.

EDIT: Also, you won't have the full aGPS ability if you use the basic gps.conf. Mine has all the right crap in it. I'd recommend the Google Build, and yes I'm an AT&T customer too.
[HTC Inspire 4G] d00mz:
3.1 is great

Holy crap man, 3.1 is amazing on CM7.1!!! I flashed the 3.1 CM version.

Donation coming bro, this is incredible work.

---------- Post added at 01:03 PM ---------- Previous post was at 12:55 PM ----------

I strongly urge everyone who is pleased with this to donate. Even if its just a buck. The dev community here is part of what makes us love these phones. Thanks again Derek
[HTC Inspire 4G] crypted:
I wanted to post a few things to the user community.

1. If you're a DEV and are using this in your ROM, please private message me your ROM thread and which version of this patch you're using. This will be useful with tracking, letting you know of updates for your ROM, and supporting users. If you know of this being used in a ROM, and you're not a DEV, you can report it to!

2. Version 3.1 is a great success. Today alone, the xtra.bin has been served 61,441 times to aGPS Patch users. The 3.1 files have been downloaded almost 10,000 times today as well.

3. Updates will continue to occur server-side for v3.1 and beyond. This means that barring any unforeseen issues, v3.1 will stick for some time without a predecessor. As you may have noticed, your xtra.bin and your NTP pool are through me! This means I can keep providing incoming data for you without needing to update the patch to achieve the same changes. Feel free to toss a penny in the pot.

4. Rate the thread! Some threads have been rated nicely. Others have been attacked with +1 ratings by users who failed to read instructions and/or seek help fixing their issues. This gives a bad impression to new users on XDA. I shouldn't be held accountable for hardware, ROM, or other software related issues out of the control of this patch.

5. Let everyone know of your success. If you're using this patch, let people know what ROM, RIL, Radio, and case you're utilizing. This will help greatly in supporting users who want to know what to use this patch with for best results. I only own one device I officially support, so it's hard helping those seeking assistance with those pieces of advice!

Thanks again for being supportive of this project. I'm glad that I could assist many of you with the same GPS issues I was facing. I literally decided not to buy a new GPS for my car after fixing this issue when my first version was release. :)
[HTC Inspire 4G] muneebrocks:
I like to report a problem

The thing is that my gps is on I notice that sometimes gps icon in the status bar disappears and comes back in a second however its not a visual glitch because if i have let say 5 satellites locked when this glitch happens all of the goods away
[HTC Inspire 4G] crypted:
Rom, radio, ril, and are you using a case? Reviewed the notes section?
[HTC Inspire 4G] muneebrocks:
ROM android revolution rom 6.1.5 speck case, google build 3.1 and never flashed a radio also what is ril?
[HTC Inspire 4G] crypted:
I don't think you read my Notes section. Reviewing a Speck case image on Amazon.com, it's clear that your case is blocking your GPS antenna.

Remove the case and try again outside where you have a clear view of the sky.
[HTC Inspire 4G] nymikey:
It's the SPECK case, i had one and i got rid of it. No what rom or patch you flash you are going to have issues...
[HTC Inspire 4G] muneebrocks:
Took off the case with no net connection and with gps on went to my garden could see two stars in the sky waited a minute not even one satellite detected
[HTC Inspire 4G] crypted:
Agps requires a data connection of some sort. Assuming you're using a good Rom like arhd or coredroid, I would suggest reading the last few notes in the notes section particularly the hardware one.
[HTC Inspire 4G] muneebrocks:
ummm magic?

turns out case wasnt a problem tried v1.3 now i get a locks within 20 secs with 3 tries and no internet only gps activated
[HTC Inspire 4G] crypted:
Sounds like you found your winner. Yes if you're not going to have any data connections, I wouldn't try for 2.x or 3.x. You didn't tell me that you wouldn't ever have one. I thought it was just a temporary deal when you were playing with it. ;)
[HTC Inspire 4G] muneebrocks:
Thanks for your patch and im miser to the bone will never ever use mobile network when there is free wifi I actually spend $1 a month or less for calls and smses
[HTC Inspire 4G] heathroi:
Hey karachi, if there is a suspicious looking dude down the street, standing on top of a ladder with a homemade tube antenna, he's stealing your internet to use with cryptd's GPS files :D
[HTC Inspire 4G] muneebrocks:
High score

PS This is with a speck case and no Internet and im using v1. 3
[HTC Inspire 4G] eryk4381:
Case alternative other than Speck

I have a speck case and my testing results have confirmed that it does indeed degrade performance with GPS. I'm wondering if anyone has any other cases they have tested that don't affect gps as much. Any case reviews, screenshots?

Thanks in advance.
[HTC Inspire 4G] crypted:
I use and recommend seido cases. I have an innocase for my and my wife's phone. I've bought the active case and its good too. They have half of the led panel on the back showing. That's where the gps antennas located.
[HTC Inspire 4G] nymikey:
I have both the Seido case and a Otterbox commuter case, both are great with no gps issues...
[HTC Inspire 4G] Jasoninaz:
I was lucky enough to see how good this script works. I was able to get 13 Sats today and its the first time I've seen that. It was semi perm lock but I did get to see it.
[HTC Inspire 4G] muneebrocks:
P

Take a picture next time please
[HTC Inspire 4G] Jasoninaz:
Very hard while you are driving, point me in the direction of a free working auto picture app that uses root and I'll set it on the route and try and get that 13 again. I think it was the time of day with was 8:00AM.
[HTC Inspire 4G] Salpula:
Thanks for this fix. Don't know why I didn't try it sooner!

On CM7 and didn't have to edit anything. It "just worked".
[HTC Inspire 4G] wmg316:
Out of the 2, which has the most influence on our GPS locks? The Radio? The RIL? Or are they irrelevant?
[HTC Inspire 4G] crypted:
I have never experienced negative results from the radio and ril combinations I've used. But, others have claimed major issues.

For the Inspire 4G, I believe the actual issues come from hardware, bad cases, and ROMs.

Sent from XDA App
[HTC Inspire 4G] shugga101:
Works with the Ics port. found location in less than 10 seconds
[HTC Inspire 4G] crypted:
Wow! I'm glad to know it will be useful for ICS users. If more confirm, I'll make a massive update post stating that fact.
[HTC Inspire 4G] ClearD:
Just for confirmation, the Radio affects a little more than the RIL, but yes, both will affect your gps performance significantly. For best performance on the Inspire, use only the Inspire radios. I found this out the hard way recently. The latest DHD radio in fact got me 0 sats for days. Reflash of the stock inspire GB radio saw a lock in 5 seconds. So in short, yes, they do make a huge difference for some users. :) So if you're having problems getting a lock, try a new radio!
[HTC Inspire 4G] crypted:
You and your theories. You're out of control D! I'm going to report you. Finally, someone confirms more of my points from other discussions. Sorry I didn't respond on GTalk about this. I was out of town until about an hour ago.

Tons matter. The hardware has to actually function. The ROM has to have aGPS enabled in its code. The Radio has to allow for the GPS hardware unit to be utilized. And, the RIL are like drives that tweak readings from the Radio.

This leaves us with the step I work with. I work to provide the rest of the puzzle by supplying a properly configured GPS.CONF with SUPL server information and authentication certificates as necessary. This allows for the full aGPS experience to be achieved.
[HTC Inspire 4G] ClearD:
Couldn't have said it better myself :) For reference to everyone:

RIL: 2.2.0179HM

Radio: 12.56.60.25P_26.10.04.03_M
[HTC Inspire 4G] d00mz:
I dont want to bogart this thread, but could you point me to the ICS Port you're using on the Inspire 4G?
[HTC Inspire 4G] shugga101:
If you searched you'd find it easily. Or just look in the development section. The port is in the beta stage some things work and some things don't read the OP too if you want to test out the beta and help the dev with bugs to help better the ROM.

http://xdaforums.com/showthread.php?t=1374912
[HTC Inspire 4G] tmt64:
For CM7, what does each value mean for:

ro.ril.def.agps.mode = 0 or 1 or 2

??
[HTC Inspire 4G] crypted:
RIL is like a driver, as I discussed above. ROM usage of variables can be different.

That being said: typically, a 0 value disables something. The 1 normally is an enable. Then, 2 is for a customized enabled option.

One would assume that a 2 would be for specific hardware/software capabilities. Thus, many would want it to be set to 1.

So, it would be proper to set aGPS to 1 in most instances unless you know your ROM and your hardware support some extra GPS feature/capability where 2 is required.
[HTC Inspire 4G] d00mz:
I'm running CM7.1 on my inspire 4g. I found by changing this value to "1" from "2" greatly improved the performance of the GPS. Give it a shot for yourself. Don't forget to reboot after you change it. ;)
[HTC Inspire 4G] notobsessivejustcurious:
I can vouch for this.. instantly gained 5 sats. inside my house.

There is no spoon...
[HTC Inspire 4G] AngelDeath:
I havent followed this thread at all, and not to take anything away from crypted's work, and I just happen to go to the last page and saw ClearD make this statement and just wanted to comment. With no disrespect to you ClearD, but that state is incorrect.

I use an inspire and I have been flashing the DHD radios on my phone and using Capy's DHD rom (I always have to change the Ril to match the radio), and I never have had a problem with locks, (Do understand that I am using my files and not crypted's as I make this statement). The longest wait time for any lock on my phone has been 30 seconds.

The radio does play a apart in the gps, but being that the gps chip is the same as the inspire, the radio I believe isnt the issue, actually there are 2 libs that make the difference. Cause I am using the newest DHD radio, and my gps is unchanged as far as locks and speed is concerned.

I just didnt want you guys looking in the wrong location for something that I have found no bearing as of yet.
[HTC Inspire 4G] crypted:
As I said before, there are a number of factors involved in GPS, aGPS and other phone components. While I haven't had direct issue with Radios and RILs, I've had a lot of people do their own form of testing and suggest this.

As I said in the system breakdown above, I only dabble in the GPS configuration and data supply area. But, I do know that with certain ROMs, you must modify the build.prop as discussed in my Notes section.

Likewise, I know that certain ROMs come out with aGPS disabled in their compilation. So, you have to have everything in working order from the ground upward if my supplied patch can do anything for that individual.

Formula: Working ROM + working Radio + working RIL + corrected build.prop (in some instances) + my patch = success.

Now, aGPS utilizes a data connection to obtain the xtra.bin and time. If a bad Radio or RIL was prohibiting that download, you're SOL unless you are in one of those very few areas where GPS locks without assistance are easily achieved.
[HTC Inspire 4G] ClearD:
That may actually support part of what I have been thinking lately though. Many of my rom users have been using the inspire based rom with DHD based radio and Ril (all 3 Ril library files) and not getting anything. With the same ril but the inspire radio, myself and several others report a massive gps change for the better. Granted it is a clinical trial, but I am guessing that the proof is in the massive testimonials I've gotten since asking users to make the change lol. Maybe again though, that one radio was just bad? But maybe it is in the rom base. :)
[HTC Inspire 4G] AngelDeath:
Understand this, The only Rom that I have had any issues with in my testing has been CM7 builds, it seems its the only Rom that has the slowest lock times. I do agree that everything has to be right, but also take into these things into consideration:

1) Ril/Radio flashing, Possible Bad flash/corruption.

2) Rom Base possible bug,

3) Depending on Location, time of day, and overload or servers (Assuming you are using a Generic gps.conf, will INCREASE lock times.

4) AGPS is an xtra.bin file of the last know locations of the sats in the sky, they are updated approx. 1x a week, If a sat or sats in the area are having bad weather, or magnetic interference, this will also reduce lock times.

5) One that most people forget as well which also makes a difference: Kernel(s). There is code in the kernel as well for the gps.

6) And last but not least, Hardware Failure, Some people dont realize how easily the wire can come loose from the actual phone, The connection is similar to a wireless card in a laptop connection. Also just about any hard or soft casing will reduce radio freq to pick up gps signals, which also includes holding the phone in your hand. The Gps antenna is located either on the left side just below the Volume buttons, or on the right side directly opposite.

As for build props, I never touch them, I mainly use sense roms, and even when I was testing them with other roms (non-sense) I never played with the build prop, unless it specifically had a line disabling the the gps, or their was a "ro" command line in the build prop.

One thing I always use is GPS Status to download the AGPS and obtain the lock, after that one time, I usually never have an issue, do also understand that going more then 3 days without using your gps in my book would constitute a cold lock when trying to attempt a lock, which I would suggest re-doing GPS Status for the AGPS data download.

I have recently updated all the 1.0 regional files that where attached to post 1 and 2 to V1.2, Post in Inspire forum and HD2 forum have been updated incase you want to try them.