Android's Radio Interface Layer (RIL) provides an abstraction layer between Android telephony services (android.telephony) and radio hardware. The RIL is radio agnostic, and includes support for Global System for Mobile communication (GSM)-based radios.
The RIL consists of two primary components:
RIL Daemon: The RIL daemon initializes the Vendor RIL, processes all communication from Android telephony services, and dispatches calls to the Vendor RIL as solicited commands.
Vendor RIL: The radio-specific Vendor RIL of ril.h that processes all communication with radio hardware and dispatches calls to the RIL Daemon (rild) through unsolicited commands.
There are two forms of communication that the RIL handles:
Solicited commands: Solicited commands originated by RIL lib, such as DIAL and HANGUP.
Unsolicited responses: Unsolicited responses that originate from the baseband, such as CALL_STATE_CHANGED and NEW_SMS.
Solicited
There are over sixty solicited commands grouped by the following families:
SIM PIN, IO, and IMSI/IMEI
Call status and handling (dial, answer, mute & hellip)
Network status query
Network setting (barring, forwarding, selection & hellip)
SMS
PDP connection
Power and reset
Supplementary Services
Vendor defined and support
The following diagram illustrates a solicited call in Android.
![]()
Unsolicited
The following snippet illustrates the interface for unsolicited commands:
![]()
There are over ten unsolicited commands grouped by the following families:
Network status changed
New SMS notify
New USSD notify
Signal strength or time changed
Informations collected from Netmite
The purpose of this topic is to provide a collection of extracted RIL for HTC Desire. I will add new one asap.
I try to test all these packages (too many Rom & config..it's quite difficult!) However note that flashing RIL files aren't dangerous at all for your phone. Just do Nandroid Backup!
You could share your own experience. I'll do my best to improve this collection!
Links:
- [FROYO] HTC-RIL 2.2.0015HM (Aug 9 2010,11:40:11) (implemented with radio 32.44.00.32U_5.09.05.30_2, 32.46.00.32U_5.10.05.17_2 & 32.47.00.32U_5.10.05.23)
- [FROYO] HTC-RIL 2.2.0025HM (Sep 9 2010,15:56:36) (implemented with radio 32.48.00.32U_5.11.05.14)
- [FROYO] HTC-RIL 2.2.0028HM (Sep 20 2010,22:33:44) (implemented with radio 32.49.00.32U_5.11.05.27 & 32.54.00.32U_5.14.05.17)
- [GINGERBREAD] HTC-RIL 2.2.0028HM (Sep 20 2010,22:33:44) (implemented with radio 32.56.00.32U_5.17.05.08)
- [FROYO] HTC-RIL 2.2.0031HM (Sep 28 2010,23:02:55) (extracted from Desire HD Rom)
- [GINGERBREAD] HTC-RIL 2.2.0035HM (Oct 12 2010,17:15:20) (extracted from Desire Z Rom)
- [FROYO] HTC-RIL 2.2.0079HM (Jan 14 2011,14:56:03) (extracted from Desire HD Rom)
- [GINGERBREAD] HTC-RIL 2.2.0098HM (Jan 27 2011,18:04:49) (extracted from Desire Z Rom)
- [GINGERBREAD] HTC-RIL 2.2.0099HM (Jan 27 2011,16:12:49) (extracted from Desire HD Rom)
- [GINGERBREAD] HTC-RIL 2.2.0121HM (Mar 11 2011,13:26:30) (extracted from Desire S Rom)
- [GINGERBREAD] HTC-RIL 2.2.0131HM (Mar 18 2011,00:40:15) (extracted from Desire S Rom)
- [GINGERBREAD] HTC-RIL 2.2.0143H (Mar 29 2011,15:29:57) (extracted from Desire HD Rom) (tks to kszaq)
- HTC-RIL 1.6.1062G (Apr 23 2010,17:35:06)
- HTC-RIL 2.2.0014G (Sep 24 2010,19:08:27)
- HTC-RIL 2.2.0018G (Mar 24 2011,20:20:09) (tks to stony2k)
- [GINGERBREAD] HTC-RIL 2.2.1001G (July 16 2010, 21:52:13) (extracted from N1 ROM)
[CRC32: 62FC7361 / MD5: 1D183306DF93BE525C33F92452232141 / SHA-1: 5238972645BEFA27EBDE6E25A3782D6E5BD8017A] - [GINGERBREAD] HTC-RIL 2.2.1003G (Nov 2 2010,17:17:45) (tks to adwinp for the release & System of a pWne!^ for the package)
Installation: (Tks to siedkins
1. Reboot into recovery mode
2. Full nandroid back up
3. Select flash from SD card - select radio
4. Should get a notification to reboot to apply the radio flash
5. Once rebooted it will automatically take you back into recovery mode
6. Mount "/system"
7. Select flash from SD card - select RIL
8. Reboot once that has flashed and cross your fingers !!!
9. You could check HTC RIL version and compare with informations below with my little app (see attachment) or with ConnectBot:
Code:
su
getprop "gsm.version.ril-impl"
*** Please report any problem! ***
Note:
-Some radio update don't need to change the RIL!
-If you encounter some trouble, you could revert to your original RIL easily: just flash again your ROM or do a nandroid restore!
-RIL FILES ARE STORED IN ROM PART SO IF YOU WIPE & INSTALL ANOTHER ROM, PLEASE NOTE THAT NOTHING STAYS ON YOUR PHONE!
For testers:
If you want to help, you could send me your log:
1. Install Irssi ConnectBot (or the terminal application you prefer)
2. Launch the previous app and connect it (on Irssi, select "local" and give a name to the connection)
3. Then write these commands:
Code:
su
logcat>main_date.log (main log)
[I]or[/I] dmesg>kernel_date.log (kernel log)
[I]or[/I] logcat -b radio>/sdcard/radio_date.log (radio log)
[I]These 3 log will be very useful[/I]
5. Do some tests with wifi, 3g, 2g connections (on/off), put the phone on sleep mode, on airplane mode...
6. When it's done, go back to your terminal and terminate the command with "ctrl+c" (on Irssi ConnectBot, just keep your finger on screen and a menu will appear with "ctrl+c")
7. You could exit your terminal
8. Your log should be on the root of your sdcard. Just make a post with your log attached or send me a pm!
HTC RIL Known Versions:
-GSM
Code:
HTC-RIL 2.2.0144HMQ (Mar 31 2011,11:44:35) / HTC Pyramid (Sensation)
HTC-RIL 2.2.0143H (Mar 29 2011,15:29:57) / HTC Desire HD (Ace)
HTC-RIL 2.2.0131HM (Mar 18 2011,00:40:15) / HTC Desire S (Saga)
HTC-RIL 2.2.0121HM (Mar 11 2011,13:26:30) / HTC Desire S (Saga)
HTC-RIL 2.2.0099HM (Jan 27 2011,16:12:49) / HTC Desire HD (Ace)
HTC-RIL 2.2.0098HM (Jan 27 2011,18:04:49) / HTC Desire Z (Vision)
HTC-RIL 2.2.0079HM (Jan 14 2011,14:56:03) / HTC Desire HD (Ace)
HTC-RIL 2.2.0048HM (Nov 17 2010,10:44:47) / HTC Desire HD (Ace)
HTC-RIL 2.2.0035HM (Oct 12 2010,17:15:20) / HTC Desire Z (Vision)
HTC-RIL 2.2.0031HM (Sep 28 2010,23:02:55) / HTC Desire HD (Ace)
HTC-RIL 2.2.0028HM (Sep 20 2010,22:33:44) / HTC Desire (Bravo)
HTC-RIL 2.2.0025HM (Sep 9 2010,15:56:36) / HTC Desire (Bravo)
HTC-RIL 2.2.0015HM (Aug 9 2010,11:40:11) / HTC Desire (Bravo)
HTC-RIL 2.2.1003G (Nov 2 2010,17:17:45)
HTC-RIL 2.2.1001G (July 16 2010, 21:52:13) / Nexus One (Passion) (Used by AOSP)
HTC-RIL 2.2.0018G (Mar 24 2011,20:20:09)
HTC-RIL 2.2.0014G (Sep 24 2010,19:08:27)
HTC-RIL 1.6.1062G (Apr 23 2010, 17:35:06) / Nexus One (Passion) (Used by AOSP)
-CDMA
Code:
HTC-RIL 2.0.0108H (Sep 20 2010,11:39:54) / HTC Desire CDMA (BravoC)
RIL Daemon:
Code:
To stop it:
su
stop ril-daemon
To start it:
su
start ril-daemon
RIL settings on build.prop:
Code:
ro.ril.a53.%s (gprs encryption algorithm)
ro.ril.3g.long.name
ro.ril.always.laccid
ro.ril.att.feature
ro.ril.avoid.pdp.overlap
ro.ril.def.agps.feature (network assisted gps)
ro.ril.def.agps.feature.%s (network assisted gps)
ro.ril.def.agps.mode (network assisted gps)
ro.ril.def.agps.mode.%s (network assisted gps)
ro.ril.disable.fastdormancy.is
ro.ril.disable.fd.plmn.prefix
ro.ril.disable.mcc.filter
ro.ril.disable.power.collapse (said to be an ultra-low power state when phone is in idle, saving battery) (so does =1 mean "yes, please disable the power collapse mode", and =0 mean "oh, please leave power collapse mode on")
ro.ril.ecc.%s
ro.ril.emc.mode
ro.ril.enable.3g.prefix (=1 shows "3g" on lock screen next to network name, =0 does not)
ro.ril.enable.a52
ro.ril.enable.a53
ro.ril.enable.amr.wideband
ro.ril.enable.cnap (Caller Name Presentation)
ro.ril.enable.dcm.feature
ro.ril.enable.dtm (Dual Transfer Mode)(ro.ril.enable.dtm : Only set this to 1 if your network allows simultaneous transfer of Circuit switched (CS) voice and Packet switched (PS) data over the same radio channel (ARFCN).
ro.ril.enable.ehplmn.feature
ro.ril.enable.enhance.nws
ro.ril.enable.enhance.search
ro.ril.enable.gea3 (gsm security algorithm)
ro.ril.enable.homezone
ro.ril.enable.hsdpaind
ro.ril.enable.hsupaind
ro.ril.enable.korea.stk (Korean Sim Tool Kit)
ro.ril.enable.kt.feature
ro.ril.enable.managed.roaming
ro.ril.enable.ncell.ind (neighboring cell)
ro.ril.enable.network_identify
ro.ril.enable.nitz (network informed time zone)
ro.ril.enable.pre.roam.network
ro.ril.enable.prl.recognition
ro.ril.enable.regucid
ro.ril.enable.sbm.feature
ro.ril.enable.sdr
ro.ril.enable.tim.feature
ro.ril.enable.ucsq
ro.ril.enable.vf.%s
ro.ril.enable.vt
ro.ril.enhance.htcdis
ro.ril.fast.dormancy.plmn
ro.ril.fast.dormancy.rule
ro.ril.fast.dormancy.timeout
ro.ril.fd.scroff.timeout
ro.ril.fd.scron.timeout
ro.ril.gprsclass:
[I] 2 : 3 slots : 8 - 12 kbps up / 16 - 24 kbps down
4 : 4 slots : 8 - 12 kbps up/ 24 - 36 kbps down
6 : 4 slots : 24 - 36 kbps up / 24 - 36 kbps down
8 : 5 slots : 8 - 12 kbps up / 32 - 40 kbps down
10 : 5 slots : 16 - 24 kbps up / 32 - 48 kbps down
12 : 5 slots : 32 - 48 kbps up / 32 - 48 kbps down[/I]
ro.ril.hsdpa.category (between 1 and 28)
ro.ril.hsupa.category (between 1 and 7)
ro.ril.hsxpa (0 - UMTS, 1 - HSDPA, 2 - HSDPA/HSUPA)
ro.ril.htcmaskw1
ro.ril.htcmaskw1.bitmask
ro.ril.last.radio.fatal
ro.ril.oem.ecclist (emergency call codes)
ro.ril.oem.mosms.mode
ro.ril.oem.nosim.ecclist (emergency call codes)
ro.ril.oem.show.act
ro.ril.pre.roam.id.list
ro.ril.pre.roam.name.list
ro.ril.qos.delivery.err.sdu
ro.ril.qos.delivery.order
ro.ril.qos.guarantee.dl
ro.ril.qos.guarantee.ul
ro.ril.qos.max.dl
ro.ril.qos.max.sdu
ro.ril.qos.max.ul
ro.ril.qos.maxpdps
ro.ril.qos.traffic.class
ro.ril.qos.traffic.priority
ro.ril.qos.transfer.delay
ro.ril.radio.svn
ro.ril.search.first.pnn
ro.ril.set.mtu1472
ro.ril.show.all.plmn
ro.ril.tim.feature
ro.ril.ucsq.mode
ro.ril.update.acoustic.table
ro.ril.vmail.%mcc
ro.ril.wp.feature
2011-09-15 - Add HTC-RIL 2.2.0143H packaged by kszaq
2011-06-08 - Add HTC-RIL 2.2.0018G packaged by stony2k
2011-05-10 - Add HTC-RIL 2.2.1003G packaged by System of a pWne!^
2011-04-15 - Add HTC-RIL 2.2.0098HM from HTC Desire Z - Add info about Stock Rom i've used to extract packages
2011-04-14 - Add HTC-RIL 2.2.0028HM extracted from HTC Desire GB leak
2011-04-13 - Add HTC-RIL 2.2.0131HM from HTC Desire S (Tks to DomFel), HTC-RIL 1.6.1062G & HTC-RIL 2.2.0014G
2011-03-22 - Add HTC-RIL 2.2.0121HM from HTC Desire S & HTC-RIL 2.2.0035HM from HTC Desire Z
2011-03-19 - Add all packages in Light Edition (all file, libs not directly related to RIL have been deleted)
2011-02-21 - Add "HTC RIL Known Versions" part
2011-02-19 - Add more infos about RIL & Update "Simple RIL Infos Displayer" (see attachment)
2011-02-06 - Update of all packages (error on updater-script!) / Add HTC RIL version for each package and the way to retrieve it
2011-01-22 - Add mirrors on Mediafire
2011-01-21 - Add list of RIL settings on "build.prop"
2011-01-20 - Packages updated with EDIFY scripting
2011-01-19 - Links actived iot obtain feedback
2011-01-09 - Add more informations about RIL
2011-01-07 - Add 32.44.00.32U_5.09.05.30_2_RIL.zip
2011-01-06 - Create the topic and add 32.47.00.32U_5.10.05.23_RIL.zip, 32.48.00.32U_5.11.05.14_RIL.zip & 32.49.00.32U_5.11.05.27_RIL.zip
Attachments
Last edited: