yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] crypted:
Do my above suggestion. The one about setting a variable to 0 or flashing the alternate build.
[Optimus One, P500 Android Development] Javi22:
Yes as you can read in one of my previous messages, I did it and worked, it fixed completely Gps according to the app "gps test",

but then maps cant obtain my location unless I set "use network". So it should by maps problem.
[Optimus One, P500 Android Development] crypted:
Have you tried to re-install Maps?
[Optimus One, P500 Android Development] nd4spdbh:
Hey crypted, i got a quick question... i have my LG p500 (p509) on the Tmobile network...

I have been using the LG specific version and its been great, but would it be even more beneficial to use the Tmobile specific build?
[Optimus One, P500 Android Development] crypted:
Not necessarily. It allows you access to T-Mobile SUPL servers, but they do the same at LG. The question becomes one of data transmission and latency between LG to you vs. within T-Mobile's network. But, I would argue that it wouldn't matter because T-Mobile's server appears to sit outside of their local network.

Can always try and report back. I don't mind being proven wrong! ;)
[Optimus One, P500 Android Development] Javi22:
Yep tried but no result....

Its too strange :D But its ok you cant do more
[Optimus One, P500 Android Development] eXDee:
Just wondering the purpose of

AgpsServerIp=3232235555

When this is simply 192.168.0.35 in decimal. Which isn't going to exist for almost anyone, as this is a private IP, making it pointless and useless?
[Optimus One, P500 Android Development] crypted:
It makes the aGPS daemon run with that IP. Some apps apparently needed an IP for accessing it rather than via the process tree. This is old and I'd say it's almost useless. But being that it doesn't hurt anything, it was decided to keep it in case someone with an old school phone and/or app needed it. It is on the possible chopping list for v3.x at some point. There are two, possibly three, planned releases for that trunk at this point.

FYI: We are wrapping up testing of v3.0 beta 4. I anticipate that being the last of them and will resemble the final product. Most variables will be split into sections with descriptions. It won't be in-depth, but it's enough for a good general understanding.

---

Edit: Also, using that IP keeps it off of the 192.168.1.x for making the phone a router, ensuring no conflicts. I believe that's the default range for the router but I don't use it enough to know.
[Optimus One, P500 Android Development] 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! ;)
[Optimus One, P500 Android Development] Bytecode:
Hi crypted,added your patch to the N00B repo :)
[Optimus One, P500 Android Development] 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.
[Optimus One, P500 Android Development] Javi22:
Whats the difference between "LG Phone Specific build" and gps.conf only, or any other? lg specific is the better for us?

and other question, can I flash it from Amonra recovery? :)
[Optimus One, P500 Android Development] crypted:
The builds reflect different supl servers. LG provides its own server so a build has that incorporated. Each build title says which supl it's built around. Gps only versions do not address supl.

Try to flash and report back. If it doesn't work it will give an error nothing more. If it fails, use another method.
[Optimus One, P500 Android Development] storm11:
Thanks a lot =) if i was working i would have surely donated =/
[Optimus One, P500 Android Development] 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.
[Optimus One, P500 Android Development] Javi22:
flashed on Amonra recovery, didnt work, just gave me an error as you said. So I used the manually metod, with root explorer

Copied gps.config and SuplRootcert, but nothing from META-INF folder, is it right?

Edit: gps working peeerfectly, tested with GPS test, btw maps still not working by gps for me. Its my own problem...
[Optimus One, P500 Android Development] crypted:
Try Navigator or another maps program like Mapquest.
[Optimus One, P500 Android Development] richua:
Thanks for this great patch.

arcee from the CM team has written that the Tegra GPS driver in the LG O2x/G2x looks for SUPL_CERT in gps.conf, not SUPL_TLS_CERT. Is this something you or your testers can confirm?

I manually switched it over and get locks about a minute faster.
[Optimus One, P500 Android Development] eXDee:
Where does your xtra.bin come from?

I downloaded it and the hashes are different, so i assume you're not just mirroring the files?

exdee@webserver:~$ md5sum derek.bin

a656ed428036c152eacad48288b3728b derek.bin

exdee@webserver:~$ md5sum xtra1.bin

52e7aee41de29f8c85378935aed246ab xtra1.bin

exdee@webserver:~$ md5sum xtra2.bin

52e7aee41de29f8c85378935aed246ab xtra2.bin

exdee@webserver:~$ md5sum xtra3.bin

52e7aee41de29f8c85378935aed246ab xtra3.bin
[Optimus One, P500 Android Development] crypted:
I'll see about that. Are you saying this is for all ROM's or just CM's ROM and how its driver handles SUPL? One would assume that if it were just CM, I could add the extra variable to the patch for LG specifics. But I do find it odd, the LG stock ROM used the TLS in the gps.conf I retrieved.

T'is a secret I will never tell!!! If you review the start of some of my threads, I was accused of sorcery, witchcraft, magic, and being a lying scoundrel. Further, it was laid out that I wasn't worth anything to the development community. That part may have been right. :D
[Optimus One, P500 Android Development] richua:
This was anecdotal information put out by the owner of the CM KANG that I'm running so I'm not too sure. He works closely with arcee on a variety of issues. I would venture a guess that it is specific to CM on LG devices but it is the first time I've seen that in any gps.conf file. For now I wouldn't worry about it. I'm using the stock SUPL_TLS_CERT variable and it works fine.
[Optimus One, P500 Android Development] crypted:
Thanks for the follow-up. Let me know if it ever comes evident that the variable has become useful on other ROMs you use. It could be that a stock upgrade had changes in lib's that necessitate that variable be changed, but that would also mean that an upgraded stock ROM would have a new gps.conf evidencing those changes. I don't know when the gps.conf I received from stock was made relative to any upgrades.
[Optimus One, P500 Android Development] ashishsaggu:
how do i use this in mik's cm 6.5.8, plz help and which patch shuld i use??
[Optimus One, P500 Android Development] crypted:
Read the first two parts of the Notes Section.
[Optimus One, P500 Android Development] ashishsaggu:
i did.. but none of the methods seem to work for me...
[Optimus One, P500 Android Development] crypted:
What doesn't seem to work? They fail to copy files? Or, you fail to receive satellite signal? Please paint the picture for us so that someone can try to assist you.
[Optimus One, P500 Android Development] ashishsaggu:
1st and 2nd method... cudnt get the files to copy... both sed fail!! but nw the recovery one worked and i copied the google specifed patch via cwr. will try gps nw.. thnks
[Optimus One, P500 Android Development] Garuxa:
@crypted your patch (I tried Google Specific 3.0) works great on Oxygen, in just 3 to 5 seconds I detected about 8 to 12 satellites :)

Great job! ;)
[Optimus One, P500 Android Development] nd4spdbh:
crypted, thanks for your time and effort with this patch seems like it works well for most.

Earlier it obviously didn't work for me... no lock or lock way off (2.0) with 2.2 and 3.0 it works much better, BUT it takes some time for the first initial lock... im talking it will never lock on, you have to turn off gps, then turn it back on and relaunch app. i tried both LG specific and Tmobile specific (im on tmobile usa network) of both 2.2 and 3.0 and they both did the same thing... and on occasion would lock on way off in the same spot 2.0 would (somewhere in nevada... im in southern california)

Thinking it might be my rom i went back and grabbed the gps.conf from the ORIGINAL from the factory tmobile / lg rom that i had a backup of (there was no suplrootcert). I deleted your suplrootcert and gps.conf... put the original factory gps.conf in place changed permissions, rebooted. I let the phone start up. turned on gps, started maps... boom almost instant lock, no need to turn gps off turn back on and restart maps. so it looks as if im sticking with this gps.conf from the original rom. I attached it, maybe theres something in there you can use :)
[Optimus One, P500 Android Development] crypted:
If you're in the mood at some point, please re-use my GPS (don't care which build) but do not use the SUPL. Let me know if that fixes it. A couple other users of this device have noted that their phones are not interpreting SUPL data properly. This results in far-off locations, not aGPS.

