[HTC Sensation] Noobel:
I've found a simple solution to infamous Error while scanning for networks message with Android 4.1.x, 4.2.x, 4.3.x and 4.4.x AOSP based ROMs and decided to share it with all of you. It should be safe to install this fix on any custom AOSP based ROM. Not compatible with Sense ROMs!

To install the fix just flash an attached zip file from recovery.

And re-flash it again if you did a ROM update! ;)

Caution! Prior to flashing on 4.1.x based ROMs, open zip with winrar and delete rild file from /system/bin/.

There are 3 versions to choose from

HTC-RIL_4.0.0024HMQ_AOSP.zip - original files extracted from cile381's AOSP 4.2.2 build 4! 100% credit goes to him. Thanx dude! :good:

You may want to install a matching radio 11.72.3504.00U_11.23.3504.08_M2 with this rather old but widely spread RIL not a mandatory though.

For some reason all AOSP ROMs (official CM, albinoman887, LaidbackNikez, cile381, DragunKorr, etc...) use the same identical libhtc_ril.so v4.0.0024 and different modifications of libril.so and rild with their ROMs...

HTC-RIL_4.0.0037HMQ_AOSP.zip - same as above with an updated libhtc_ril.so to v4.0.0037 so you can safely use it with the latest radio.

This is the latest official RIL for Sensation and is now included in legendary CM ROM by bruce2728 (recommended).

HTC-RIL_4.0.0056HMQ_AOSP.zip - same as above with an updated libhtc_ril.so to v4.0.0056 from Inspiration ROM (One S ICS).

Please note this RIL wasn't originally intended for Sensation but still works great and has become a part of fantastic CM ROM by Sultan (bleeding edge).

All tested and working!

HTC-RIL_4.0.0036HMQ_AOSP.zip - same as above with an updated libhtc_ril.so to v4.0.0036 by request.

INFO: RIL 4.0.0063 from Relevation/ViperS 3.1.x JB ROM (One S JB) will not work with current breed of AOPS-based ROMs (requires ion/hboot/firmware), probably will work with future ION AOSP ROMs

To check RIL version run getprop "gsm.version.ril-impl" (with the quotes) in Terminal Emulator or use CID Getter and search for gsm.version.ril-impl.

Funny enough, when GetRil is used to install latest Sensation RIL .37 it won't recognize it after device reboot. :D In fact GetRil doesn't analyze anything it just checks what's installed and compares with it's database which is not up to date and definitely doesn't have any info about matching/not matching radio/ril from different ported ROMs.

MMS fix (may cause problems with data connection on some networks)

If you're unable to send/receive MMS while mobile internet is active and Wi-Fi is off do a simple trick to fix it:

open build.prop and add skipbrokendatacall to this line:

ro.telephony.ril.v3=datacallapn,signalstrength[COLOR="Red"],skipbrokendatacall[/COLOR]

Save and restart your phone. (You may need to set permissions to file before restarting, depending on text editor used.)

Latest FW & Radio (optional but highly recommended)

To install the latest firmware and the latest radio just flash* this file!

MD5: de9987bae2d70a20e11ecb4a32363a0d

SHA: 0d08cd59385d1d26018538616f0a39ea5e7d2811

Note: your device must be S-OFF !!!

File contains latest firmware 3.33, hboot 1.29.0000 and radio 11.76C.3504.00P_11.29A.3504.18_M.

To check firmware version connect to PC, fastboot load into the bootloader and type: fastboot getvar version-main

Firmware is identical to the original firmware by mike1986. with an updated radio (thank you stempox).

Nevermind a locked status of 1.29.0000, I don't think you'll really need an unlocked one, you're S-OFF anyways... ;)

You can always use HBoot 1.27.1100 Patch to go from locked hboot 1.29.0000 to unlocked hboot 1.27.1100 (thank you Kohr-Ah)

Enjoy!

:cowboy:

PS Don't forget to make a nandroid backup, just in case... ;)

*How to flash firmware (credits to mike1986.):

if you're superCID just follow from step 3

1. Check your CID using fastboot getvar cid and MID using fastboot getvar mid

2a. If your CID and MID are supported by default, navigate to point 3.

2b. If your CID or MID is not supported by default, do this: (you do it at your own risk)

2c. Open PG58IMG.zip (don't extract it)

2d. Open android-info.txt in text editor

2e. Add your cidnum: <your CID> or modelid: <your MID> to the list, save file and close archive

3. Place PG58IMG.zip on your SD card

4. Boot your device holding power button + vol down button

5. Follow instructions on the screen