yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z General] steviewevie:
Just stumbled across this thread, interesting. I had tried the 04.19 radio before, and whilst it did give me better reception (and GPS was fine), I also seemed to have poor battery life. So I went back to an earlier radio.

I just tried implementing the suggested changes, having flashed 04.19 back again, and will see how it goes. Fingers crossed for some better battery life. Running CM 7.1 nightly 251.

Sent from my Desire Z running CM7.
[G2 and Desire Z General] Cloonix:
No problems here with my HTC Desire Z (unbranded EU phone) and CM7 #263. Though I don't notice any improvements. But i already had new a Radio and new RILs before for fixing my GPS issue.

I will keep you updated.
[G2 and Desire Z General] Aumkar:
Well, on my G2, forced to 3G, the battery life dropped all of a sudden when an app froze my whole phone. So far, moderate use, 13 hours to 30%. Quite bad actually. Also, wifi was on for quite a long time, while I was in college, and didn't notice.
[G2 and Desire Z General] XxhTcG2uSERxX:
Does it matter what Rom ur using ?
[G2 and Desire Z General] Cloonix:
Yes it does.
[G2 and Desire Z General] steviewevie:
Hmm, no noticeable improvement in my poor battery life with 04.19 so far using this method. Will give it a bit more time though.

Which CM nightly are you running Ed ?

Sent from my Desire Z running CM7.
[G2 and Desire Z General] wujxin:
After copy the three files , do I need to change their permissions ?
[G2 and Desire Z General] bombadier:
no need to change permissions

Sent from a htc desire z
[G2 and Desire Z General] EdKeys:
I'm running tsubus' latest release of CM7 nightly, currently it's 268 . I am also running with the latest gps.vision.so file taken from the same OTA as these lib-ril .so files. Tsubus has made them "stock" for his build if you are running the .19 radio. I don't know if that makes a difference or not but kusuriurikun did a lot of research on using that gps driver to improve gps performance. See his thread here: http://xdaforums.com/showthread.php?t=1258316

Give it a few days so that you can be sure if there is any improvement or not. Keep us updated.
[G2 and Desire Z General] gcardy:
I just flashed CM7 nightly 263, new .19 radio, matched rils, wiped battery stats. I will let you know how this bakes in. On a positive note, after using the efs wipe and the correct .so file my gps finally works after months of no GPS locking.
[G2 and Desire Z General] EdKeys:
Bumping this for some of the newer members or for those that missed it the first time around. It seems that it has worked out well for most of the users that applied the updated lib-ril files to their CM7 installs with the latest .19 radio. Once again, if you're new to the thread, post your results for others to see.
[G2 and Desire Z General] pearse:
Just wanted to post an update again, I've been using this for over a month on CM7 nightly 263 and i've had a major improvement in battery life compared to without matching the libs.

Thanks again EdKeys! Anytime i flash a rom this is the first thing i do.

---------- Post added at 06:36 PM ---------- Previous post was at 06:01 PM ----------

Hey Aumkar, have you tried leaving the wifi always on and setting the sleep policy to never? I read in a thread (somewhere) that doing this improves battery life and I've tried it for the past few days and can attest to that fact. Let me know if it helps your batt life at all.
[G2 and Desire Z General] Aumkar:
I'm not at home all the time, eight hours a day I'm in college for lectures. And my building isn't hooked up with wifi yet and the wifi from the next building is too weak to leech off of. The wifi sleep setting applies when you're on a wifi network the whole time.

What bothered me more is that the battery life dropped like crazy all of a sudden after a reboot.
[G2 and Desire Z General] pearse:
Ahh ok makes sense. Maybe this radio doesn't work well in your area then :(
[G2 and Desire Z General] ashwinmudigonda:
Unable to unzip

Hey guys, I want to try this out on my phone, but when I unzip the .zip file, I get an "unsupported compression method" error with 7zip and all the 3 files are 0 bytes. I feel stupid given that no one else has complained about it, but is it possible the zip file has changed?
[G2 and Desire Z General] bombadier:
Try downloading again,just tested and the link is good
[G2 and Desire Z General] davepan2010:
need help with matching lib-ril. so files

Hi, I am a beginner. I just rooted my phone and installed a CM stable cm7. when I started using the phone, I found that my wifi and cell signal is very weak than before and battery runs out pretty fast as well. so, i was reading up on that, and i found i might need to upgrade my radio. so, I found your thread about update radio. i updated my radio to 26.13.04.19_M. some how, i dont quite understand how to matching the lib-ril . so files that you mentioned in this thread. what i did is created a new folder (named lib under SD root) and copy pasted 3 .so files to this folder. i am not sure if this is right...:confused::confused::confused::confused:

Could you please help me with this ? if what i did is wrong, please provide a detail way.

I apologize that I am really stupid on
[G2 and Desire Z General] Ditamae:
Hey. All you need to do is copy those 3 ril.so files to /system/lib. You can use a file explorer to do this... I use ES File Explorer. It's free on the Market. Just enable Root Explorer and Mount File System from the Settings menu in ES File Explorer so that you can access the /system. You're almost there, just need to copy the files from your SD card to /system/lib. After you move the files be sure to reboot into Recovery and wipe dalvik/cache, and then run the EFS wipe tool. If you don't already have this, I believe it's available in the OP.
[G2 and Desire Z General] EdKeys:
You'll need a file manager that can mount your system folder as read/write (r/w). I use root explorer but there are other apps free on the market that you can use. Once you have that you need to use it to first copy those 3 files and then browse to the system/lib folder and paste them there. The system/lib folder is internal and not on your sd card. Hope that helps.
[G2 and Desire Z General] davepan2010:
Hi, Thanks for your help, I followed your instructions and did up to Mount File System. however, i dont see there is folder called system (is there will be a folder called "system", after I mount file system?) on the ES file explorer, I am @ Local and the path is /sdcard/ . there is no such a folder called "lib".

what I did is that I created an empty folder called "lib" from the computer, and copy pasted that three files to that "lib" folder in the phone. but its under the path of /sdcard/, so that i have that three files in /sdcard/lib folder.

I am not sure if this will work. i also attached a pic in this reply.
[G2 and Desire Z General] davepan2010:
Thanks for your reply. very appreciate your help.

---------- Post added at 10:17 AM ---------- Previous post was at 10:04 AM ----------

Hi, Thanks again. I think I got it. I clicked on the "Favorite" tab and finally found "system/lib". I also install that esf wipe software under recovery. Will this also help with the GPS thingy? thanks so much...
[G2 and Desire Z General] Ditamae:
Yes, you got it. You just needed to navigate into your /system rather than /sdcard. ;) And also, yes regarding the EFS wipe... it should help if you experience problems with GPS.
[G2 and Desire Z General] ronmq:
I just updated my ril files. Thanks for your help to everybody
[G2 and Desire Z General] Doc76013:
I did this about eight or nine days ago, followed the guide and now I am happy to report that battery is so much better, at 37 and a half hours I still have 22%. Before I was getting between 12 to 14 hours at the same or less percentage. I have also a much better signal and GPS lock. I am a NOOB however the guides and wiki have so much information that is SO SO SO useful.
[G2 and Desire Z General] trout14:
I have tried 3 different file programs and none of them will allow me to move the .so files to system/lib . Any ideas?
[G2 and Desire Z General] Ditamae:
ES File Explorer, free in the Market. You need to enable Root Explorer and mount the system as writable from the Settings menu before you can access the /system files. That's one option.
[G2 and Desire Z General] trout14:
Thank you, that worked. How do I know that I was ultimately successful, where do I look? Under baseband version? my numbers are12.22.60.09bU_26.02.01.15_M2

Is that correct?
[G2 and Desire Z General] Ditamae:
No problem. As long as you moved the files successfully, then you're good. But it appears you haven't yet flashed the 4.19 radio... looks like you're still using an older radio: 26.02.01.15. You have to flash the radio first. ;)
[G2 and Desire Z General] trout14:
Thank you again. This time I believe that I got it all correct.
[G2 and Desire Z General] crestofawave:
Disregard.
[G2 and Desire Z General] tarroyo:
Has anyone performed speed tests after matching ril files?
[G2 and Desire Z General] ziyad.dadabhoy:
Data won't work