I must mention that my patch does not edit or redo any processing LIB files. Such issues would be ROM specific. But, the workaround for using my patch and getting great locks for them was removing the SUPL cert so that SUPL TLS wasn't utilized.

EDIT: I confirmed that the GPS you attached above is nearly equal to my GPS.CONF for LG phones. I would use the LG build for sure. When I say equal-to, I kept specific variables for LG included in the LG Build while making other necessary changes like I did across all builds.
[Optimus One, P500 Android Development] nd4spdbh:
I shall give that a try for you, cant guarentee when but ill give it a try (been super busy... end of the fall semester... classes getting crazy)
[Optimus One, P500 Android Development] Solace50:
can confirm this made a world of difference on the g2x as well. windmobile network, stock baseband/ril on CM7 nightly 200.

using the stock gps.conf was garbage since its set to tmobile "wind is canada" of which took a while to lock on. using googles supl server was ok but has some frequent issues "not sure if its related to the baseband/ril" or whatever else may be affecting it. this config with your certs managed to lock in quicker after wiping agps data and a boot over the former 2. also more accurate according to googlemaps.

also whats the difference between the alternate builds? the hashes look the same for the conf and supl file...
[Optimus One, P500 Android Development] crypted:
Alternate builds disable a variable that typically provides for faster locks. That variable can be a show stopper for older hardware and for certain software configurations (ROM, RIL, etc.).

I tried to provide some Alternate versions that would be more pertinent to specific devices and the general Google build to serve the few needing such an option.

If the standard build and the alternate build fails, you're probably facing hardware issues or are using a ghetto nightly build for some ROM with aGPS and/or GPS hard-coded to disable.

Ah the life of fixing problems. ;)

FYI: 3.1 milestone reached in beta testing. Reports show that my NTP theory was accurate once again as my other theories have been (except one, ick). Beta testers have reported a faster lock somehow but surely. One went from 8 seconds to 3 seconds. We'll see about the general populous soon. Aim to release it next week. :o
[Optimus One, P500 Android Development] Solace50:
agps.patch.lg.build.v3.0

gps.conf 041A189273FDBEBC8FD3C35E9AEA2B8E

suplcert 10FC635DF6263E0DF325BE5F79CD6767

agps.patch.lg.build.alt.v3.0

gps.conf 041A189273FDBEBC8FD3C35E9AEA2B8E

suplcert 10FC635DF6263E0DF325BE5F79CD6767

mds from the 2 files from alt/normal for the LG builds...

the hashes show the same so im confused as to what value is changed? the only 2 files being moved are these 2 when being pushed to the phone or am i wrong here?
[Optimus One, P500 Android Development] crypted:
Your due diligence has paid off! In my haste to get that extra build available, I failed entirely to alter that one variable in the uploaded ZIP.

A new ZIP is uploaded with the CORRECT alteration.
[Optimus One, P500 Android Development] Solace50:
ftp not refreshed yet or something? still shows the same including for the 1.3adbpush zip. if you could just tell me what variable is changed that would be great as i just want to experiment here.
[Optimus One, P500 Android Development] crypted:
As I'm compiling v3.1 I only redid the LG alternate build. It's the intermediate pos var. I changed it from 1 to 0.
[Optimus One, P500 Android Development] Solace50:
you may or may not know the answer to these 2 question but i feel your probably the most qualified to ask that i know.

1. does windmobile have its own supl certs/servers? if no i assume just use the ones provided for tmobile. curious as to if north american companies provide the different certs on any providers or if it even matters since its all in north america.

