yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] crypted:
Any variable typically operates as: 0 equals disable, 1 equals enable. A lot of times you'll see 2 as being something extra where other additions are mixed in such as more LIBs to calculate a location maybe. But no matter what 2 would mean for your ROM, it is possible that your phone cannot handle it.

This stems from the fact that so many ROMs and kernels come from newer phones and newer code designed for newer hardware. Just because you have the software to support something exra doesn't mean the hardware can do so. This can cause bottlenecks.

Apply that to the aGPS and you may end up with sub-par performance that this patch cannot make better without resolving underlying issues like the enabling of extra add-ons that your phone cannot necessarily process.

Doesn't always occur that you cannot use the additional setting, but it has been enough of an issue for me to see a need to point it out. I don't want people sitting high-and-dry while I'm unable to respond quickly So, I mentioned it with some other "major" problems I see when I'm trying to help others... :)
[Optimus One, P500 Android Development] haoss07:
I have a problem, i instaled the AGPS 3.1 i get a lock in 3-4 sec.:confused: but it show's on the map that i am 50 km from where i actually am. tested in igo and google maps. same result . using oxygen 2.0 b. any ideas ?
[Optimus One, P500 Android Development] cr157y:
Try alternate build, if it doesnt work try v 1.3
[Optimus One, P500 Android Development] hotshot05:
Whenever I try to flash v3.1 LG specific package using CWM,

I get this error -

"E:Error in /sdcard/agps.patch.lg.build.v3.1.zip

(status())

Installation aborted"

I have disabled signature verification. (And if I try using Signature verification Enabled, I get the error E:signature verification failed)

I am using CWM v5.0.1.0 and LG P500
[Optimus One, P500 Android Development] storm11:
stop cribbing use root explorer and copy it urself :/
[Optimus One, P500 Android Development] RevengeFNF:
I flashed 3.1 Google version on my CM 6.6.1 and im very surprised.

Im at work, inside a building, and the GPS Locked after 10 seconds... Very very good lol

Im gonna do some more tests, and i will donate something later.
[Optimus One, P500 Android Development] crypted:
Glad to hear of your success.
[Optimus One, P500 Android Development] eeee616:
AGPS Patch work in Vietnamese or only North America???
[Optimus One, P500 Android Development] mDroidd:
Worldwide.

Read and go away

Greets

___________________

mDroid - Tapatalk

___________________

Phone: LG-P500

ROM: Nitrogen _2.0b_v1a1

Kernel: custom .35

Theme: ICS (Z25 - paid. ported by me :D)

Tweaks: ALL

____________________

Samsung Galaxy Nexus

ROM: still stock

Kernel: stock
[Optimus One, P500 Android Development] crypted:
This patch works worldwide as the information states. Don't use other GPS fix tools from Market. It will override this fix.
[Optimus One, P500 Android Development] RevengeFNF:
What is the new agps management?
[Optimus One, P500 Android Development] crypted:
Well, a number of newer phones (non-HTC at present) have seen a swapping out for a newer and more robust pieces of GPS hardware. In time, this new standard will be on all devices. Assuming we upgrade once every two years, most of us will see this new hardware within two years upgrade options depending.

The newer hardware relies on XML instead of the gps.conf. Further, it uses a data file that contains 30+ days of GPS satellite location data to assist in locking. Right now, a large majority of devices available only support the xtra.bin format which contains up to 24 hours of satellite location data.

I'm not familiar with which devices pack the new stuff. But, I've read about it a bit and have had people telling me about it. It appears the data in my gps.conf will be transferable to make it operate quicker as well. I don't have a device of files to work with at this time. But, it's a non-essential since the new stuff is rare anyway.

Assuming a device can support it, it appears backwards compatible with the old stuff. By that I mean any device which could use the new data but uses a ROM obtained from some other device's source code typically uses the same old software setup what my patch is designed for.

