简体   繁体   English

如何直接与android ril守护进程通信

[英]How to communicated with android ril daemon directly

I want to communicate with android RIL daemon with my daemon directly. 我想直接与我的守护进程与android RIL守护进程通信。

Could you tell me how to do it without using telephony layer. 你能告诉我如何在不使用电话层的情况下做到这一点。

Best regards. 最好的祝福。

First of all you shouldn't! 首先你不应该! Let the Android framework handle ril, or you may put the daemon in some undefined state. 让Android框架处理ril,或者您可以将守护进程置于某种未定义状态。

With that disclaimer, you need to look into 有了免责声明,您需要深入研究

./frameworks/base/telephony/java/com/android/internal/telephony/gsm 
./frameworks/base/telephony/java/android/telephony/gsm

For specifics. 具体细节。 The actual commands are be passed through the rild socket, so you will also need to run as root or belong to the radio group to get access. 实际的命令将通过rild套接字传递,因此您还需要以root用户身份运行或属于无线电组才能获得访问权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM