yashsingh1/xdaforums huggingface dataset:
[Droid Incredible Android Development] dnoyeb:
Latest Cyanogenmod nightly number 97 (10/3/2010) has the new ril baked in. No need to use this patch if you are running it or a newer one.

Back Story

Long story short, the Chinese group Miui mananged to get / build (not really sure) a new Radio Interface Layer for our HTC devices... I pulled this file out of the Nexus one build that they released and it works perfectly. Link to the Nexus1 version

Over in the Nexus one forum a few people have questioned where this Chinese group got some of the files they're using, as they're really bleeding edge (at least thats what they say in the N1 forum). This newer / different RIL file seems to fix the issues we're facing with random phantom reboots while wifi is on. Also included in this is the issue where the signal bars show an "x" for a second or two after connecting to a wifi hotspot. Also fixed are issues where the radio signal drops before / after receiving a call that plagues AOSP builds (ruby and CM for sure).

Cyanogenmod 6.xx

This works on the 6.xx versions as well as the Nightlies.

NOTICE: As of Oct 2nd this has been "committed" so I assume the nightly that comes out this evening will have the fix built in. Check it out

Latest nightly number 97 has the new ril baked in. No need to use this patch.

Ruby 1.1.1

This works for Ruby. If you are wanting the BT Media Streaming audio fix as well, please see this thread. They are two separate installs.

Shadowrom

It has been confirmed that this also works for Shadowrom.

Bugs

I honestly don't know of any yet... but that doesn't mean there aren't any. Only a handful of us have been testing this thing out on the inc so far. Figured more people might want to check it out.

Credit

I take no credit for the fix. The Miui group built/got it(not sure which), I simply happened to be playing around with some files and noticed the side effects. Thanks again to Jermaine for letting me know more about the rom (and the fact that they weren't plagued by our reboot issues) in the first place so I could start digging...

Of course thanks go out to the entire ruby and cyanogenmod teams, without them we wouldn't have these fun roms. Lastly, IncredibleDoes for doing the Inc port of miui that opened our eyes to it.

Installation

- Download the file and place it on your SD card.

- Load up Rom Manager and hit "Install rom from SD card," select the file.

- I'd probably make a nandroid backup if you haven't recently just in case... no wipe has been needed.

Disclaimer

If this messes up your phone, not my fault ;) Was tested by about 30 people so far, and no issues that we've seen. Please make a nandoid backup just in case.

THIS IS FOR AOSP roms listed above ONLY. Please do NOT install it on any sense based roms.

Downloads

see below

Latest Cyanogenmod nightly number 97 (10/3/2010) has the new ril baked in. No need to use this patch if you are running it or a newer nightly .
[Droid Incredible Android Development] larsrya8:
Isn't this just cosmetic? Or because the phone is switching from 3G to 1x? I've never dropped a call while toggling WiFi on...
[Droid Incredible Android Development] dnoyeb:
Not that I can tell... so far the mere fact that the wifi isn't causing reboots anymore is the main reason I'm putting this out there...

anything else is just gravy.
[Droid Incredible Android Development] larsrya8:
Fixing the WiFi reboots would be great. Though, strangely, I'm at 110 hours uptime with the WiFi on... I guess it'll take a while to verify this fix works.
[Droid Incredible Android Development] dnoyeb:
sounds good. in all reality the one person who can really verify is koush... sending him the idea as well...

(wish I could make it 110 hours! hah... at my office i'm lucky if I get more than 3 hours) so today will be a major test of it. so far so good.
[Droid Incredible Android Development] jermaine151:
Good job! I hope that solves it since we've determined the kernels don't.
[Droid Incredible Android Development] dnoyeb:
all thanks to you bud ;) will update credits with backstory if all goes well.
[Droid Incredible Android Development] jermaine151:
Totally thanks to you! I'm just glad that you were persistent on resolving it.
[Droid Incredible Android Development] Asterdroid:
Please please let Koush know about this, too. Nice work man.
[Droid Incredible Android Development] dnoyeb:
if it works, sure :) going to send out the links shortly... testing the installer on another phone really quick.
[Droid Incredible Android Development] ardax:
YGPM.

I'll guinea pig my phone for a few days if it means getting CM running w/o locks or reboots.

:)
[Droid Incredible Android Development] :
I'll try out the ruby one!
[Droid Incredible Android Development] Alundre:
I'd be more than happy to help test either CM or Ruby (Ruby preferred). Just PM me the info!
[Droid Incredible Android Development] ncwildcat:
Installed the fix on Ruby 1.1.1. Running stock Ruby Kernal (This kernal has been the best overall performance Kernal for me on Ruby). Will report back results
[Droid Incredible Android Development] camalus:
I've installed the file you sent me... and holy crap. It seems to work. Really hope this does it or at least puts koush in the right direction.
[Droid Incredible Android Development] dnoyeb:
I am very interested to see the results on the stock one... I forget, does the stock kernel have working wifi tether?

I am packing up a BT-Fix for Ruby right now but will keep it separate, to not complicate things.

You and me both man... if most testers go a good 24 hours with no wifi caused reboots / drops etc, maybe he'll look at it...

Keep us informed of the progress! thanks for testing.
[Droid Incredible Android Development] camalus:
Just in case you are curious.. I'm running koush test 2 kernel. No setcpu installed.
[Droid Incredible Android Development] ncwildcat:
I have had good luck with wifi teather on the stock kernal...didn't work on any of the king kernals.

Sent from my personal space
[Droid Incredible Android Development] nfiniti9:
I really dont believe its the wifi. Its when the 3g turns on or off when the issues happen, which is when you leave or enter a wifi area. I turned 3g off and didnt use it for 2 days with wifi on the whole time with no reboots. I've have the lockup with just 3g on as others have noted. Also I believe that the lockups and the reboots are a separate issue. I have yet to see where any dev said it was the wifi directly, and with the known issues of 3g+froyo it points to 3g not wifi.

So, if you turn wifi off and are in a good 3g area then you will unlikely lose 3g much if at all, but if you have signal issues then the reboots still exist.

If we are going to find out what the problem is we need to setup test groups.

1 - no wifi, no 3g

2 - no wifi, 3g on

3 - wifi on, no 3g

4 - wifi on, 3g on

Make sure everyone is using the same rom/radio.
[Droid Incredible Android Development] ardax:
That's a possibility, but I think I'm in a good 3G area, and the majority of my movements are in a pretty small geographic area. I'll get reboots when my phone is just sitting on a table or in my pocket though in an area w/ strong signal.

I think what we'd really need is for the testers to check all 4 combinations. There's too much geographic variance to have a bunch of different people testing these combinations unless some lived very close to each other.
[Droid Incredible Android Development] jermaine151:
The file that dnoyeb has them testing is from an AOSP rom that has NO reboots and NO lockups whatsoever, regardless of 3G or wi-fi state.
[Droid Incredible Android Development] dnoyeb:
Yup yup. Long story short, the chinese group Miui mananged to get a new Radio Interface Layer for our HTC devices... I pulled this file out of the Nexus one build that they released and it works perfectly.

thanks again to Jermaine for letting me know more about the rom in the first place so I could start digging... to my surprise, finding that file was mighty nice... Over in the Nexus one forum they've questioned where this Chinese group got some of the files they're using, as they're really bleeding edge (at least thats what they say in the N1 forum).

Anyways... testing is going fine, i'll throw the radiofix in the OP in about 20 minutes when I get back to work. (as long as no one says they've had an issue with the installer).
[Droid Incredible Android Development] Ty07allstar:
Sweet, once it's up I'm definitely going to try it out. Thanks
[Droid Incredible Android Development] blakeem:
I would love to use this fix on Shadowrom. Restarts are stopped me from using any AOSP roms so I'm definitely looking forward to this.
[Droid Incredible Android Development] dnoyeb:
First post updated.

Let me know if it works in Shadowrom as well... ;)
[Droid Incredible Android Development] pbnj4640:
ill be testing this out with the most recent nightly CM, which i must say was running fabulously all day. just battery drain issue
[Droid Incredible Android Development] mrchambo:
So, since this improvement came from MIUI ROM, and that's what I'm running right now, there would be no sense (sorry for the pun) in applying this zip, correct?

jc
[Droid Incredible Android Development] dnoyeb:
haha. Well, personally I was on Miui, but was still missing my good 'ol CM options. So, that's why I tried to get this fix going...

But yea, you guys on Miui are awesome for taking a risk on such a different rom and letting us know it was as stable as it was! Since the fix came from there, no you don't need to do anything to it... ;)