So this will be interesting to see once those devices arrive... Will ROM dev's bake us some delicious treats with the new software required to take advantage of that hardware, or will this patch still be a necessity.

Time will tell.
[Optimus One, P500 Android Development] lmariachi:
Absolutly Outstanding!

Nice work!!!
[Optimus One, P500 Android Development] Dimak451:
I pushed to system/etc almost all of the gps.conf and suplrootcert and it didn't work, then I flashed the Google Specific CWM and it still didn't work. All I get are just 2-3 sats and no lock :(

am I doing something wrong? I'm from portugal, if that matters..

Thanks
[Optimus One, P500 Android Development] crypted:
Have you tried manually copying the files?
[Optimus One, P500 Android Development] Dimak451:
Yes I have. I did it with root explorer and copied the files to system/etc

(I'm running NexusGinger ROM for LG P500)
[Optimus One, P500 Android Development] crypted:
So the files are in place? And what are your issues? Did you remove the case?
[Optimus One, P500 Android Development] Dimak451:
yup, the files are in place, and all I get are 2 to 3 sattelites and it never locks. I have no case on my phone.

guess it doesn't work on my phone :(

thanks anyway
[Optimus One, P500 Android Development] 4D3:
Does this work on the ICS roms?

Sent by gremlins from space training to be ninjas!!
[Optimus One, P500 Android Development] mcd_legend:
may be

but you have ICS rom ?:confused:
[Optimus One, P500 Android Development] 4D3:
Wrong thread...thought this was the sensation thread!

Sorry. ...ICS is wicked thought

Sent by gremlins from space training to be ninjas!!
[Optimus One, P500 Android Development] 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.

EDIT: 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.
[Optimus One, P500 Android Development] crypted:
Just as I explained on another thread, I thought I'd paste it here for your indulgence.

It isn't hurting me, it's hurting you and the reason is in my quoted post above.
[Optimus One, P500 Android Development] titch.ryan:
Finally got this working after trying various different builds, thought I had broken my GPS for a while :/

Using mik_os cm7 6.5.8, build: LG 2.2 alt (deleted SUPL file) this now locks in under a minute.

Will test accuracy and connection later but so far so good.
[Optimus One, P500 Android Development] crypted:
Thank you for the input. Odd that it necessitates this, but I know of only one other instance where the suplrootcert file had to be deleted. This might be a resolution to CM issues discussed in the Notes...
[Optimus One, P500 Android Development] cbrts765:
how to use agps data

Hello, to benefit from this fix, do i have to be connected to internet when using GPS to get agps supporting data, or it is enough to get connected via wifi on regular basis to have agps data up to date? I have LG P920, still having problems to get quick fix, and it is not stable.

REgards
[Optimus One, P500 Android Development] crypted:
AGPS uses data connections for quicker results. You cannot achieve full benefits without a data connection because you cannot use cell-tower or SUPL-server assistance.

But, you could still achieve better results. You'd need to use an app like GPS Status, edit the settings to download aGPS data a few times a day, and be sure it does so at times when you're connected to WiFi or some form of data connectivity.
[Optimus One, P500 Android Development] cbrts765:
i have tried couple of versions on LG P920 stock firmware v21A (google and LG specific, 3.1 and 2 and 1.3 and 1.2), removing cover, removing battery...can not get GPS working properly.

I have been trying to download AGPS data just before going outside to test GPS, as well as keeping mobile internet up while being outside. Does not work for me
[Optimus One, P500 Android Development] crypted:
And by firmware do you also imply the stock ROM? Do you have a rooted phone?
[Optimus One, P500 Android Development] khoa02061986:
Special thanks to crypted

I use the P500, very precise positioning; wrong only 5-7m distance
[Optimus One, P500 Android Development] cbrts765:
Yep, stock firmware, rooted phone.
[Optimus One, P500 Android Development] crypted:
And your GPS is working otherwise? Without this patch? Are we 100% sure this isn't hardware?
[Optimus One, P500 Android Development] hzoner:
works on my LGP500... lock very fast in GPSFun app, in Maps faster lock than before... really works.... thanks...
[Optimus One, P500 Android Development] cbrts765:
yes, GPS works, it only takes long to fix (first time few minutes), afterwards (if navigation programm for example stopped and started again-less than a minute). It also looses fix frequently when navigating, even on open road without trees and buildings.
[Optimus One, P500 Android Development] crypted:
I'd like to refer you to my response to you earlier.

Please answer those questions.

Along with those above, have you tried other ROM's or radios?
[Optimus One, P500 Android Development] cbrts765:
Hello, GPS is working with and without this patch same way, i have not noticed any difference. I have tried couple of roms (official) and upgraded radio with upgrade to 2.3.5, so far without big help for GPS.
[Optimus One, P500 Android Development] crypted:
Have you reflashed the stock ROM to verify it won't work? I'd like to suggest that... However, I wouldn't discount the hardware being your root cause based on your discussion.
[Optimus One, P500 Android Development] Solace50:
To those who have issues with the GPS even with changing the SUPL server to various others. It seems that ICS has fully resolved any issues in the p999 to my knowledge regarding GPS locks. Even with this fix its like the AGPS data is not retained properly or something given the sats show but no lock is made after extended peroids of leaving the phone idle. With ICS it locks nearly instantly other then the initial lock even after 1-2 days of idling the phone. For those who cannot get ICS this is still useful otherwise i would recommend trying out the Alpha if supported for your phone and wish for a working GPS.
[Optimus One, P500 Android Development] crypted:
I'm glad that you are finding ICS to be good without this.

However, a lot of people report directly that this patch is still necessary for many ICS variants springing up.

I wish that ICS, or other future updates, would render this patch useless. At this point, such a direct solution remains to be seen.
[Optimus One, P500 Android Development] mcc747:
big thanks

would like to say thank you for such a great efford and my gps turns on immediately. :D

ps: could not find the thank you button as mentioned
[Optimus One, P500 Android Development] Bec de Xorbin:
I get nearly instant lock with this but unfortunately about 500 kilometers off. Accurate lock comes after 5-10 minutes.
[Optimus One, P500 Android Development] crypted:
That indicates that your phone is defaulting to tower-based information rather than GPS for your location. What app is telling you there's an error margin is 500km?

In location settings (for Android) disable all but GPS and try again.

Remove a case if you have one, too.
[Optimus One, P500 Android Development] nodyarg:
someone here mentioned this fixed their gps on optimus g2x on wind mobile but did not mention which file was used. can someone verify what file to flash for a g2x on windmobile?
[Optimus One, P500 Android Development] crypted:
Give Google build a try. Probably that one as it's by far the most used.

Have a revision in testing. Will release in three or so weeks.
[Optimus One, P500 Android Development] nodyarg:
I tried the Google one to no avail, ill try the Google alternate later but I'm starting to think the problem isn't with the GPS.conf, not sure what the cause could be but this is pretty weird...
[Optimus One, P500 Android Development] crypted:
What different ROMs and radios have you tried?
[Optimus One, P500 Android Development] nodyarg:
I dont think i have ever flashed a radio on this, unless it was required for rooting, but i dont see that step in the g2x cm wiki.

As for roms, I had windmobiles crappy stock for about an hour or two after unboxing, then various cm nightlies up until last week when i flashed the new eaglesblood ICS rom.

Im pretty sure the gps never worked, i just assumed it had something to do with winds spotty coverage, until i heard someone with identical configuration as me mention that replacing the tmobile line with the google line in their gps config gave them working gps...
[Optimus One, P500 Android Development] crypted:
I'd make sure the radio is best. Try a stable ROM too. Nightly and alpha ICS aren't great for gps stability. This further helps us eliminate issues.
[Optimus One, P500 Android Development] nodyarg:
Thanks. ill start with the radio. then ill flash cm7 official if i have to and report back
[Optimus One, P500 Android Development] crypted:
Consider a non CM variant ROM..notes discuss CM issues....
[Optimus One, P500 Android Development] nodyarg:
looks like my phone cant take a radio upgrade for now due to my bootleg carrier being so bootleg. im out of ideas
[Optimus One, P500 Android Development] sweettaniyaa:
Feel like there is a problem with your NTP server

I flashed your 3.1 cwm patch on my phone and (I don't know how many sats it locked but) it showed my location miles and miles away. I edited the gps.config file and added 3 more local servers and it locked in 6 sats max but still it showed my location as couple of km away. After that I removed your ntp server and let only the local server remain. It locked in 9 sats and showed my accurate location. I didn't make any changes to your xtra.bin settings. Feel like something could be wrong to your NTP servers. As I am using cm7.2 so I looked into the build.prop file but didn't find any "ro.ril.def.agps.mode" settings in it, as mentioned in your first page.
[Optimus One, P500 Android Development] crypted:
Sounds more like a peering or firewall issue somewhere between those NTP servers in my pool and yours.

I doubt very much that those NTP servers have issues as they are stratum II servers. Basically, they are what many, many companies use to sync time with. NTP.ORG servers are mainly random people running an NTPD daemon with public access on their servers... That's why I did away with using it and decided to go with world-class very important NTP servers for data.

CM7.x has been a beast of a burden for GPSing for a great many of people and is mentioned in a couple of Notes and is the basis for a few more notes that it isn't mentioned in...
[Optimus One, P500 Android Development] sweettaniyaa:
Alright so I added your NTP server along with the others and tried again and this time locking was pretty good. Got around 14 Sats. But then again it took a while before it started giving me latitude and longitude readings on my GPS stats. Maybe around 10-15 mins the first time I switched it on after a reboot. Is that how it should be?
[Optimus One, P500 Android Development] crypted:
It should be within 20 seconds. The first time could take up to 50 seconds. As I recall, you haven't tried a ROM that is closely tied to your device's stock ROM. Please try that with the patch. CM has had a number of flaws for GPS usage. I can't overcome ROM issues.
[Optimus One, P500 Android Development] 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
[Optimus One, P500 Android Development] richua:
New Google specific build without SSL just contains the gps.conf file, right?

And correct me if I'm wrong here: the new Google build just released seems to be the same as the 3.1 Google Alternate build, just with intermediate_pos set to 1. So, if I currently want the new no SSL build but in Alternate form, I don't need to do anything?
[Optimus One, P500 Android Development] crypted:
Right, one file only... No SUPL needed as there is no SSL.

It is identical to the Google Build (not the Google Alternate) except for a couple of lines in the SUPL section (near the bottom of the conf) are commented out as compared to the Google Build. Essentially, you could comment out the same lines in the Alternate build to have the same effects if you're in a situation requiring the Alternate option.
[Optimus One, P500 Android Development] richua:
Got the new Google build and swapped the intermediate_pos flag to 0. It's a rainy and cloudy day here today and with the new patch and after a fresh reboot + cold GPS start, I got a lock in 27 seconds. :eek: The same scenario with the old 3.1 patch takes around 2 minutes and even that is still a huge improvement over stock.

I'm definitely donating again. This has already paid for itself.
[Optimus One, P500 Android Development] crypted:
Well thanks! I'm glad that this continues to help you. I'm perplexed by the long delay even as 27 seconds. But, I don't have this phone to toy around with. It might be a hardware limitation of some sort.

Just to be clear, intermediate_pos is a positioning flag. If enabled (1), it permits the phone to start gathering data from GPS satellites that aren't completely locked onto. This can speed up your positioning time. However, there are some devices or device/software combinations that cannot handle this flag being enabled.
[Optimus One, P500 Android Development] richua:
I ran into an issue with the flag enabled and brought it up I think a few pages back, or maybe in PM. The locks were quicker, yes, but not entirely accurate and my location in nav and other apps would jump around often. This probably was a combination of CM, my nav apps, and the hardware.

I just switched the flag back to enabled (that is, stock Google build without SSL) and again saw the quicker locks. This time around, the jumpiness was not so bad. I only lost my place in nav twice today and got it picked up a few seconds later. I think I'll run it like this - with CM, nav, and this patch being updated since my last issue, things seemed to have smoothed out.
[Optimus One, P500 Android Development] crypted:
Sorry for forgetting! I have had a heck of a time keeping the large amounts of discussions separated.

Let me know if you find that =1 is definitely needed in your case. We can work together in Private Message to draft a decent Note for people to understand the =1 better. I don't have issues so I really am not in the best place to write good info on it.
[Optimus One, P500 Android Development] 4wd vege:
Great Work!

Worked out of the box on my Lg Optimus One with the lateset CM7 nightly.

Very happy.
[Optimus One, P500 Android Development] Gruber11:
which file did you used from first post?
[Optimus One, P500 Android Development] 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.
[Optimus One, P500 Android Development] richua:
Chiming in to say the patch works well on CM9.

One question in general: sometimes my GPS will drop out completely while in use and won't lock onto any satellites until I reboot the phone. I've had this happen to me on my Nexus One and G2x with CM7 and CM9, possibly even stock too (but I never used stock for very long on either phone).

In your opinion, is this a hardware error where GPS simply stops working, or is it more related to the connection or GPS data?
[Optimus One, P500 Android Development] crypted:
I'd suspect rom or gps internal configuración. I'd like to know results from a close to stock rom with this patch on top.
[Optimus One, P500 Android Development] ThePresence:
I'm unable to flash this it gives errore I'm on cm 7.2 rc1
[Optimus One, P500 Android Development] crypted:
There are two other methods of installation listed on the first post.

It isn't the patch with an issue, rather your recovery doesn't support the update binary used in the flashable versions.

I cannot make and maintain 100+ variations for all 24 supported devices.
[Optimus One, P500 Android Development] Bec de Xorbin:
There was a bug in CM7 since end of October(!) that prevented using A-GPS altogether. That's why getting a lock took ages, also with this. I complained the slowness here and now I apologize.

It is now fixed in latest nightly. GPS's now blazingly fast even with gps.conf shipped with CM7.
[Optimus One, P500 Android Development] crypted:
No worries. The Notes Section discussed this since October 2011, though. ;)
[Optimus One, P500 Android Development] Bec de Xorbin:
Oh snap :eek::o

But now it is fixed ;)
[Optimus One, P500 Android Development] crypted:
Today, AGPS Patch has reached a total number of 28 officially supported devices.

Support was added for the Asus Transformer TF101, Samsung's Galaxy Nexus, Samsung's Galaxy S I9000, and HTC's One X.

I predicted that companies would get wiser and start providing properly built stock ROM's for GPS usage. That was incorrect. I'm willing to research and work with people to bring more devices into the fold.

There have been millions of downloads of my personal xtra.bin data and tens of millions of queries submitted through the DNS pool I maintain for Stratum II time servers. I lost track of the number of ROM's that have incorporated this patch. In fact, v3.x began 11 months ago and has brought worldwide help to the masses.

And remember, I don't have to release new versions of this patch locally because it has been so fine-tuned. But, I'm always working on the xtra.bin data almanac and the Stratum II time servers to keep this thing going strong.

To the few that have donated to support the many, thank you very much.

If anyone would like to continue to support this project

for growth in more devices and continual data provisioning, please consider donating as well.
[Optimus One, P500 Android Development] bautroibaola:
AGPS Patch doesn't work on JB 4.1. Do you plan upgrade thí project?
[Optimus One, P500 Android Development] crypted:
It DOES work on Jellybean. Please elaborate how you reached this conclusion in your OWN environment.