yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z General] kusuriurikun:
That fix is just for the .30 radio that I posted--for the .26 radio, you'd need to copy/paste the gps.vision.so from a ROM using the .26 radio as stock.

(Of note, if folks would be willing to submit what radio versions they're using, we could well get a repository for these going...)

---------- Post added at 04:47 PM ---------- Previous post was at 04:45 PM ----------

Firstly, what radio are you using? (The gps.vision.so I posted was for 4.30, and there's also one floating around for 4.03, so the version WILL depend on what radio you're using.)

As for other suggestions--check the permissions, perhaps...

---------- Post added at 04:50 PM ---------- Previous post was at 04:47 PM ----------

Sounds good--if you can double-check with Turbo GPS (I do like to use both as a sanity check), this would be awesome.

Also, are you in Euro-zone or in T-Mobile or Bell Canada territory in North America? (If the Bell ROM is working in non-Bell areas with CM7 stock, this may be the optimal solution.)
[G2 and Desire Z General] ptesmoke:
yea all i seen was envelopes with no text after them, but i mean my acuracy is dead on? what bug should i see??
[G2 and Desire Z General] grenness:
Hmm, no luck for me.

Actually it went from bad to worse...

My problem, with my European (Norwegian) Desire Z with MIUI 1.9.16 and 12.57.60.25U_26.10.04.12_M radio, was that the GPS didn't work initally when I for instance started Waze, but after I turned off GPS, waited 10 secs, then turned it back on and went back to Waze everything worked as it should for the duration of the trip.

I thought it had something to do with what is being discussed here, so I made a backup of my gps.vision.so then downloaded the version in the first post in this thread, installed via root explorer, performed efs wipe, reboot.... and now Waze crashes and u-center reports no nmea data.

Maybe my radio calls for another gps.vision.so?

I'll restore the original one and wait for a better solution, but thanks for focusing on these gps problems, I thought I had a hw problem...

Christopher
[G2 and Desire Z General] kusuriurikun:
That IS the bug, actually--just the envelopes (and nothing else) indicate the driver isn't passing along NMEA info, which does cause some (NOT ALL) GPS programs to get flaky.
[G2 and Desire Z General] killswitch11:
Well I figured out how to install this replacement SO file, and like others, I run into the same problem. My GPS is now completely disabled, as if my phone doesn't even have the capability. Followed the instructions to the letter but no dice. Back to a stock ROM I guess... thanks for tryin.
[G2 and Desire Z General] av8nwithtouch:
Same thing here. GPS Status used to show some activity, since I tried this there is nothing. Thanks for the idea though.

---------- Post added at 04:38 PM ---------- Previous post was at 04:27 PM ----------

FWIW, I used Turbo GPS and the output from NMEA strings shows a bunch of stuff staring with $GP ( $GPGSA,A1,,,,,,,,,,*1E is one I see over and over again, amongst others). But, yeah, zero GPS activity.
[G2 and Desire Z General] ptesmoke:
lol ok im officially lost, my gps works fine, yet no info after the envelopes in turbo gps, others have tried this fix with it breaking gps altogether...i guess i should leave well enough alone for now...
[G2 and Desire Z General] ccooluke:
I just backed up everything. Wiped everything clean. and am going to start this from scratch and see where it gets me. I MIGHT have flashed the wrong radio... I have the right one now for sure and am going to try this out. Post back when I'm done
[G2 and Desire Z General] grdnwsl:
I had the problem of the GPS turning off on its own after a few seconds. This fix worked on my G2. GPS locks faster and stays active now.

The file included in the OP is specifically for the 04.30 radio, which is what ships with the official T-Mo GB ROM. For those complaining of GPS not working after using this driver: if you have a different radio, you'll need to find the matching driver for it. It is the same idea as ril matching.
[G2 and Desire Z General] ccooluke:
Okay, so I used the gps file you posted. Using the 4.30 radio. and again, like others are saying. it won't work.

I'm on CM 207.

I'm using ILWT_CM7-2.6.35.14-v1.0 kernel. (if that matters).

Anyone have any suggestions on what to do?
[G2 and Desire Z General] ccooluke:
how do I go about finding the drivers for the 4.30 radio? would ril matching work?
[G2 and Desire Z General] kusuriurikun:
It's analgous, but not exactly the same.

Basically, those who've gotten this to work (and thank you, folks, who've reported that this DOESN'T work, because this does help narrow down where the problem actually lives) pretty much have had to do the following:

a) Pick a radio, and pull the gps.vision.so file from a stock ROM that was known to have shipped with that particular radio (in the case of the T-Mobile Gingerbread upgrades, this would be the gps.vision.so from that upgrade combined with the 04.30 radio).

b) Flash radio, match RILs with radio (using the auto ril matcher) and then push the gps.vision.so that came with the stock ROM to /system/lib/hw/

The trick, in this case, is matching up known gps.vision.so versions with known radios that shipped with ROMs--we do have a database of radios that DID come with specific ROMs (in the radios thread), so the main thing would be to match these in turn with the respective gps.vision.so file from the ROM the radios shipped with.

(Put a bit less confusingly: If you use radio 04.30 you want the gps.vision.so from the Gingerbread OTA update or a rooted version of it; if you use radio 04.12 you want the gps.vision.so from a stock Bell Canada Gingerbread ROM; if you use 04.03 you need to pull the gps.vision.so from Vision Gingerbread Sense 2.42.405.2-WWE or a Sense ROM based on this, and so on.)

To my knowledge, the only two radios I'm personally aware of where a matching gps.vision.so/radio combo exists are for 04.30 (which I've done) and 04.12 (which was noted in the original CyanogenMod forums thread--which has since been merged into the general discussion on nightlies).

As for why CM7 nightly 207 isn't behaving--I'm not sure. :P (I use ILWT CM7 which is usually a day or so behind.) People have had varying results, so this may be a deeper issue than just a bug in gps.vision.so; still, though, this does help in knowing where the issue is and possibly recommendations on what ROMs that this fix CAN be done and where it can't (and for that matter, if there's stuff in specific kernels that may be causing issues).
[G2 and Desire Z General] grenness:
Maybe a stupid question, but are you absolutely sure your gps is working, and that your location isn't based on wifi or cell tower triangulation?

I know my gps is not working, yet gmaps is able to give me my location pretty accurately based on cell towers and wifi.

Have you tried one of the mentioned gps testing apps, to see that you actually receive gps satellite info?
[G2 and Desire Z General] GinoAMelone:
I wanted to try this out, but with flashing new nightlies so often, I didn't want to have to mess around with manually copying it in. So, I threw together a quick-and-dirty update.zip for it.

This update has no real checking, isn't signed, doesn't backup the old file,... So, if you don't know how to apply an update.zip, you probably shouldn't be trusting this one. ;-)
[G2 and Desire Z General] G1ForFun:
Yeaaaaah....I can use gps satellites (no wireless network location) only and get an accurate lock in maps. But no text after the envelopes in Turbo gps.

Tried copying over the gps.so file and it broke my gps entirely....wouldnt turn on anymore. I am on the latest T-mobile radio and I used the proper gps.so
[G2 and Desire Z General] kusuriurikun:
The person on the CyanogenMod forums was using a newer radio (10.04.03); I've now modified your install to put the 10.04.03 gps.vision.so in an update.zip.

(In fact, radio changes MIGHT be a solution--I've also heard that RIL matching is...flaky with 08.04.30. I've noticed some GPS flakiness with that ROM even with stock, so I've gone to 10.04.03 (which the original poster used)--GPS IS working now, it did take longer to get an initial fix, but was its usual bulldog self afterwards. I have a feeling that CM7 was largely designed by folks running the 10.04.03 radio (which is the newest Euro radio) which would explain why 08.04.30 is causing so much fail when folks try to replace the CM7 gps.vision.so with stock.)

I've also included a "return" CyanogenMod-based gps.vision.so in case things go sideways so that folks can restore easily...just in case the new radio doesn't work.

TO INSTALL THESE: Boot into recovery, run the EFS Wipe zip (from "install from SDcard"), install gps.vision.(foo).zip, wipe EFS again, reboot.

If things go sideways, rinse/repeat but with the CM7 fallback.

To the poster who wondered if kernels may make a difference--there is a non-negligible chance that they DO in fact make a difference. Among other things, the drivers do interface with the kernel (just like a conventional Linux box) and--just as in Linux proper--tweaks with kernel code CAN affect drivers. (This is why, for instance, changing kernels on stock G2 ROMs tends to break wifi, among other things.)
[G2 and Desire Z General] ptesmoke:
ok UPDATE. i did state earlier my gps looked fine despite the fact turbo gps had no data with the envelopes. i proved myself wrong today, tried using google navigation several times with it constantly losing signal and almost finding itself under my dodge's back tire. very frustrating as it used to work flawlessly. im hesitant to try any fixes after the reports. im on radio 4.12 latest bell radio, 98HM htc rils, cm7 nightly 204.

any ideas?

edit: flashed your 04.03 file and i now have NEMA strings with data...will test more and add my findings
[G2 and Desire Z General] kusuriurikun:
All good--do keep us updated; if the 4.03 file will work with 4.12 radio, this lets us add another working radio to the list :D
[G2 and Desire Z General] riahc3:
Thanks for making a topic about this.

Ill try the suggestions.
[G2 and Desire Z General] ptesmoke:
so far it looks good, i havent had a chance to test the navigation yet on the road as its sunday (GOW3 day :) )

but i can confirm as previously stated gps takes a few seconds longer to lock but at least im seeing the NEMA strings now with turbo gps. ill try to test it on the road soon :)
[G2 and Desire Z General] SteveRiley:
I have a question about sequencing radio flashing and EFS wiping. When the EFS wipe tools first came out, I thought they were for wiping the partition that holds the radio, to completely clean it out before flashing a new radio. Yet elsewhere I've seen instructions to run EFS wipe *after* flashing a new radio, which implies the tool does something other than what I first understood. Would someone mind helping me understand this a bit better? Thanks.
[G2 and Desire Z General] ptesmoke:
i honestly dont know, i wipe efs before and after a radio flash or lib changes...
[G2 and Desire Z General] kusuriurikun:
In my particular case, I do like to do a "double wipe" just to be on the safe side--wipe before install to make sure all is clean, install the new radio, and then wipe afterwards to be safe.

(Basically, the tool clears out two sectors on the internal memory of the G2/DZ that normally hold stuff like the ephemerides. I mostly double-wipe to err on the side of safety, but wiping before installing a new radio (if you're going to install the GPS fix right after) SHOULD be safe. I do use a weather app that fixes using GPS, though, which is why I personally err on the side of double-wiping. :D)
[G2 and Desire Z General] EdKeys:
Kus, I saw your post in the CM7 thread. I can only run the .26 radio with CM7 or I get the gps signal lost issue. I had good data speed results with the .12 bell radio and battery life showed some improvement. If I switch to the .12 radio, what else do I have to do?
[G2 and Desire Z General] EdKeys:
Nevermind Kus, you've made a lot of changes to the OP since I last read this thread! Info is there. Thx

Edit: Now running with Bell .12 radio and .03 gps.vision.so file. Accurate lock to within 4 meters...best I've seen yet. Now to find out if it has corrected the gps signal lost issue. I'll report back here with results as soon as I can test with a long enough trip in the car. Nice work on this!
[G2 and Desire Z General] Sidneyaks:
This worked for me.

Phone is a g2

radio - 26.08.04.30m3

using CyanogenMod-7.0.3-vision build# GRI40.

I didn't bother with the rils matching. Not sure if it matters, but I'm on t-mobile in a city that gets fairly good 4g reception, but the suburbs usually only get edge.
[G2 and Desire Z General] dargocitfer:
I am also using the the 10.04.12 radio, with the latest CM7 Nightly (#211), and the stock CM7 Kernel. I also never have bothered with "RIL Matching"

I ran the "10.04.03" fix, and now Turbo GPS is showing all of the NEMA strings. (It was not, before the fix.)

So, I'm thinking we can, with a fairly high level of confidence, say that this combo works. :)
[G2 and Desire Z General] TobiS87:
Hm I really dont want to flash a radio for that. I searched a long time for a ROM with the 26.03.02.26_M radio to get the gps.vision.so - file but didnt find it. The Froyo OTA does not contain a gps.vision.so so I am guessing that it hasnt changed in that OTA but I couldnt find an earlier ROM.

So if anyone got that ROM it would be very kind if he could post the gps.vision.so of it.

Thanks.
[G2 and Desire Z General] kusuriurikun:
OK, so we can verify a working fix for 08.04.30--did you use the gps.vision.so for 08.04.30, or did you use the 10.04.03 gps.vision.so? (And RIL matching is actually not essential; RILs interface the radio chip to the kernel for data, whilst gps.vision.so interfaces the radio chip to the kernel for GPS reception. Yes, it gets a little squidgy with the Vision because the CPU does it all, but they are distinct radio drivers.)
[G2 and Desire Z General] EdKeys:
Well, my gps signal lost issue is back with this radio and .so file with CM7 nightly. Any thoughts?
[G2 and Desire Z General] fubarr:
Thank you kusuriurikun. I got this working with the very first gps.vision.so file you put on this thread. I believe it was a file you pulled for 26.08.04.30 radio from a TMOUS leaked update.

I am using MIUI Bulletproof 1.8.26

Radio 26.08.04.30

Kernel 2.6.35.14-cyanogenmod+root@pershoot-ubuntu #1

I hope this helps. Let me know if you need any more information
[G2 and Desire Z General] ptesmoke:
wierd, im running latest nightly on the bell .12, with the .03 gps file. it did fix my problem of not having the nema strings but i havent had a chance to test google nav on the road yet :(
[G2 and Desire Z General] EdKeys:
Did you have that issue before? I don't see many complaints about it anymore in the nightly thread. With the .26 radio I'm good...any other radio I lose signal and have to shut down navigation and toggle gps off/on.
[G2 and Desire Z General] tsubus:
this is great, i'm going to include the fix in the next release of ILWT ;)
[G2 and Desire Z General] TobiS87:
Ok I tested 26.03.02.26 with both gps.vision.so and both didnt work out for me. On the 08.* Radio GPS at least was able to find 1 (!) Satellite while the other version searched for a long time not finding anything.
[G2 and Desire Z General] ptesmoke:
i had the problem of google nav losing gps, i always had to exit and start several times. i dont get alot of chances to test it so i dunno how long ive had the issue..
[G2 and Desire Z General] tsubus:
26.03.02.26 is not working for me either (no gps lock), testing latest tmobile radio now. i get gps lock, but im going to test it for a while.

Sent from my HTC Vision running ILWT CM7

edit: checked 26.08.04.30 and 26.10.04.03 with 26.10.04.03 gps.vision.so, works perfectly with both. i'm gonna stick with the latter.
[G2 and Desire Z General] EdKeys:
I just flashed the .30 radio and am going to try this with tsubus 212b which now includes the .03 so driver.
[G2 and Desire Z General] kusuriurikun:
Firstly, thanks to tsubus for actually including this as an option in future versions of ILWT CM7--I'm actually deeply honoured by this, and glad to be able to give back at least a little to my favourite ROM. :D

To those reporting this does NOT work with the "Froyo Radio"--thank you for letting me know; I'll update the initial post on this. (This is helping us get closer to a solution!)

And again, folks--do keep sending in reports, especially if you're using the ILWT CM7 212b with the HTC GPS driver option selected in ILWT.txt--this uses the 4.03 gps.vision.so, and if more confirmations come in that the 08.04.30 radio works with this then we may well have a workable fix for radios that shipped with Gingerbread. :D
[G2 and Desire Z General] G1ForFun:
Thanks for putting this together and for the information in the OP. Great work to everyone who has contributed to this. :)

Ill be trying this when I get home as last time my gps stopped working completely when replacing the gps.vision.so
[G2 and Desire Z General] EdKeys:
OK, just tested tsubus newest 212b release that includes the .03 driver along with the .30 radio and it works great! No dropped signal. I can finally run with a new radio. Thanks for all the work you've put into this kus!!
[G2 and Desire Z General] G1ForFun:
Awesome got my little envelopes with random stuff after them working now. I flashed the .03 .zip in the OP and I have the .30 radio. Flashing the .30 zip in the OP resulted in a broken gps altogether (wouldnt turn on).

Thanks!:D
[G2 and Desire Z General] Sidneyaks:
I hate to say it, but that statement was a bit soon. My gps navigation got a fix, but it wouldn't anymore for the next day. I found that the nmea strings were empty.
[G2 and Desire Z General] Sidneyaks:
Well, I'm using ilwt 212 now, and I have the 26.08.04.30m3 with the 10.04.03 driver. I chose to install the ilwt kernal.

I got the initial gps lock within the first few seconds of turning on gps test, however when I used the GPS nmea monitor, I still have a lot of sentences that had multiple commas with no values (not as many as before though!).

On the upside, all my partitions are ext4, I have ext4 recovery, the lock screen doesn't hang anymore, and I was able to use the radio that gives me ridiculous awesome battery. All for a feature I might be lucky to use a few times a year. :cool:
[G2 and Desire Z General] tsubus:
You need 212b to have the 10.04.03 gps.vision.so installed. It can be found on page 34 of the ILWT thread (it's not an "official" release).
[G2 and Desire Z General] Sidneyaks:
I went ahead and installed the 10.04.03 driver from the zips in the op of this thread and it works fine. I've been able to get a quick lock (~1 minute when moving) though.:D
[G2 and Desire Z General] infinitron:
No luck for me

I have been trying to get my gps to work with no luck. I have tried the following combinations:

Radio

-----------

gps.vision.so

26.10.04.03 with gps.vision.10.04.03.update.zip

26.08.04.30 with gps.vision.10.04.03.update.zip

26.10.04.12 with gps.vision.10.04.03.update.zip

26.10.04.03 with gps.vision.08.04.30.update.zip

26.08.04.30 with gps.vision.08.04.30.update.zip

26.10.04.12 with gps.vision.08.04.30.update.zip

I get the gps symbol to show up in google maps, but it never locks onto the signal. The only way I can make it lock on is if I turn on "Use wireless networks" in "Location & Security" settings (not really using the gps at all).

I have tried to use Turbo GPS 2 and GPS Test to see if there is any raw data, but i get nothing in either of those. I must be doing something fundamentally wrong.

Here is a typical break down of how I update my phone:

1. Install radio (PC10IMG.zip) through bootloader

2. wipe efs through recovery

3. install gps.vision.so zip through recovery

4. wipe efs through recovery

5. open a gps program (gmaps, turbogps, gps test)

Am I doing something off or have I just not found the right combo yet?

TMobile US G2

Running CM 7.0.3

current radio 26.08.04.30_M3

Kernel 2.6.32.28

Android 2.3.3
[G2 and Desire Z General] tsubus:
for google maps you need that option enabled because it uses data. if you don't want to use data, try other navigators.
[G2 and Desire Z General] TobiS87:
Same here. Finally flashed those radios and tried every possible combination with no success. Im running MIUI atm. I'm wondering if the kernel does affect GPS in some way either.
[G2 and Desire Z General] EdKeys:
Are you wiping the efs partitions each time you try a new radio?
[G2 and Desire Z General] infinitron:
i wipe and i wipe and i wipe

I wipe before I install the radio, after I install the radio, and after I update the gps.vision.so file. I have tried to wipe between every step of the process and that doesn't seem to help. I haven't tried RIL matching, but from what I have read, that is generally unnecessary with this fix.
[G2 and Desire Z General] TobiS87:
Jep, I'm wiping EFS partition before and after flashing the driver. I'm using GPS Essentials for displaying the found satellites. With the new radios (.12 and .03) I cant find one satellite.

Weird enough that the combination .03 radio with .03 gps.vision.so is not working either. I'll try that with another ROM at the weekend. Probably will be CM7 even if I dont think that will help because MIUI is based on CM7... we'll see.
[G2 and Desire Z General] 0.0:
I have the .30 radio and flashed the .03 vision.so file. I went for a 10min drive with navigation, and it worked! No lost GPS signal. It was just based on one test, but so far so good :). Will try again later

Sent from my T-Mobile G2
[G2 and Desire Z General] passcfa:
Clean Install Worked

For weeks I had been unable to retain GPS lock using CM7 nightlies on my G2. So I went to Virtuous ROM for a bit (and of course gps worked right away).

I did a clean install of CM7 (wiped data/caches) and then did an EFS wipe, and then flashed 10.04.03 update.zip immediately after bootup (I already had 10.04.03 radio installed from previous ROM). I did NOT flash gapps yet so I did not have Gmaps installed yet.

Then flashed gapps, installed maps and finally have locking gps.

I know some have stated it already, but to repeat, I think it's quite important to uninstall gmaps (or whatever other nav app one is using) before flashing update.zip file.

Perhaps that will help someone that was as frustrated as I in trying to get gps to work in CM7 (nightly).

Thanks so much for this thread. Great work!
[G2 and Desire Z General] leonblade45:
Where did you download the 10.04.03 radio and what is RILs? I currently am on official English AOSP MIUI 9.16 as well, but running radio 03.02.26_M and I have been missing a ton of calls from people. I even tested a phone call with another phone side by side and it blatantly sent that call straight to voice mail even though I had 5 bars of reception plus 3g/4g coverage. Have you experienced any network issues while running 10.04.03 radio?
[G2 and Desire Z General] infinitron:
Fixed!

I was finally able to get a gps lock using a combo of the efs_wipe and the gps vision files, but I did it with a cm7 that has them both baked into it.

For the details check out the posts on page 19 of this thread:

http://xdaforums.com/showthread.php?p=18183320
[G2 and Desire Z General] Ditamae:
Just wanted to say thank you. Last week I updated to radio .30 using tsubus' 212b ROM with stock HTC drivers and GPS works flawlessly. A few days later I flashed .03 and still, GPS locks fast and stays put.
[G2 and Desire Z General] Nospin:
People on the .30 radio, are you having more luck with the .03 or .30 drivers?
[G2 and Desire Z General] riahc3:
AFAIK, this doesnt work either. Using Chartcross GPS Test, it has gotten to see up to 4 satalites and makes them as in use as well, but doesnt a lock to show accuracy, alttitude, etc.

I believe the problem is on Cyanogen's side. Strange thing is that he uses a Desire Z as well so this bug must be on the top of the list....

---------- Post added at 06:59 PM ---------- Previous post was at 06:57 PM ----------

BTW, the ril patcher has been removed.