Communicate with the android RIL daemon and intercept messages from the RIL android daemon

Is it possible to communicate with the Rroid android daemon using the NDK android? I would like to receive notifications from the RIL daemon or better, I would like to capture messages that are sent to the top Aplication Framework, and modify / filter them, and then transfer them to the top level.

I know that shared rilib exists , and I know that I can use it and access them using dlopen / dlsym .. but I have no idea if this will help me or not :)

Note. What I want to do is filter out messages from the RIL detector about incoming calls from unmanaged numbers (call blocking)

Also do you know any way (trick) how I can do call processing / call blocking in native code using android-ndk and available libs ???

Thanks as always for all your answers ...

+4
source share
1 answer

If someone is not mistaken, you cannot disable the critical functionality of the device from the application, even in its own code.

Android now has no mechanism for a user who decides to trust the application to do something that would be overwhelmingly destructive if it was done incorrectly. Practically speaking, if you want to do this, you will pick up your phone and start creating your own modified version of Android.

+3
source

All Articles