I am running andromadus v12 and flashed the new .19 radio. I then pushed the ril files to the system/lib folder and restarted and wiped the caches. Now my phone won't get data. Any help?
[G2 and Desire Z General] tarroyo:
I'm pretty sure the ril files in this thread are for froyo and gingerbread roms only, T-Mobile has yet to make a ICS announcement yet.
[G2 and Desire Z General] COA4178:
Hello I'm running cm7 and I downloaded and replaced the lib files along with the installation of the radio 19m and I'm finding out tht my battery monitor widget tells me tht I only got 6hrs15min of battery, is weird since I used to pull around 11 to 12 hrs txt, internet, and few games. Tried calibrating deleting the bat stats and also dalvik cache but no use. Has this the new lib and radio files messed me up??
[G2 and Desire Z General] EdKeys:
Did you wipe the efs partitions yet?
[G2 and Desire Z General] COA4178:
Yep I used it bfore the libs file
[G2 and Desire Z General] EdKeys:
That might be your problem. You need to do that last.
[G2 and Desire Z General] COA4178:
So is it safe to do it now tht I installed all that? Or is not worth doing it
[G2 and Desire Z General] EdKeys:
You should do it now if you've aleady flashed the .19 radio and already moved the lib-ril files over. It's definitely worth doing it as your radio data is probably corrupt and wiping the efs partitions should clear that up. The link to the efs wipe tool is in the OP. Flash it through recovery. Wipe the cache and dalvick cache too while you're in recovery.
[G2 and Desire Z General] demkantor:
ok just flashed the latest radio via fastboot, im not going to replace the lib files yet; ill give it a few days then replace them for test purpose and post my results if i notice anything much. quick question if i were to have received the ota would those files automatically been added by tmobile? i assume so but just curious .

also i plan to try more than one different radio to see what works best for me, anyone know where to get the lib files on other radios?
[G2 and Desire Z General] bombadier:
lib zip with all the radio libs

Wipe_EFS.zip

Not sure if the automatcher works,just copy the rils over manually,always use the wipe efs when changing radios as well,all the best and look forward to seeing your results