2. after leaving the phone idle for about 7 hours the lock took around 4-5 minutes to pick up on. the thing is it showed 14 sats at one point of which 8 were acutally being used. would this be related to the variable you mentioned? if i recall you need active data from at least 4 sats for it to give a lock of any sort, i had GPS status showing 8 green 6 grey. ill give it another whirl for tommorow morning then alter that one setting and see if it remedies it.
[Optimus One, P500 Android Development] crypted:
#1: WM 6.5 did do something similar, but I have no idea about WM7. I can tell you that they are incompatible, or at least ought to be because their binaries are entirely different. Only a couple of manufacturers incorporated server-side processing. Most only relied on QuickGPS data which is the equivalent of the xtra.bin.

#2: Yes, that variable would effect it. You need three satellites. I don't understand your 4-5 minutes point. Is that to get any satellites or to get all of them again?
[Optimus One, P500 Android Development] Solace50:
think we both are 2 different levels on both questions lol.

1.i was asking about Windmobile the provider, not WindowsMobile 6.5/7 which i believe you mentioned. like i believe tmobiles supl cert is specific to tmobiles sats/servers "not sure how they operate and will probably try to find some documentation on them later". But the main question there is do other providers "at&t, fido, tmobile, windmobile, mobilicty" differ with suplcerts? i suppose my lack of knowledge on this is kind of making it hard to explain this in further details so maybe ill get back to you on it. in a nutshell which i think you answered already is do they all use the same central server so accessing a different SUPL host with a different cert through a different provider would provide the same end results assuming its in the same continent.

2. In GPS Status it showed 11-14 sats for a full 5 minutes before getting that initial lock of about 100m after the phone was idle for about 8 hours on the normal config. at least six of those 11-14 sats were green and the others were grey so i assumed it should like pretty much instantly of which it did not. i toggled that one setting cleared agps and will leave the phone idle again for while. thought isnt clearing agps the exact same thing as waiting 24 hours as the agps data changes? all its doing is just updating from the xtrabin file?
[Optimus One, P500 Android Development] crypted:
Ah! Okay then,

#1 Assuming that your provider (not WM!) has SUPL servers and Cert's, yes I could provide such a build. That would require someone installing, or unpacking, a stock ROM from your provider and obtaining the suplrootcert file and the gps.conf and sending them to me.

#2 More data is used for aGPS than just an xtra.bin. My settings allow your phone to do the xtra.bin, SUPL server assistance, cell-tower assistance, and caching of "learned" data. If you're unhappy with the signal you're getting, which 100m is well off for the amount of sats you discuss and well off for even 5 sats, I would suggest removing it from the case and/or being sure you're outside and in a clear area where there are no large obstructions to your aerial view when testing.
[Optimus One, P500 Android Development] nd4spdbh:
crypted, took your advice and used the 2.2 lg alternate WITHOUT the suplrootcert file... i did not modify the gps.conf one bit, just didnt move over the suplrootcert, and locks have been quicker and better as far as accuracy compared to the stock gps i posted earlier. And it locks on every time (unless im in a concrete building where no gps could work)

Thanks again

~Nd4
[Optimus One, P500 Android Development] Solace50:
i unpacked the system.img and see no supl/gps.conf, are they located in a different location on stock froyo builds? otherwise i see nothing included heh.

also what did you mean by the last part of number 2. "remove it from the case"
[Optimus One, P500 Android Development] crypted:
Glad it's working out for you! Sometimes a little modification can go a long way. It's very strange that you must toss the SUPL cert as it only authenticated your connection to the SUPL server. But, maybe the phone and the SUPL server have issues translating position information. I couldn't guess as to why that would be the case, but it's possible.

If it isn't in /etc/, I would say that the stock ROM is crap!!! If you have the phone in a case, you lose signal.

If the case is a full case which covers your GPS antenna, you lose LOTS of signal. I have it in the Notes section because I found cases to be an important factor in hindering hardware performance which in turn degrades the patches ability to repair your GPS issues.
[Optimus One, P500 Android Development] richua:
Looking forward to 3.1!
[Optimus One, P500 Android Development] eXDee:
Ive decided i might switch to xtra4 as my primary server, after some tests.

Faster downloading from multiple wget tests, but these headers are curious, it seems its hosted on amazons S3 service.

