Hi all,
Now i have a project which will use Qualcomm modem + thirdparty modem. That's means i need implement another rild to communicate with third party modem.
Do you guys have any idea how to make it?
1. Add another service in Rild.rc like below? Then rild.c->main() will run two times to load different library?
service ril-daemon /system/bin/rild -l /system/vendor/lib/libril-qc-qmi-1.so -- -d /dev/smd0
class main
socket rild stream 660 root radio
socket sap_uim_socket1 stream 660 bluetooth bluetooth
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio sdcard_r sdcard_rw qcom_diag log
service ril-daemon /system/bin/rild -c 2 -l /system/vendor/lib/libril-thirdparty.so -- -d /dev/xxxx
class main
socket rild2 stream 660 root radio
socket rild-debug2 stream 660 radio system
user root
group radio cache inet misc audio log readproc wakelock
2. Do i need add an extra s_callbacks in ril.cpp? Since rilInit() load different RIL_RadioFunctions.
Any suggestions are appreciate. Thanks!