Android Qualcomm RIL 集成问题

大家好! 我需要帮助。 对不起我的中文,这是谷歌翻译,我不会说中文。

我正在使用基于 Qualcomm 的设备进行 ril intergation Quectel EC200S GSM 调制解调器。

我根据移远通信提供的SELinux Editing Guide编辑了SELinux部分。
我正在使用 vendor.ril-daemon 而不是 vendor.qcrild
我这样声明 vendor.ril-daemon: Ril-daemon / vendor / bin / hw / rild -l /vendor/lib64/libquectel-ril.so
我没有改变文件/qcom/mydevice/manifest.xml(

<name>android.hardware.radio</name> 
 <transport>hwbinder</transport> 
 <version>1.2</version> 
 <interface> 
 <name>IRadio</name> 

此处声明)

getprop | grep ril
[gsm.version.ril-impl]: [Quectel_Android_RIL_Driver_V3.3.40]
[init.svc.vendor.ril-daemon]: [running]
[init.svc.vendor.ril-daemon2]: [stopped]
[persist.rild.nitz_long_ons_0]: []
[persist.rild.nitz_long_ons_1]: []
[persist.rild.nitz_long_ons_2]: []
[persist.rild.nitz_long_ons_3]: []
[persist.rild.nitz_plmn]: []
[persist.rild.nitz_short_ons_0]: []
[persist.rild.nitz_short_ons_1]: []
[persist.rild.nitz_short_ons_2]: []
[persist.rild.nitz_short_ons_3]: []
[ril.subscription.types]: [NV,RUIM]
[rild.libpath]: [/vedor/lib64/libquectel-ril.so]
[ro.boottime.vendor.ril-daemon]: [16935550201]
[ro.boottime.vendor.ril-daemon2]: [16939671034]
[ro.vendor.ril.mbn_copy_completed]: [1]
[vendor.rild.libpath]: [/vendor/lib64/libquectel-ril.so]

结果,我的 adb logcat -b rabio 看起来像这样:

12-16 12:47:09.451 10356 10356 D RILJ    : RIL: init preferredNetworkType=22 cdmaSubscription=0)
12-16 12:47:09.458  9982  9982 D RILC    : setResponseFunctions
12-16 12:47:09.460  9982  9982 D RILC    : rilConnectedInd
12-16 12:47:09.460  9982  9982 D RILC    : radioStateChangedInd: radioState 10
12-16 12:47:09.460  9982  9982 I RILC    : RIL Daemon version from hardware: Quectel_Android_RIL_Driver_V3.3.40
12-16 12:47:09.460 10356 10384 D RILJ    : [UNSL]< UNSOL_RIL_CONNECTED [SUB0]
12-16 12:47:09.464 10356 10384 D RILJ    : [3648]> RADIO_POWER on = false [SUB0]
12-16 12:47:09.464  9982  9982 D RILC    : setRadioPower: serial 0 on 0
12-16 12:47:09.464  9982  9982 D use-Rlog/RLOG-RIL RILC: onRequest: RADIO_POWER datalen=4
12-16 12:47:09.464  9982  9982 D RILC    : setRadioPowerResponse: serial 0
12-16 12:47:09.465 10356 10356 D RILJ    : [3649]> GET_HARDWARE_CONFIG [SUB0]
12-16 12:47:09.466  9982  9982 D use-Rlog/RLOG-RIL RILC: onRequest: GET_HARDWARE_CONFIG
12-16 12:47:09.466 10356 10384 D RILJ    : [3650]> RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE cdmaSubscription = 0 [SUB0]
12-16 12:47:09.466 10356 10356 E RILJ    : OemHookProxy getService/setResponseFunctions: java.util.NoSuchElementException [SUB0]
12-16 12:47:09.466  9982  9982 D use-Rlog/RLOG-RIL RILC: onRequest: CDMA_SET_SUBSCRIPTION_SOURCE datalen=4
12-16 12:47:09.467 10356 10356 D QTIRILJ : QtiRIL
12-16 12:47:09.467 10356 10384 D RILJ    : [3651]> RIL_REQUEST_SET_CELL_INFO_LIST_RATE rateInMillis = 2147483647 [SUB0]
12-16 12:47:09.468  9982  9982 D use-Rlog/RLOG-RIL RILC: onRequest: SET_UNSOL_CELL_INFO_LIST_RATE datalen=4
12-16 12:47:09.468 10356 10384 D RILJ    : [3648]< RADIO_POWER  [SUB0]
12-16 12:47:09.468 10356 10384 D RILJ    : [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED radioStateChanged: RADIO_ON [SUB0]
12-16 12:47:09.469 10356 10384 D RILJ    : [3649]< GET_HARDWARE_CONFIG error 6 [SUB0]
12-16 12:47:09.470 10356 10384 D RilRequest: [3649]< GET_HARDWARE_CONFIG error: com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED ret= [Modem { uuid=www.quectel.com, state=0, rilModel=0, rat={0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30}, maxActiveVoiceCall=1, maxActiveDataCall=1, maxStandby=0 }]
12-16 12:47:09.470 10356 10384 D RILJ    : [3650]< RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE  [SUB0]
12-16 12:47:09.470 10356 10384 D RILJ    : [3651]< RIL_REQUEST_SET_CELL_INFO_LIST_RATE  [SUB0]
12-16 12:47:09.472 10356 10356 I PhoneFactory: Network Mode set to 22
12-16 12:47:09.472 10356 10356 D QtiTelephonyComponentFactory: makeQtiRIL
12-16 12:47:09.472 10356 10356 D RILJ    : RIL: init preferredNetworkType=22 cdmaSubscription=0)
12-16 12:47:09.474 10356 10356 E RILJ    : RadioProxy getService/setResponseFunctions: java.util.NoSuchElementException [SUB1]
12-16 12:47:09.474 10356 10356 E RILJ    : getRadioProxy: mRadioProxy == null [SUB1]
12-16 12:47:09.475 10356 10356 E RILJ    : RadioProxy getService/setResponseFunctions: java.util.NoSuchElementException [SUB1]
12-16 12:47:09.476 10356 10356 E RILJ    : getRadioProxy: mRadioProxy == null [SUB1]
12-16 12:47:09.476 10356 10356 E RILJ    : OemHookProxy getService/setResponseFunctions: java.util.NoSuchElementException [SUB1]
12-16 12:47:09.477 10356 10356 D QTIRILJ : QtiRIL

这里有一些错误:

RILJ : getRadioProxy: mRadioProxy == null [SUB1]
RilRequest:[3649]< GET_HARDWARE_CONFIG 错误:com.android.internal.telephony.CommandException:REQUEST_NOT_SUPPORTED

RilRequest:[3649]< GET_HARDWARE_CONFIG 错误:com.android.internal.telephony.CommandException:REQUEST_NOT_SUPPORTED

我在设备中也有问题行为:
状态栏中没有信号强度信息
Settings app 中设置中的 SN nuber 为空
Settings app 中没有 IMEI 信息

我试图解决这个问题,但我不能
请帮助我了解发生了什么以及如何解决此问题

full log - https://drive.google.com/drive/folders/1YtFQhnkEUicf-xZKGm--f91eQ99f9zWP?usp=sharing

You can fand those logs,it means your config isn't correct,you need to falsh your device wtih right configuration.And you may find more information about error code 66 in your document.

img

Sorry, I only know a little about it.Can you try to change the version of radio in RIL.java?