cheers
[G2 and Desire Z General] adamz667:
For Andromadus (ICS based on CM9, I know, I know - it's not CM7) users - it won't work :) I've tried it today, but after copying libs, wiping and reboot phone cannot find any network and works like in airplane mode.
[G2 and Desire Z General] bombadier:
Good point same story for Virtuous Unity(Matching isn't recommended with sense roms), do the matching only with CM7 or something based off it
[G2 and Desire Z General] darkrift2012:
Radio update worked until ril files updated

[Running CM7.1 - kernel v:2.6.35.14-cyanogenmod-g9e5cdf1 android@portatile #1 - bld# GWK74/GRI40]

**Cautionary tale - backup frequently!

Data signal quality has been diminishing over the past several weeks so I decided to see if the radio update from TMo would improve performance.

The radio flash was successful and the device returned to nominal operation after the process. I updated the ril files per the directions, cleared cache, dalvik vm, then running the wipe efs scripts. The scripts completed successfully however the device wouldn't re-establish connection to TMo network after reboot.

Baseband device [radio] was "unrecognized" by the OS. WiFi, BT, GPS, launchers all appear functional.

After a few troubleshooting attempts I opted to restore the NANDroid backup made immediately prior to flashing the new radio.

NANDroid restore completed successfully, the device has re-connected to the TMo network and CM7.1 is again recognizing the baseband [radio] with version 12.62.60.27U_26.13.04.19_M.

I'll attempt the ril file update again after researching the scripts and shadowing the log files to help me identify where the problem is occurring.
[G2 and Desire Z General] Ditamae:
Hmm... that's strange. You're the only one who's reported this issue. But matching ril files really doesn't pose any danger. You can just as easily copy and paste those from your previous ROM, reflash your ROM without a wipe, or, as you did, restore a backup. If I were you I'd give it another shot. Definitely improved my battery life after I matched lib-rils with .19. :)
[G2 and Desire Z General] hawtcakes:
Are only two files supposed to be replaced?

Rebooting my phone right now. Edit: Nothing seems to be broken yet.
[G2 and Desire Z General] Ditamae:
Yes, two are replaced and one is added, if my memory serves me correctly.
[G2 and Desire Z General] ccooluke:
trying now. just updated my phone to CM7.2 RC1

I haven't been able to get wifi working with this radio. At least not consistently. I had wifi working with another radio, but the speeds were horrible for 3g/4g.

just switched out the lib files you posted.

and... wifi is still not working. anyone know why?

gps looks good though.

anyone know a fix to get wifi to stay connected? it'll say its connected but won't load any data.
[G2 and Desire Z General] hawtcakes:
It's been four days and my phone is still at 38%. It's probably working.
[G2 and Desire Z General] NeverGone\RU:
Didn't work for me.

After copying *.lib files, phone is unable to turn on Mobile Data and throws "SIM not found" message in APN menu (Affinity 2.05).

Had to restore from Nandroid.
[G2 and Desire Z General] EdKeys:
What rom are you on? This thread is for CM7 based roms.
[G2 and Desire Z General] NoFatePPC:
Yes, i had that error too on sense and non sense roms soon after i matched the rils... therefore not using that radio anymore? Where are you from? I dont think that radio is compatible for europe(belgium provider)

Just my guess...
[G2 and Desire Z General] tarroyo:
Seeing as this doesn't work for ICS roms, is there a working solution for that yet?
[G2 and Desire Z General] EdKeys:
It doesn't appear that there will be an official ICS release for the G2/DesireZ so I don't believe we'll have any new radios or rils to test. The only suggestion I have for now is to try testing all the radios that are currently available with the rils released with the ICS ROM you're running. Be sure to wipe EFS data after you change a radio or a ROM that has different rils than your previous setup.
[G2 and Desire Z General] todonormal:
I have a desire Z to Spain. Can i install this radio and procedure lib?:confused:
[G2 and Desire Z General] EdKeys:
Yes, the .19 radio works with both the G2 and DesireZ. The .19 matching rils were taken from the AOSP ROM that included that radio and work quite nicely with CM7. How the .19 radio works with your particular carrier in Spain compared to what you have now will be left up to your own personal experience. Post back your results if you go forward with the procedure.
[G2 and Desire Z General] magic_android:
Well i just want to say, i did this for CM7.2 RC1 and it has given my phone some of the best battery life it has ever had. So thanks for the guide :).
[G2 and Desire Z General] ACHILLES R32:
Do you have to change the permissions to the new lib-ril files once you paste them. I compared the permissions on the new lib-ril files and they are --xrwxr-x (all 3 files) and all of the unchanged lib files have rw-r--r-- permissions.

thanks
[G2 and Desire Z General] riahc3:
Besides, 26.13.04.19, can you make the "lib ril os" files for the rest of the radios?

Thanks!

---------- Post added at 12:48 PM ---------- Previous post was at 12:19 PM ----------

Went ahead and did this as well. Lets see how today and tommorow go.

---------- Post added at 12:53 PM ---------- Previous post was at 12:48 PM ----------

Uf initial (less than 10 minutes) arent looking good....

SetCPU installed with off screen at 300mhz and on at 800mhz, it was at 100% a couple of minutes on screen off and it is already at 98%.....

---------- Post added at 12:54 PM ---------- Previous post was at 12:53 PM ----------

All this on WiFi....
[G2 and Desire Z General] EdKeys:
You'll need to give it more time to see how it works out for you. After a few days and a few fresh battery charges you should see a nice improvement in battery life. It is not recommended to match the lib-ril files with CM7 and any of the other radios. You wouldn't see any improvements and would probably have some issues. Many of the other radios were released with Sense based ROMS.
[G2 and Desire Z General] riahc3:
Yes, I will indeed give it some days.

On a side/related note, what governor are you using? In case it makes a difference in battery life (not completely related to this....)

---------- Post added at 02:31 PM ---------- Previous post was at 01:39 PM ----------

OK better news :) HSPA is way faster....very fast.

Nonetheless, I still see battery life suffering but let's give it some days.
[G2 and Desire Z General] EdKeys:
I always use ondemand with CM7. To me it's the most responsive and still gives me decent battery life.
[G2 and Desire Z General] goister:
Is it possible to revert to my original radio version if things don't work out? If so, how?
[G2 and Desire Z General] EdKeys:
If you mean the rils and gps drivers you are currently using, just re-flash your current rom over again and you'll be back to original. You should wipe efs every time there's a ril change so do that too.

If you mean the original radio, you can find them all in the thread linked in the OP. Just make note of the radio you're running now before you upgrade.
[G2 and Desire Z General] goister:
Thanks. Just followed the instructions and flashed the radio, ril and wiped efs. Let's see if there's a difference.
[G2 and Desire Z General] EdKeys:
Post back results here in the thread after a few days and several fresh battery charges along with what rom you are running.
[G2 and Desire Z General] riahc3:
Other than way faster HSPA speeds, I dont notice anything out of the ordinary.
[G2 and Desire Z General] goister:
GPS is not working at all. The GPS icon doesn't even appear in the status bar, and GPS Status shows nothing at all. I did a restore to my Nandroid backup of CM 7.10 and GPS starts working again.

Will flash to CM 7.20 RC2 and see if it's still working.

