Android RIL Driver User Guide
Android_RIL_Driver_User_Guide 5 / 27
Contents
About the Document ................................................................................................................................... 3
Contents ....................................................................................................................................................... 5
Table Index ................................................................................................................................................... 6
Figure Index ................................................................................................................................................. 7
1 Introduction .......................................................................................................................................... 8
1.1. Applicable Modules ...................................................................................................................... 8
2 Overview of Android RIL Driver ....................................................................................................... 10
2.1. Directory Structure ..................................................................................................................... 10
2.2. Supported Functions .................................................................................................................. 11
2.3. Supported Android Versions ...................................................................................................... 11
2.4. Supported IRadio Versions ........................................................................................................ 12
3 RIL Integration .................................................................................................................................... 13
3.1. Android RIL Architecture ............................................................................................................ 13
3.2. PPP Configuration in Linux Kernel ............................................................................................ 14
3.3. USB Driver Integration in Linux Kernel ...................................................................................... 14
3.4. RIL Driver Integration by Library ................................................................................................ 14
3.5. System Configuration ................................................................................................................. 15
3.5.1. Configure Service ril-daemon .......................................................................................... 15
3.5.1.1. Modules Accessed via USB/PCIe Interface .......................................................... 16
3.5.1.2. Modules Accessed via UART Interface ................................................................. 16
3.5.2. Modify rild.c (for Android 4.x–7.x) .................................................................................... 17
3.5.3. Add HIDL Description (for Android 8.x–11.x) ................................................................... 17
4 SELinux Configuration ...................................................................................................................... 19
4.1. Modify Service ril-daemon Configuration ................................................................................... 19
4.2. Uncomment the switchUser() Function...................................................................................... 19
4.3. Configure SELinux Rule for RIL ................................................................................................. 19
5 Debugging Methods .......................................................................................................................... 21
5.1. Catch Logs Automatically (Recommended) .............................................................................. 21
5.2. Catch Logs Manually ................................................................................................................. 21
5.3. Common Log Tags ..................................................................................................................... 22
6 FAQs .................................................................................................................................................... 23
6.1. How to Set the APN ................................................................................................................... 23
6.2. Why Quectel RIL Driver Does Not Work .................................................................................... 24
6.3. Why Phone Process Does Not Work ......................................................................................... 25
7 Appendix A References ..................................................................................................................... 26