Hopefully Koush and the ruby teams can incorporate the different RIL file if it does indeed prove to be the key.
[Droid Incredible Android Development] jermaine151:
That's exactly how I felt, until this rom came along and now the love is being shared with CM6 and Ruby. **teary eyed** LOL
[Droid Incredible Android Development] jermaine151:
No, it would do nothing for you, if you're on miui.
[Droid Incredible Android Development] mikeymop:
I opted to install the most recent Cyanogen today, so I'll be more then happy to try this fix out
[Droid Incredible Android Development] itch808:
Don't knock the Chinese, they're hard at work in everything these days! Thanks to the OP for extracting it and the MIUI team for doing their magic :D
[Droid Incredible Android Development] dnoyeb:
i'm just praying this is the fix that we've been waiting for.... so far, knock on wood, i've been rock stable on both ruby and various cyanogenmod versions.

Those Chinese dudes freaking rock... shot a tweet to koush to inform him of the possible fix... I have a feeling if anyone can confirm it 100%, it'll be him.
[Droid Incredible Android Development] ardax:
I've got over an hour and a half of uptime on CM #95 right now. That's like, pretty good for me when unplugged. :)
[Droid Incredible Android Development] dnoyeb:
couple folks have emailed me that installed it first thing this morning and last night... so far, so good. Personally I know back on Ruby I used to get about 5-10 reboots a day it seemed... I have a phone running it now with the fix and its been rock stable all day...

Anyways, anyone who tries it out, be sure to post back about it later so we'll know if its working for folks.
[Droid Incredible Android Development] GMK83:
I might be one of the lucky ones who never had the reboot issues. Wonder if there is source for this so they could include it in cm
[Droid Incredible Android Development] jeffreycentex:
No reboots, no losing phone signal before or after phone calls, or other wifi issues (I tried 45 minutes of streaming last night without wifi dying too...)

Installed 19~20 hours ago. CM #95 with stock kernel.
[Droid Incredible Android Development] :
Ok i've installed both fixes in Ruby 1.1.1. Here are the steps I took in case anyone is interesting. First I wiped the Dalvic cache in recovery, then wiped all the rest of the data, then installed the ruby 1.1.1 zip, then the gapps update, then the bluetooth update, then the CM radio update. Once all of them were installed in that order, I rebooted into Ruby.

I immediately got my Motorolla bluetooth stereo headphones and was able to listen to bluetooth stereo audio from the default music app (music on my SD card) and all audio controls were working while in the music app.

I then loaded Pandora and was able to listen to music through it as well. All audio controls worked in Pandora as well (play/pause, skip forward back, etc)

Next I called my phone while listening to music in the default music app. It stopped the music and restarted fine after the call was finished with no lag whatsoever.

I tried the same thing with Pandora and unfortunately it didn't start the music back up right away after the call was over. This isn't that big of a deal though because all I had to do was hit the play/pause button again and it started back fine.

Note: All of these tests were on my wifi network. I'm going to be out and about a bit tomorrow and I'll test the 3g coverage and such then. I will also monitor the uptime sporadically to make sure there haven't been any random reboots.

So far though, things are looking positive!
[Droid Incredible Android Development] camalus:
I'm at 10 hours up so far after applying the fix. Was doing alot of driving around in weak signal areas. Left wifi on the whole time. Not a single glitch. Made about 10 phone calls trying to get my phone to reset. Couldn't do it. Gonna leave it going and see if it lasts overnight.
[Droid Incredible Android Development] :
The only thing I've noticed that's probably just a Ruby thing is that if you hit the search button and look up something the browser crashes....
[Droid Incredible Android Development] camalus:
Might be a Ruby thing. Not having that issue here. I don't think this fix would have anything to do with that.
[Droid Incredible Android Development] dnoyeb:
yea I have seen people reporting that over in the ruby thread that don't have this fix applied, so I would say that's a ruby thing.
[Droid Incredible Android Development] :
Cool ill have to take a look over there later. I've been using this a few hours non stop with no issues...been on wifi the whole time!
[Droid Incredible Android Development] itch808:
Wow, so far so good with Wifi on! Normally I'd have a frozen/reboot phone by now!
[Droid Incredible Android Development] camalus:
Any word on if Koush is taking a look at this by chance.
[Droid Incredible Android Development] larsrya8:
Yes, he is.
[Droid Incredible Android Development] Alundre:
Just flashed the fix along with Ruby 1.1.1. Will report back findings!
[Droid Incredible Android Development] blakeem:
I'm testing it out with Shadowrom /w kings kernel.

