androidjava-native-interfaceadbril

Sending RIL command on galaxy / nexus


I wonder how can I send commands to rild - not rild-debug. I have root and the program may be in c / java.

I tried radiooptions ( https://github.com/mozilla-b2g/android-hardware-ril/blob/master/rild/radiooptions.c ).

but radiooptions uses rild-debug and not rild. I tried to change to SOCKET_NAME_RIL_DEBUG to SOCKET_NAME_RIL but the program didn't do nothing..

There is any way I can send raw RIL commands ? (Maybe directly from adb ?)

Thanks in advance.


Solution

  • Well, I found a way to do it with xposed:

    we can find the class:

    com.android.internal.telephony.RIL
    

    find methods in it, and invoke them.