First look at Android. mk
# For radiooptions binary #====================================== Include $ (clear_vars) Local_src_files: =/ Radiooptions. c Local_shared_libraries: =/ Libcutils/ Local_cflags: =/ Local_module: = radiooptions Local_module_tags: = debug Include $ (build_executable) |
We can see that
Radiooptions is an executable C program. The source code is only radiooptions. C.
We can find the main
Portal functions are analyzed one by one.
Usage: radiooptions [option] [extra_socket_args]/n/ 0 - RADIO_RESET, /n/ 1 - RADIO_OFF, /n/ 2 - UNSOL_NETWORK_STATE_CHANGE, /n/ 3 - QXDM_ENABLE, /n/ 4 - QXDM_DISABLE, /n/ 5 - RADIO_ON, /n/ 6 apn- SETUP_PDP apn, /n/ 7 - DEACTIVE_PDP, /n/ 8 number - DIAL_CALL number, /n/ 9 - ANSWER_CALL, /n/ 10 - END_CALL /n
|
Radooptions
Command line parameters.
1. Check whether the command line parameters are correct.
2. Establish a socket link with rild daemon
Socket_local_client (socket_name_ril_debug, {rild-Debug}
Android_socket_namespace_reserved,
Sock_stream );
3. Pass the number of parameters to rild through socket.
4.
Pass the parameter length and content to rild through socket for processing.
According to the analysis, the radooptions program only transmits the command line parameter to socket {rild-Debug} for processing.
AndRild
Communication, which allows you to configure modem parameters during debugging.