So far no issues but it has only been about an hour. I normally get restarts every few hours on AOSP roms making them unusable. I will continue to use it over the weekend and report back.
[Droid Incredible Android Development] seanmcd72:
I'm running Build 94, Koush's recent "Test2" kernel (#11), this patch - and will see what happens over the weekend. I use wifi when at home and work. Typically don't turn it on anywhere else.
[Droid Incredible Android Development] s197:
Where is the bluetooth update?
[Droid Incredible Android Development] mbsmd:
Fix applied to ShadowROM w/ kk #1. So far, so good going on 4 hours.
[Droid Incredible Android Development] dnoyeb:
I am sending the Ruby 1.1.1 Bluetooth update out via email so I can get a few testers first. Feel free to pm me your email address and I'll shoot it your way.
[Droid Incredible Android Development] animal1967:
Damn...was hoping it would fix the *228 update roaming FC I keep getting.

@ dnoyeb.....War Eagle!
[Droid Incredible Android Development] seanmcd72:
Turned the wifi off around 2 hours back. I just tried to hit the web but I have no 3g connection at the moment. Toggling wifi on/off and not getting any 3g. - had to use the airplane mode toggle to get it back. I'll see if it happens again
[Droid Incredible Android Development] ncwildcat:
I had this happen earlier today once. Rebooted and haven't seen again. Reboot was to change kernals, from stock ruby to adrynalyne battery. May try kings BFS and CFS tomorrow...adrys seems laggy

Sent from my personal space
[Droid Incredible Android Development] Fuzzy_Dunlop:
On Ruby with Adrynalyne battery kernel. I am at work and use a Tasker profile that automatically puts my phone into airplane when near my works wireless network, then turns off airplane every half hour to check for new messages. Normally this will cause any AOSP rom to freeze, then reboot nearly every time. Since applying this fix, my phone has enabled/disabled airplane 4 times so far without freezing.

Edit: Okay 6+ hours stable now.
[Droid Incredible Android Development] shoman24v:
Did a fresh install of everything. In this order.

Root from 2. 1

Wipe dalvik, cache, wipe.

Install 1. 1. 1, gapps, wipe dalvik install kings kernel #1, install this patch.

After a few hrs 3G stopped working had to go to airplane mode....

We'll see I guess.
[Droid Incredible Android Development] ardax:
Over 14 hours of uptime right now. This is looking good. What's weird is that my phone was in airplane mode this morning when I woke up. Came right out of it though.
[Droid Incredible Android Development] wackwad:
Does this update your radio/baseband version?
[Droid Incredible Android Development] seanmcd72:
Checked the phone's uptime this morning, it had rebooted 2 hours prior to waking up. Wifi was not enabled overnight.

So far this doesn't seem to do it for me. Main thing that is fixed is I don't see the mobile network get an "x" when switching between 3g and wifi. Other than that I had 3g stop working, and had one reboot in 10 hours time.
[Droid Incredible Android Development] dnoyeb:
To the couple of folks still having issues (since so far from what I can tell, its better for 90 %) what are your radio versions? Maybe there is some common thing there.
[Droid Incredible Android Development] :
I'm 12 hours in so far and having no issues whatsoever. How many people that are having issues are using the stock ruby kernel? Maybe that has something to do with it too?

I don't have my phone next to me at the moment, but I'm on the baseband that came with the stock 2.2 update. (can't remember the number off-hand)
[Droid Incredible Android Development] dnoyeb:
No, just the layer between the radio and the os
[Droid Incredible Android Development] bsdbytes:
So far this patch has worked for me. I wiped everything, installed Ruby, installed King'x BFS kernel, and then installed this patch. Thanks dnoyeb!
[Droid Incredible Android Development] camalus:
2.05.00.06.11 radio.

Nightly 95 build.

Koush test 2 kernel

Installed on clean wipe of everything.

Just about 24 hours of uptime. Not a single glitch. I live in a crappy service area and used to get 5 to 6 reboots a day.

Not a single one since this patch.
[Droid Incredible Android Development] nfiniti9:
I think you are on to something here dnoyeb. I've been running solid with latest CM6, which has never happened for me. I have been trying to break it now. The only issue I have even seen was messing with SetCPU. It rebooted but not a full reboot because it didn't reset my up time. Pretty sure its because I oc'd for a few mins. Other than that I'm truly impressed, nice find.
[Droid Incredible Android Development] ncwildcat:
I have tried this with a few different kernals. Have not seen any reboots. Adrynalyne's Battery (seems laggy), Stock Ruby, both King BFS, King CFS, and Koush's INC-TEST2. I think I will be running test2 for a while, as the others all had slight problems not relating to the reboot issue -

Kings Kernals all drain battery extremely fast

Adrynalyne's Battery Kernal is laggy

Stock ruby is great, but battery life is mediocre at best

Inc-Test2 seems to be the best of all worlds at this point.

I also run radio 2.15...9-01

ROM - Ruby 1.1.1

Have used WiFi Tether a bit, and gone in and out of WiFi areas with no reboots at all. Just installed WiFi Fixer from market to assist with my work WiFi (It boots you off after a few minutes of inactivity, and drives me nuts!) but haven't used it yet as I am not working this weekend. Has anybody else used this app? Is it any good (I don't want to throw anything wonky into this testing, but just came across it and it seemed worth a shot)
[Droid Incredible Android Development] jermaine151:
That radio killed my 2150 battery badly. You should try the one in my signature.

Typed on my Incredible phone!
[Droid Incredible Android Development] shoman24v:
I think its important we report back with some hrs logged in the phone, not just a few hours
[Droid Incredible Android Development] camalus:
24 hours now. See above post for kernel and radio info.

Gotta say... this has made a huge improvement.
[Droid Incredible Android Development] Alundre:
Running Ruby 1.1.1

Stock Kernel

2.15.00.07.28 Radio

Up time so far: 13:32

This might be a record for me on any AOSP rom but I will keep monitoring!
[Droid Incredible Android Development] blakeem:
Shadowrom still running great after around 12 hours, no issues. This seems to have done it for me.
[Droid Incredible Android Development] larsrya8:
Looks like Koush commited the new RIL :D
[Droid Incredible Android Development] dnoyeb:
oh hell yea.

now that's sweet to see... I guess that confirms that it might be a valid fix.

Big thanks to everyone that tested this out.
[Droid Incredible Android Development] camalus:
That's awesome! So that should be compiled into tonight's nightly correct?
[Droid Incredible Android Development] dnoyeb:
I believe that is correct.

I'll be installing it for sure ;).
[Droid Incredible Android Development] camalus:
That's awesome. Good work finding a probable fix. Looks like AOSP roms are going to be much more stable.
[Droid Incredible Android Development] tdavis42:
I have started to have Market download problems after I flashed the 95 build and this fix. I have the basic #4 kernel. Anyone else have this issue? I tried downloading Penetrate from the market and well it downloaded but won't install. The DL status bar sits at complete but won't install.
[Droid Incredible Android Development] dnoyeb:
I am not aware of anything with this that would cause that... never know I guess.

Personally I had that same issue with older builds of CM back in September, so my money would be on the build or some outside factor.

(on my current setup, I am not having any issues with downloads and haven't heard of any besides this one)
[Droid Incredible Android Development] camalus:
I'm using 95 and have no market issues at all.
[Droid Incredible Android Development] tdavis42:
Cool, thanks for the quick reply. I can't imagine what it could be. I double wipe and Dalvik wipe before install. and it was just a nandroid anyways. I installed the #11 kernel and have the same issue. I wasn't having it on the 94 build so I am going back and then going to try different combos. I figured it was something with my setup and not the fix or rom or kernel.
[Droid Incredible Android Development] nikon_rh50:
I don't know which is at fault but I am using CM95 with Radio fix and been up 12:30 with wifi on. Now its starting to act funny with apps closing without warning including xda. It also reboots (sort of) where It would show the CM boot animation for 2 secs and home screen reloads. But the uptime remains current. I will try this out on the Shadow and Ruby.
[Droid Incredible Android Development] dnoyeb:
What radio and kernel? Overclocked?

Nightlies can always bring fun things to the table ...
[Droid Incredible Android Development] camalus:
I had this issue when I used setcpu. And tried overclocking. Haven't since doing a full wipe and using test kernel #2.
[Droid Incredible Android Development] camalus:
Oh yea... it was before this fix as well. So I don't think its from the patch. I also downgraded to an older radio at the same time. You can find my current one a couple pages back. Since I switched radios and the test kernels I stopped getting the warm resets.