Edit: Just flashed to CM 7.20 RC2 and GPS appears to be working. I'm in a building so I can't really tell but at least the icon appears in the status bar, and I have 1 satellite in view. With the updated radio and ril I get zilch even when outdoors for half an hour.
[G2 and Desire Z General] riahc3:
A couple of days later and still nothing too remarkable.

Oh and for GPS, get the AGPS patch. It is truely amazing.
[G2 and Desire Z General] riahc3:
Confirming what I commented: I only have faster HSPA speeds. Nothing else. Battey life is the same.
[G2 and Desire Z General] EdKeys:
OP has been updated to Version 2.1
[G2 and Desire Z General] goister:
So I need the AGPS patch to get GPS working with this radio update? Where can I get it?
[G2 and Desire Z General] EdKeys:
No, not needed. You can view NMEA strings with a free market app: Turbo GPS. Check before and after the upgrade. You should be receiving envelope packets with data.
[G2 and Desire Z General] goister:
Well like I said in my earlier post, my GPS didn't work after the update. Totally nothing - the GPS icon doesn't even appear on the status bar when it's supposed to be on. :(
[G2 and Desire Z General] EdKeys:
Could you try this for me? Flash through recovery.

http://db.tt/aeOMe1Hn
[G2 and Desire Z General] goister:
I've already reverted to default CM7.2 RC2 radio. How do I flash this? Do I have to flash the .19 radio, the 2.1 ril files and wipe efs partition before flashing this?
[G2 and Desire Z General] EdKeys:
My apologies everyone. I mistakenly linked to the CM9/Andromadus so updater a few days ago, so anyone that thought they downloaded the CM7 updater really downloaded the CM9 updater. I'm really sorry if this caused anyone any inconvenience. Thanks to Goister pointing this out. The OP has been updated with the correct link. Once again, sorry for the confusion. I've been working on a few projects lately and got my links crossed up... :(

If you applied the update before 5/19/2012 then you are good. This only applies to the downloads after that date.

Ed
[G2 and Desire Z General] goister:
I'm sorry, now I'm confused.

The CM7 updater in the OP is dated May 18, however the OP mentions that librilswitch.so was updated to version 2.1 on May 20. I opened up the zip file and I couldn't find librilswitch.so in it. Is this the right file?

I currently have stock CM 7.1 RC2 on my phone. What do I have to do to get the latest radio/ril? According to the OP, I have to do this:

1. Boot to recovery

2. Flash the .19 radio

3. Flash the 2.1 RIL updater

4. Wipe cache, dalvik-cache and EFS partition

5. Reboot

Did I get that right?
[G2 and Desire Z General] EdKeys:
Librilswitch.so applied to the updater for Cm9. There is no need to update that file in CM7. OP has been updated.

You've got it correct except you need to boot to bootloader to flash the radio. Follow the rest of that plan after the radio update and you should be good. Please post back when you're done.
[G2 and Desire Z General] goister:
Just did the update again. Same problem. No GPS icon in the notification bar at all when I test with GPS Test. Same with GMaps.

Is there anything I can do to troubleshoot this? logcat messages/some adb commands/etc? If not I'll just restore my CM7.1RC2 backup.
[G2 and Desire Z General] EdKeys:
Goister, go to settings and scroll down to 'about phone' and post what it reads for baseband version.
[G2 and Desire Z General] goister:
12.62.60.27u_26.13.04.19_m
[G2 and Desire Z General] EdKeys:
That's the correct radio. I can't understand why it works for everyone else and not you. It may be gps status. It's been known to cause problems in the past but I haven't heard about it lately. Last thing to try is uninstall that app, then apply the updater in the OP. It starts with CM7. If it says CM9 anywhere in the file name, don't flash it. Delete any so updater you downloaded in the past and redownload from the OP again, reflash and wipe the efs partition again. You should also go to apps and first force stop 'maps' and then clear data.
[G2 and Desire Z General] goister:
I'm sure I used the correct CM7 updater, not the CM9 version, and followed the steps correctly. The problem is that although I turned my GPS on, it doesn't seem to register in the OS, as illustrated by the fact that the icon doesn't show up in the notification bar.

I'm wondering if there are any lower level stuff I could do like snoop around logcat or running some adb shell commands that lets me know where it's failing, or would that be beyond your expertise?

In any case, I didn't notice any increases in my data speeds, so if there's nothing else that can be done, I'll just go back to the default radio...