android ril java,java - Android Invoke RIL methods - Stack Overflow

You are getting RADIO_NOT_AVAILABLE response because your RIL object is not "connected" to any RILD process (RIL Deamon)

OPERATOR is a GET message that RIL sends to Baseband processor (MODEM) to detect which which operator the device is registered.

Response should be something like:

RILJ: [1234]> OPERATOR

//PLMN Number, PLMN Long Name, PLMN Short Name

RILJ: [1234]< OPERATOR {31000, Verizon Wireless, Verizon}

However, since your RIL instance is not connected to any RILD process, you will always get RADIO_NOT_AVAILABLE response. I meant, you are sending a GET message but there's no RADIO to answer your GET message.

There's a RILD process running and it is probably connected to RIL.java object created by the system. You can check RIL logs via:

adb logcat -b radio

Dual sim models sometimes has two RILD process (one for each simcard) and two RIL.java instances (one for each simcard).

I'm not sure if create a RIL java instance and connect it to a RILD process is that easy.

Not sure how you can achieve that.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值