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.
Well, I found a way to do it with xposed:
we can find the class:
find methods in it, and invoke them.