summaryrefslogtreecommitdiffstats
path: root/sms.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert to use separate SIM statusHEADreplicant-6.0-0004-rc4masterDenis 'GNUtoo' Carikli2021-01-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 2001, in the RIL repository[1], the SIM states were separated from the radio states by the following commit: 2bc78d614e349574426d198c37e51ccb7455b5bb 2bc78d61 Separate SIM states from Radio States Then in 2016 the SIM states were removed from the RADIO_STATES by the following commit: 2baf72329c43d9e3f7850973f087176f535e31e8 2baf7232 Remove deprecated RADIO_STATES So to be compatible with recent rild, we need to convert the code to use separate SIM states. This was tested on Replicant 4.2 with a Galaxy SIII (GT-I9300) and a Nexus S (GT-I9023) and in both cases: - It compiled fine - Calling worked fine too: I called an invalid number I got an automatic voice reply telling me that this number was invalid. Similarly that was also tested on Replicant 6.0 0004 RC3 both by compiling it and calling an invalid number, as this commit was part of the Replicant 6.0 0004 RC3 release. Since then only the commit message was modified to add information about the tests as it didn't have them but had the following text instead: TODO: - Test this code with Replicant 4.2!!!! [1]https://android.googlesource.com/platform/hardware/ril Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* rename ril_has_reached_state to ril_radio_has_reached_stateDenis 'GNUtoo' Carikli2020-10-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | In 2001, in the RIL repository[1], the SIM states were separated from the radio states by the following commit: 2bc78d614e349574426d198c37e51ccb7455b5bb 2bc78d61 Separate SIM states from Radio States Then in 2016 the SIM states were removed from the RADIO_STATES by the following commit: 2baf72329c43d9e3f7850973f087176f535e31e8 2baf7232 Remove deprecated RADIO_STATES So to be compatible with recent rild, we need to convert the code to use separate SIM states. As at first a ril_sim_has_reached_state function will be introduced, we can rename ril_has_reached_state to ril_radio_has_reached_state in a separate patch (this patch) in order not to have too much changes at once in the same patch. [1]https://android.googlesource.com/platform/hardware/ril Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* ril_radio_state_check: rename it to ril_has_reached_state to improve clarityDenis 'GNUtoo' Carikli2020-08-271-3/+3
| | | | | | The former name of the function doesn't convey what it's supposed to do. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Remove unused variablesDenis 'GNUtoo' Carikli2019-07-241-1/+0
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* sms: Also check if RIL_REQUEST_SEND_SMS_EXPECT_MORE was already handledWolfgang Wiedmeyer2019-06-181-3/+4
| | | | | | This hopefully finally fixes sending of longer SMS messages. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* Samsung-RIL rewrite: harder, better, probably not faster but definitely strongerPaul Kocialkowski2014-08-071-668/+373
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* RIL_LOG macro to log messagesreplicant-4.2-0002replicant-4.2-0001Paul Kocialkowski2013-12-201-27/+27
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Send internal SMS to alert the user when an important crash just happenedPaul Kocialkowski2013-09-291-0/+46
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Check modem state before RIL requests and properly report it on crashPaul Kocialkowski2013-09-281-0/+12
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* sms: Write/delete SMS on SIM supportPaul Kocialkowski2013-09-011-0/+142
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Update copyright informationPaul Kocialkowski2013-03-311-2/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Coding style: add spaces after switch statementsPaul Kocialkowski2013-03-311-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Avoid checking ipc_message_info pointer since it is checked in readloopPaul Kocialkowski2013-03-311-8/+6
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Define and use RIL_TOKEN_NULLPaul Kocialkowski2013-03-311-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* sms: Refactor code, check for NULL pointers and prevent memory leaksPaul Kocialkowski2013-03-311-93/+71
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Rename samsung-ril to Samsung-RIL, refactor Android.mk and comments stylePaul Kocialkowski2013-03-301-16/+16
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Change coding style: add a space after if, for and whilePaul Kocialkowski2013-02-091-70/+70
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Copyright: Corrected email addressPaul Kocialkowski2012-11-191-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Updated copyright informationPaul Kocialkowski2012-11-041-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SMS: Use lists stored in ril_data instead of global tablePaul Kocialkowski2012-11-041-288/+284
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SMS: Process next incoming message after failurePaul Kocialkowski2012-11-041-10/+16
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SMS: Use lists stored in ril_data instead of global tpid tablePaul Kocialkowski2012-11-011-93/+125
| | | | | | Some strutures were also renamed to Stick to libsamsung-ipc changes Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Reworked RIL requests, globals, SIM status, clientPaul Kocialkowski2012-11-011-20/+20
| | | | | | | | | | | * Handling ril requests with lists * Renamed functions to complete requests * Globals (most of them) are held in ril_data * Renamed SIM_Status to ril_sim_state * Renamed client object to data * Moved client funcs to a sub-structure Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* GPRS: Fixed style, compat and RIL_VERSION < 6 return data on SETUP_DATA_CALLPaul Kocialkowski2012-09-071-1/+5
| | | | | | SEC/SMS: Fixed compat Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Cosmetics: removed lines with tabs or spacesPaul Kocialkowski2012-08-281-4/+4
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Use RADIO_STATE_ON on ICS/JB onlyAlexander Tarasikov2012-08-241-1/+1
|
* Use RADIO_STATE_ONAlexander Tarasikov2012-08-201-1/+1
|
* Fix some compilation warningsAlexander Tarasikov2012-07-251-2/+2
|
* Removed unused code realted to SIM and typo on SMSPaulK2012-03-291-2/+2
|
* Added support for SMS Multipart messagesPaulK2012-01-071-27/+96
|
* Improved SMS stability (now it's stable), still no multi-message, plus bug fixesPaulK2012-01-011-94/+483
|
* Added preliminary RFS support, code cleanup, completed TODO listPaulK2011-12-291-26/+30
|
* RIL rework: multi-client, more stable, added GPLv3 copyright noticePaulK2011-12-211-104/+124
|
* Modified samsung-ril to work on Nexus S.PaulK2011-11-221-59/+152
| | | | | | | | | | | | | | | Currently, the following is working: * (automatic) network registration (clean and stable) * SMS (no clean queue engine and no support for multiple message SMS) * SIM I/O * Other minor stuff And the following is left to do: * DATA (3G) * airplane to normal power mode * calls (including audio routing) * RFS messages handling (mostly to be done at IPC level) * Other minor stuff
* Temporary initial commitJoerie de Gram2011-10-291-0/+130