First and foremost not worth it! Let the Android framework handle ril, or you can put the daemon in undefined state.
With this denial you need to look into
./frameworks/base/telephony/java/com/android/internal/telephony/gsm
./frameworks/base/telephony/java/android/telephony/gsm
For specificity. Actual commands are passed through the rild socket, so you will also need to run as root or belong to a radio group in order to gain access.
source
share