exdee@xanadu:~$ curl -I http://xtra1.gpsonextra.net/xtra.bin
HTTP/1.1 200 OK
Connection: close
Date: Mon, 21 Nov 2011 00:17:51 GMT
Server: Cherokee
ETag: "4ec994ba=9679"
Last-Modified: Mon, 21 Nov 2011 00:00:58 GMT
Content-Type: application/octet-stream
Content-Length: 38521

exdee@xanadu:~$ curl -I http://xtra2.gpsonextra.net/xtra.bin
HTTP/1.1 200 OK
Connection: close
Date: Mon, 21 Nov 2011 00:17:55 GMT
Server: Cherokee
ETag: "4ec994ba=9679"
Last-Modified: Mon, 21 Nov 2011 00:00:58 GMT
Content-Type: application/octet-stream
Content-Length: 38521

exdee@xanadu:~$ curl -I http://xtra3.gpsonextra.net/xtra.bin
^[[AHTTP/1.1 200 OK
Connection: close
Date: Mon, 21 Nov 2011 00:17:58 GMT
Server: Cherokee
ETag: "4ec994ba=9679"
Last-Modified: Mon, 21 Nov 2011 00:00:58 GMT
Content-Type: application/octet-stream
Content-Length: 38521

exdee@xanadu:~$ curl -I http://xtra4.gpsonextra.net/xtra.bin
HTTP/1.0 200 OK
x-amz-id-2: lyiM3+aFKuuzV8lSQjVkWfzo/Kku7IM38z/DYeS5cTSE60oxdo5djuHtIJYCWguR
x-amz-request-id: 95D5F1DEDADB3D9C
Date: Mon, 21 Nov 2011 00:10:05 GMT
Cache-Control: max-age=1800, must-revaliidate
Last-Modified: Mon, 21 Nov 2011 00:00:04 GMT
ETag: "06d4af9c829fc38cc8caa5e792dfcece"
Accept-Ranges: bytes
Content-Type: application/octet-stream
Content-Length: 25510
Server: AmazonS3
Age: 479
X-Cache: Miss from cloudfront
X-Amz-Cf-Id: d35f5d6a5ccd94dc3d384c70d43ec343066a08cff87866a502ddab0406206ebbd99deed91126dbfb,31846244f870b97f8d19ccb5030bf21bb951d520628d22f13bb149cb9eade315496b59a555ec9def
Via: 1.0 62cf823d91f42bf2ff931dc518cf9a98.cloudfront.net:11180 (CloudFront), 1.0 9941207bc213fdefffbef3d8709db753.cloudfront.net:11180 (CloudFront)
Connection: close

I also get 130ms ping to it, Im in new zealand so this kind of ping to west coast USA is very good.

Though this is strange.

MD5:

c3251f455c56ce9cfaa0912fdb554037 xtra1.bin

c3251f455c56ce9cfaa0912fdb554037 xtra2.bin

c3251f455c56ce9cfaa0912fdb554037 xtra3.bin

06d4af9c829fc38cc8caa5e792dfcece xtra4.bin

c4cf074972878b45c283569436e7efa0 derekgordan.bin

Why would xtra4 be different? And i'm still be interested in what your source of GPS data is, even if you seem to not want to disclose for some reason.
[Optimus One, P500 Android Development] crypted:
I'm not sure why Qualcomm mirrors the file on servers 1 - 3 and then provides something different on the forth, if it is something different. But, MD5 checksums aren't always indicative of something truly being different...especially with bin's.

My opinion is that any server, except server 1, will be reliable enough for aGPS use.
[Optimus One, P500 Android Development] wally509:
I'be been trying your Google 3.0 patch and have the same issue. Using GPS Test, almost instantaeous lock to Nevada with accuracy of 0.0ft. 5-10 min later, I'll get a correct lock.

I'm now also getting battery drain. Seems like the GPS sensor isn't shutting down properly.

I'll try removing the SUPL cert and see what happens. Worst case is I go back to stock MikOS, but it was nice seeing the 2-3 extra satellites.