yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] TheNewGuy:
You are correct... I appologeize, I viewed your spead sheet with my phone and I didn't see the rest of the info on the ril options.... i was only seeing the stuff on the build. Prop...

Great work!

Now if we can only figure out what they each do.....

Sent from my HTC Vision sing XDA Premiuim App
[G2 and Desire Z Android Development] saquib:
Running cm7 with stock radio on a desire z. Should I flash this z ? Thanks and excuse my lack of understanding.
[G2 and Desire Z Android Development] Beast11:
I've had HORRIBLE reception and lots of dropped outgoing calls on my Bell DZ. I just flashed the zip posted on the previous page. So I'll let you know if this has any effect on the issues Ive had. (Oh and I'm on the latest radio... not sure if that will make a difference...)
[G2 and Desire Z Android Development] dhkr234:
Hmm, the "ro.ril.enable.amr.wideband" interests me... my service provider (Wind/globalive) supports AMR Wideband (aka "HD Audio"). :D
[G2 and Desire Z Android Development] dhkr234:
That's more likely because bell's network is a worthless piece of garbage that mostly doesn't work.
[G2 and Desire Z Android Development] pfak:
You totally missed the point of this thread. Please learn to read. RIL files need to match the Radio you have flashed.

That, and Bell's network is utter garbage which is why you are seeing bad reception.
[G2 and Desire Z Android Development] Beast11:
Thanks for hating... And I'm not on Bell. Plus all my previous phones had perfectly fine reception...

Edit: Just flashed back to the old radio.

Just as a heads up, try and organize your thoughts a bit better. I couldn't really follow them, which is why I missed the point as you rudely pointed out.

I'll post here with my findings and let you guys know. Great work btw... I'm really hoping this works...
[G2 and Desire Z Android Development] pfak:
Please read my original post, hopefully it is better clarified for people. I am also on Fido (in the Vancouver area) and reception isn't very good regardless of the phone I have.

Have you set your Network Type in *#*#4636#*#* under Phone Information to "GSM/CDMA Auto (PRL)"? This is probably the best setting for Rogers/Fido as they have far more 2G towers than 3G.
[G2 and Desire Z Android Development] sundar2012:
If I am reading this right, most of the benefits of these new radios is unseen and/or lost when flashing a rom with different *ril.so files?

So all radios should be flashed with the corresponding RIL files?
[G2 and Desire Z Android Development] pfak:
Yes, that is correct. RIL (Radio Interface Layer) is an interface for Android to communicate with the proprietary radio found in most Android phones. You can find out more about RIL on Android SDK documentation RIL.

As far as I can tell at least /system/lib/libhtc_ril.so should be flashed with the matching radio image (the other files may be required, but I'm not 100% sure) and this seems to be something that CyangeonMod et. all seem to be missing out on.
[G2 and Desire Z Android Development] Beast11:
Thanks! It makes a lot of sense now. And I have it set as GSM/CDMA Auto but I'm not sure that will solve the problem because what happens is when I try to make a call (sometimes) all reception will drop before it even begins ringing and obv the call will be dropped. Then I have to wait about a minute or so before the phone gets any signal again. Other than that I get low signal and slow speeds. So i'll test this out a bit later.

From that diagram from the Android SDK, it looks like adding these RIL's may help me out :D. Correct me if im wrong...
[G2 and Desire Z Android Development] rhcp011235:
I think this deserves a bump.

More info needed
[G2 and Desire Z Android Development] tnpapadakos:
ok so after doing this ril=radio matching, i started trying different combinations of gprs class, hsdpa, hsupa, hsxpa settings.

right now, after several other combinations (10,10,6,2), (12,8,6,2), (12,10,6,2),(10,14,6,2) among others, i'm using the following:

ro.ril.gprsclass=29

ro.ril.hsdpa.category=14

ro.ril.hsupa.category=5

ro.ril.hsxpa=2

i never achieved anything over 4500ish DL speeds using the speedtest.net app before this...in fact i rarely got over 4000

right now, after several reboots (idk why this matters, but i rebooted 3 times anyway) ive been getting varied results, but actually achieved 8000 DL a few times, mostly around 4000+ to 6000+ DL speeds....:eek:

i noticed that i got different results trying different servers, and then, a few minutes later, i would go back to the server that was really fast, and then it wasnt ... after that, then it was again

so much has to do with network conditions at the exact time youre doing the test, etc etc...

but nonetheless, i really think that the libs matching the radio helps

someone try my settings and see if you notice anything better for you
[G2 and Desire Z Android Development] heybobitsme:
I'm going to try these settings now.

Edit: Wow, I gained about 2 mb/s. Now getting similar speeds, 4-5 mb/s. Good work!

Edit 2: This reminds of the throughput thread from a year or so ago in the G1 forum. It still applies, in a way. :)
[G2 and Desire Z Android Development] theratdude64:
I flashed a radio a wihle ago, here is what I'm at:

Nightly 15

What radio does that .zip a couple pages back correspond to? And what would I use for this radio? I am quite confused about this. I get quite terrible data speeds even though I live in a full 4G area, and like others the past few nightlies have been horrible battery life for me.
[G2 and Desire Z Android Development] Shaquiel Harris:
This is still kinda confusing.. I'm on the AUS radio. Do the libs respond to that RADIO? or the .26 radio or what? im using cm7.. trust me i read these posts twice.. still confusing.. like what are the libs here posted for? which radio? .26 or .27? How are we supposed to know which radio and libs to flash for each ROM? i would love a little more clarity.. i understand the concept and all that.
[G2 and Desire Z Android Development] heybobitsme:
I'm on the AUS radio. I don't think the radio matters too much. I have yet to try the other radios with these new settings. Also, I think we need to see the settings in the official ROM's these radios are for to compare.
[G2 and Desire Z Android Development] Shaquiel Harris:
alright. well i just flashed them.. hoping for better battery life.. maybe it will stop this radio from using so much battery.. anyway can these libs be flashed on say a sense ROM? or am i stuck with stock if i want these libs? and if i ever switched radios, will these libs still works? it seems as though these libs are supposed to correspond with a specific Radio..
[G2 and Desire Z Android Development] pfak:
These settings are not valid. The device does not support a GPRS Category higher than 12, or a HSDPA category higher than 10 and you aren't making use of the full HSUPA category of 6 that the device supports. Please see my initial posting regarding maximums for /system/build.prop.

You managed to completely miss/ignore the whole point of this thread. Radio image MUST match the RIL files you have installed, eg. come from the same ROM.
[G2 and Desire Z Android Development] hungyellow:
I haven't seen this answered yet but asked. Are theses libs for three latest aus radio since this thread is about matching ril and radio?

Edit: also would I flash this thru bootloader correct? Still kind of noob at all this but learning.
[G2 and Desire Z Android Development] Shaquiel Harris:
Thanks for the clarification i knew it didnt make sense somewhat. so are the ril libs in the previous page supposed to match for .26 radio for cm7? how are we supposed to know which radio and libs to flash when i switch ROMS? i flashed the ziplibs on the .27 radio.
[G2 and Desire Z Android Development] Shaquiel Harris:
Flash through recovery.
[G2 and Desire Z Android Development] Mikey:
I have two sets in my prop file:

ro.ril.enable.a53=1

ro.ril.enable.dtm=0

ro.ril.gprsclass=10

ro.ril.hsdpa.category=10

ro.ril.hsupa.category=6

ro.ril.hsxpa=2

ro.ril.def.agps.feature=1

ro.ril.disable.fd.plmn.prefix=23402,23410,23411

ro.ril.enable.sdr=0

ro.ril.enable.gea3=0

# vision RF team request

ro.ril.enable.dtm = 1

ro.ril.gprsclass = 12

ro.ril.hsdpa.category = 8

ro.ril.hsupa.category = 6

ro.ril.hsxpa = 2

Should i delete one set or change the values too both??
[G2 and Desire Z Android Development] Mikey:
I was wondering the same thing.

So in turn, these RIL files should be bundled with the radio images not into roms?

Finding the RIL for each radio, since they are probably different, if not the same.

That would make the most sense.
[G2 and Desire Z Android Development] heybobitsme:
If this is true then why was an improvement seen. Placebo?

Let me rephrase. Whereas the radio and ril settings do correspond with each other, I believe that there is some "wiggle" room when it comes to these settings, based on past experimentation with other devices.

Just because the device doesn't support a higher category, that doesn't mean it can not benefit from it. Our G2's/DZ's were made to support 14.4 mb/s download speeds and can and will never be able to go higher. But that doesn't mean it cannot use the higher network categories to it's benefit. Who knows, when our G2's are updated by T-Mobile as the DZ's are being updated by their respected carriers or HTC, we may see a new radio version and corresponding ril settings similar to what we've been messing with here.
[G2 and Desire Z Android Development] EdKeys:
Sorry wrong thread
[G2 and Desire Z Android Development] theratdude64:
Agreed, I'd love this too. My problems all seem to be related to this
[G2 and Desire Z Android Development] EdKeys:
I wanted to post that in the radio.zip thread for joemm to see. I'll do that now
[G2 and Desire Z Android Development] tnpapadakos:
i dont claim that they are valid, only reporting on what i used, and what the results were...but the reason i even tried them was that hsdpa # Cat 14 = 21.1 Mbit/s, the supposed upper limit of the great "4g" network speeds i'm supposed to be able to achieve. The reason i tried hsupa # Cat 5 = 2.00 Mbit/s was because with Cat 6, i never achieved anything over 2 Mbps anyway, so i figured i'd just try the category that supposed to top out at 2 Mbps.

pfak, can you try it just to see what happens on your end?
[G2 and Desire Z Android Development] heybobitsme:
tnpapadakos, where did you get the 29 value for gprs? Just random?
[G2 and Desire Z Android Development] tnpapadakos:
http://www.cellular-news.com/gprs/GPRS_classes_and_coding_schemes.shtml

used 29 because it has most channels and unlimited number of channels used at any one time, just trying things, idk
[G2 and Desire Z Android Development] heybobitsme:
I gotcha, go for broke!
[G2 and Desire Z Android Development] Shaquiel Harris:
Street fighter fan?:cool:
[G2 and Desire Z Android Development] heybobitsme:
Heh. Didn't think about that. But ya. :rolleyes:
[G2 and Desire Z Android Development] Shaquiel Harris:
Bet id tear that ass up in street fighter 4 and mvc3
[G2 and Desire Z Android Development] heybobitsme:
Probably. I haven't played it in years and never played SF4.

That being said, we should probably get back on topic.
[G2 and Desire Z Android Development] Shaquiel Harris:
True.

I just don't understand. Can someone, anyone, explain why my radio, no matter which one, almost ALWAYS uses 20 plus battery? On just 2G? Half the time its in the 40's.
[G2 and Desire Z Android Development] tnpapadakos:
have you calibrated it? and how old is it...if you take it out and lay it on a flat surface is it perfectly flat? or is it swelling...
[G2 and Desire Z Android Development] Shaquiel Harris:
I'm calibrating it right now. But still, is that normal, at all? I mean damn.. no one else reports that much battery use from their radio..
[G2 and Desire Z Android Development] klmsu19:
I think the "I matched the ril files and went from 1.5mb down to 5mb down" are jumping to hasty conclusions.

I was on the newest radio (not matching ril files) and side by side with a bone stock G2 (matched ril to the stock radio) and they had the same download speeds.

There's just no way a few files or a different radio version gives you 3mb more on the download. There are too many variables to make that conclusion without 2 phones side by side testing simultaneously.

either you have good bandwidth in your area or you dont. No radio version or ril files are going to dramatically improve your speeds over the course of time (besides maybe a spike, Tmo improvements in your area, or less traffic at test time).
[G2 and Desire Z Android Development] schaggo:
I didn't compare the MD5 hash but the files are byte-equal in size with the lib files I extracted from a 1.82.405-based ROM. That ROM came with radio 26.04.02.17.

And no, you use the recovery. Rule of thumb: everything "file related" you use the recovery to flash, everything "low level" (radio, recovery, ...) related you use the bootloader.

Why did you use lower settings in your post further up than what you said the maximum values are in this post here? Does the connection more likely uuuhm... "stall" or so with the higher settings?
[G2 and Desire Z Android Development] pfak:
Please re-read the post you linked, notice the word Removals. The settings I removed are listed twice in /system/build.prop and are properly set later on in the file.
[G2 and Desire Z Android Development] schaggo:
My bad, sorry. I'm at home, catched the flu and laying in bed all day long waiting for the fever to go away, I had nothing better to do than browse xda-devs... I shouldn't have, it shows :p

How did you find the libganril.so to be not part of the important libs to be exchanged? I was browsing some build.prop's today and did notice that that file and some other files are not referenced in HTC's ROMs but are in CM and subsequently CM based ROMs.

I did also notice the line rild.libpath=/system/lib/libhtc_ril.so in HTC's 1.82.405 to be drastically different to CM7: rild.libpath=/system/lib/librilswitch.so. The other file does get referenced with rilswitch.vendorlibpath=/system/lib/libhtc_ril.so which can not be found in a HTC build.prop. How come? Do CM builds handle the whole RIL differently? My guess is that CM uses a generic approach with the rild.libpath variable and uses the librilswitch.so as a wrapper for the vendor specific proprietary libs with the rilswitch.xxx variables. But that's just a guess...

What I also found is that GingerVillain, a CM7 based ROM, has the libreference-ril.so as HTC ROMs do while the CM7 builds do not. How come...?
[G2 and Desire Z Android Development] bongd:
For some reason I can't load the spreadsheet. I'm using the AUS .27 radio and the latest version of Virtuous.

I wasn't privy to this information but have had a lot of dumb luck regarding amazing battery life and really good reception. But I of course want to make sure I'm using the right files to match my radio. Could someone let me know which ones to use?

I've got a Bell DZ but I'm on Rogers. I'm on Vancouver Island, so not too far away from the OP.. will report back on my findings once I switch things around. Thanks so much to the OP for bringing this to light!
[G2 and Desire Z Android Development] hungyellow:
Thanks for the tip and info. I might just have to try .17 radio then.
[G2 and Desire Z Android Development] blast0id:
nevermind, I was upstaged by the post following this one =P
[G2 and Desire Z Android Development] rmk40:
Here's a single updater zip which will read your currently installed radio version and install the matching libraries. Use CWM to flash it just as you would any rom/patch/etc.

It currently supports the following radios:

26.02.00.24_M2

26.02.01.15_M2

26.03.02.08_M

26.03.02.18_M3

26.03.02.26_M

26.03.02.26_M2

26.04.02.17_M2

26.06.02.27_M

Thanks to pfak for starting the research discussed in this thread and updating the patch with additional matching libs. With his contribution, the patch now supports all known radios.

Download Radio to RIL Automatcher v2​
[G2 and Desire Z Android Development] G1ForFun:
Wow, thank you!
[G2 and Desire Z Android Development] insink71:
Sweeeeet. Thanks rmk40. Awesome tool.
[G2 and Desire Z Android Development] EdKeys:
Thanks for this! Now I can flash a rom, pershoots kernel and then your ril updater. Excellent job!
[G2 and Desire Z Android Development] popokrew:
Sweet! Just flashed the latest CM7 nighly 18 and then your lib matcher. Ill let you know if it makes a difference. Thanks!
[G2 and Desire Z Android Development] NetStranger:
Why we need it? For what it? If my 06 02 27 works fine on my official 1.82 ,do i need to install it?
[G2 and Desire Z Android Development] kara mustafa:
If i am using vitruos 1.0.1 with .17, should i install this update?
[G2 and Desire Z Android Development] saquib:
I have flashed, data is working is fine, but everytime I make a call as soon as I place the phone near my ear the call is dropped and network service is dropped for a few seconds. If I don't place the phone near my head the call does not drop.
[G2 and Desire Z Android Development] crazyC:
What radio and Rom are you using?
[G2 and Desire Z Android Development] saquib:
CM7 Nightly 15 and 26.03.02.26_M
[G2 and Desire Z Android Development] dekeijzer:
The RIL Automatcher doesn't work perfectly on Desire Z with CM 7 nightly 19.

It makes an old issue come back where turning the screen off also destroys the phone connection.
[G2 and Desire Z Android Development] saquib:
Thanks, can confirm the same issue with nightly 15.
[G2 and Desire Z Android Development] PlatinumMOTO:
will this work on the mytouch 4g or is it needed at all? great work btw.
[G2 and Desire Z Android Development] nedu09:
Will use the script in about an hour on CM 7 RC 2. Will only be able to see if it made any improvements once I get back home to my 4G city.

Thank you & thanks to everyone researching this too!
[G2 and Desire Z Android Development] tnpapadakos:
no, this update.zip will not flash on a mytouch4g, it is for G2 and Desire Z

i know, because i tried it just to see, it aborts installation

the concept however, does work for the mytouch4g, you just have to get the proper lib files from the stock rom that came with the mytouch4g and the radio

to my knowledge, the mytouch4g has not received a radio update since it came out, so, i extracted the stock lib files from the mytouch4g and am making an update.zip

this is the g2 Dezire Z forum, though
[G2 and Desire Z Android Development] nedu09:
The script executed perfectly. Will test it tonight and post back.
[G2 and Desire Z Android Development] pfak:
More information required, eg. What radio version are you using?
[G2 and Desire Z Android Development] rmk40:
Which radio are you guys running? Realize it's impossible for us to do anything with these reports without sufficient data.
[G2 and Desire Z Android Development] saquib:
I think I mentioned earlier the radio version 26.02.03.26
[G2 and Desire Z Android Development] tbalden:
Hello.thanks for the matcher script. I'm yet to test if it really matters. I've very varying wifi speed with speedtest.net app under cm7, and I'm trying different rils and radios too.

So far not much luck. Unfortunately it makes the cm7 network search useless, givin error on mobile network service provider search. With vanilla libs it works...

If the wifi juice needs is lowered with matching ril, ill be happy tho.
[G2 and Desire Z Android Development] Shluggity:
I can confirm the same issue with 26.04.02.17_M2 after running the Automatcher.zip, both on CM7 #15 and now #19.
[G2 and Desire Z Android Development] bongd:
I've run the autoscript and would like to thank rmk40 for making that for us. :)

Now how can I confirm exactly if this went through? I'm running the Aus .27 radio and need to know where on the SD card or device I can check the respected libraries. Thanks!
[G2 and Desire Z Android Development] rmk40:
I'm running that radio and CM7 nightly 19 and have no problems. How can I reproduce the issue? In other words, what exact steps do I need to take to have it happen for me?
[G2 and Desire Z Android Development] saquib:
Make a call and put phone next to ear, call drops and phone signal is dropped for a few seconds.
[G2 and Desire Z Android Development] rmk40:
Did that, no issue. I even tried turning the screen on and off manually during the call and it did not drop. Do you have anything else configured which changes the state of the phone when the screen is off (i.e. Tasker, SetCPU profiles, etc)?
[G2 and Desire Z Android Development] saquib:
I do have a setcpu profile for screen off to reduce CPU speed.
[G2 and Desire Z Android Development] Fallen Spartan:
Every time I make a call and put phone to ear my call is dropped. Not sure what you have done to get a different result
[G2 and Desire Z Android Development] Fallen Spartan:
Exactly same issue I'm having on DZ using radio 26.06.02.27 M
[G2 and Desire Z Android Development] Baphometa:
Quick question about RIL files. When changed are they stored inside ROM files? Changing ROMS or reinstalling roms would revert RIL changes correct?
[G2 and Desire Z Android Development] tnpapadakos:
quick answer: yes

for those of you who have a glacier, and have been drawn to this thread (like me)

i made an update zip for each, stock TmoUS libs for radio 26.03.02.26_M and cm6.1.2rc2 libs for radio 26.03.02.26_M

not really anywhere else similar to this thread in glacierland to post em at this point
[G2 and Desire Z Android Development] BRad Barnett:
That is *precisely* the issue I've been having. On Fido, Bell phone, used gfree.

Interestingly enough, my first Desire Z did *not* have this problem. However, that was a few CM versions ago. I was on pre-6.1 releases back then. I also bought a Desire Z on the first day. I'm wondering if it was a different radio.

Perhaps the ril libraries in CM better matched the radio back then, pre 6.1?

I've tried the .17 radio, just to see what happens. It seems more stable (so far).

I'm just wondering if we had .rils that supported *every* option, along with a radio that was the same.
[G2 and Desire Z Android Development] BRad Barnett:
http://forum.cyanogenmod.com/topic/15823-network-turns-off-on-calling/page__p__139306#entry139306

Seems that some version of the RIL files in CM7 RC1, caused the 2G/3G to drop when the screen went off?!

Here, it seems that there are complaints about the .17 and .26 (the AUS rom?) versions of the ril libs?

Interestingly, the md5sum co-relates that:

2c6ea9ebd08e95ef8691778644464e95 26.02.00.24_M2/libhtc_ril.so

7157338a0c0d1ea212b1903093f09013 26.02.01.15_M2/libhtc_ril.so

6d4119c6c480f72c1357aa1ee3bf11b2 26.03.02.08_M/libhtc_ril.so

ef14f17a9e6e1db1f97f52ecd7d3d197 26.03.02.18_M3/libhtc_ril.so

ef14f17a9e6e1db1f97f52ecd7d3d197 26.03.02.26_M2/libhtc_ril.so

ef14f17a9e6e1db1f97f52ecd7d3d197 26.03.02.26_M/libhtc_ril.so

ef14f17a9e6e1db1f97f52ecd7d3d197 26.04.02.17_M2/libhtc_ril.so

351922d2dd647234fc2f26830f1246cc 26.06.02.27_M/libhtc_ril.so

Interesting that CM + the t-mobile RILs support fd.scron.timeout and scroff.timeout.. and, the rils that drop connection on screen off, don't.

Hmm. Another interesting thing. I know the Bell rom is a sense rom, and likely the WWE roms are too, right? However, t-mobile's rom is not a sense rom.

Could it be that part of the sense UI is part of this issue?
[G2 and Desire Z Android Development] Beast11:
It's good to know this is a software problem, and not a hardware one. Also, I haven't noticed any dropped calls since I added the RILs. But I don't think it tried to make many calls...
[G2 and Desire Z Android Development] BRad Barnett:
OK.. so, I'd say the next step is to look for radios/RILs designed for use with non-sense UI roms.

Those roms should be a better match. Unfortunately, looking at that cool chart shows that only the t-mobile RILs supports ro.ril.fd.scroff.timeout.

I assume all the WWE roms are Sense, since they come from HTC, yes? Does anyone know if any of the other roms are not Sense as well?

Based upon all of this, I am going to migrate to the newest t-mobile radio, and see how that fares for me...