diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-06-04 15:52:51 +0200 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-06-04 15:52:51 +0200 |
commit | 38dd25097de39ef53e1c22dc812cd7532048e145 (patch) | |
tree | 3585d0f9422a5a68b613dd171d9136f8e9171535 /samsung-ril.c | |
parent | 20bb9a83a8a6a1e8457194511620743727eed44b (diff) | |
download | hardware_ril_samsung-ril-38dd25097de39ef53e1c22dc812cd7532048e145.zip hardware_ril_samsung-ril-38dd25097de39ef53e1c22dc812cd7532048e145.tar.gz hardware_ril_samsung-ril-38dd25097de39ef53e1c22dc812cd7532048e145.tar.bz2 |
Add support for USSD messagesreplicant-6.0
The implementation is based on the code for USSD support that was used
before the rewrite of Samsung-RIL.
USSD messages in GSM7 format are decoded to UTF8. The decoding code
was adapted from huaweigeneric-ril[1].
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
[1] https://github.com/DerArtem/huaweigeneric-ril
Diffstat (limited to 'samsung-ril.c')
-rw-r--r-- | samsung-ril.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/samsung-ril.c b/samsung-ril.c index bcfb7ff..9f13b86 100644 --- a/samsung-ril.c +++ b/samsung-ril.c @@ -170,6 +170,11 @@ struct ipc_dispatch_handler ipc_fmt_dispatch_handlers[] = { .command = IPC_MISC_TIME_INFO, .handler = ipc_misc_time_info, }, + /* SS */ + { + .command = IPC_SS_USSD, + .handler = ipc_ss_ussd, + }, /* OEM */ { .command = IPC_SVC_DISPLAY_SCREEN, @@ -440,6 +445,15 @@ struct ril_request_handler ril_request_handlers[] = { .request = RIL_REQUEST_SCREEN_STATE, .handler = ril_request_screen_state, }, + /* SS */ + { + .request = RIL_REQUEST_SEND_USSD, + .handler = ril_request_send_ussd, + }, + { + .request = RIL_REQUEST_CANCEL_USSD, + .handler = ril_request_cancel_ussd, + }, /* OEM */ { .request = RIL_REQUEST_OEM_HOOK_RAW, |