summaryrefslogtreecommitdiffstats
path: root/ril
Commit message (Collapse)AuthorAgeFilesLines
* libril: add missing return statementStricted2018-08-261-1/+1
| | | | Change-Id: Icfdc5fae064f66bfcaf061bff0d0d1e5554f126d
* libril: Fix freeing of strings for roaming protocol flagPaul Keith2018-07-011-1/+6
| | | | Change-Id: Id6150885203a64733bffeb7ce6dc4e91fab305df
* ril: service: Fix RIL_UNSOL_NITZ_TIME_RECEIVED ParcelPaul Keith2018-06-231-1/+18
| | | | | | | | | | * Sometimes, the modem is sending 1-2 extra fields with the country mcc, which confuses ServiceStateTracker * Drop the extra data here, instead of in our RIL class [haggertk]: Forward port to ril-caf on lineage-15. Change-Id: Ifbec67bb0dac271226bd8b5471deaf6a2ef33f2b
* ril: service: Add workaround for "ring of death" bugPaul Keith2018-06-231-0/+12
| | | | | | [javelinanddart]: Forward port to ril-caf on lineage-15.1 Change-Id: Ifeeee11ee83deddb8eff565847641c45a105378f
* ril: service: Get off my backPaul Keith2018-03-061-30/+30
| | | | | | | | | | * Checking numInts and numStrings for strict equality when we're not looping is dumb, because Samsung is notorious for sending extra information in their RIL * Check if there's *enough* data rather than the *exact amount* to fix a bunch of invalid response errors Change-Id: I14bc37240e5760b4629fcb74b64f25ad95d4fdfc
* ril: service: Fix breakage introduced by f7c75aa4e0Christopher N. Hesse2018-03-061-6/+2
| | | | | | | | | | | | | | Before: if (response == NULL || numStrings != 3) { After: if (response == NULL || numStrings != mqanelements - 2) { This patch fixes the logic so we don't change the value check. "mqanelements" is not related to getOperatorResponse, so get get rid of the affected code. Change-Id: I86c6ae7b7492a5d04fbc8dc415c4f615e7d05bab
* ril: Add support for imsType parcel memberChristopher N. Hesse2018-02-222-0/+8
| | | | | | This is needed for Samsung devices like the Galaxy A5 2017. Change-Id: I3b89cf8ac232fef5629b439dbf5d2f21bdb264a2
* ril: Add support for roamingProtocol parcel memberChristopher N. Hesse2018-02-222-0/+11
| | | | | | This is needed for Samsung devices like the Galaxy A5 2017. Change-Id: I549130b838377d8a8668ac59b51c314fe9e7f5ab
* libsec-ril: Include liblogSean hoyt2018-01-214-2/+6
| | | | Change-Id: I87df49446a2729f19a5d5611a88a4a80faf0350b
* libril: fix network operator searchMartin Bouchet2018-01-211-6/+15
| | | | | | | The number of mQANElements should be defined in the system prop ro.ril.telephony.mqanelements Change-Id: Ie5bb8ba80c5ac93b7502da3b1bb3d2b4404ecd5e
* libril: fix in call presentationMartin Bouchet2018-01-211-1/+1
| | | | Change-Id: Ifd4a20c0bcd34f380716cc96cdd4c99b4b909266
* libril: handle Samsung proprietary commandsMartin Bouchet2018-01-213-7/+192
| | | | Change-Id: Ief8402c8e75c677c7f2e32794f13867b924b209f
* libril: port Samsung responseDataCallList to O librilMartin Bouchet2018-01-211-0/+4
| | | | Change-Id: I1a1980e25b2ae1c496420fe3bfb0e8999e62f864
* libril: port samsung changes to signalStrengthMartin Bouchet2018-01-211-12/+172
| | | | Change-Id: I39c1f5dcb44bcd0cf265243276d7649a9c2fdc8c
* libril: add Samsung flags to makefileMartin Bouchet2018-01-211-1/+16
| | | | Change-Id: I5deb1f7582b207acf908691a7ac69a9ebbc62505
* libril: bring back signalStrength v5 and v6Martin Bouchet2018-01-211-2/+72
| | | | Change-Id: Ie0513986e9cabe9b363198e0192b18a0a8fe97de
* ril: import Oreo AOSP librilMartin Bouchet2018-01-2116-6172/+10438
| | | | Change-Id: I00750bad812dc263e9c74a504b48512a892376c8
* libril: Fix multisim flagsChristopher N. Hesse2018-01-201-3/+6
| | | | | Change-Id: Idb2ea518c115c1dbfbbbbb79094938ce006f40d8 (cherry picked from commit c98cc605c67e950bf14aa9f0d14966382ec45a0c)
* secril-client: close fds on I/O errorsBasil Gello2017-08-031-0/+23
| | | | | | | | | | if a kernel device returns an I/O error, it is better not to chew the CPU resources retrying I/O operation on a not ready device. Fixes periodical 100%-core load in audioserver after a voice call completion. Change-Id: I2b66ffd18c85823a11e50598a6b4e3c0245a0083
* secril-client: Fix RIL client token management in SendOemRequestHookRaw()Basil Gello2017-07-171-0/+9
| | | | | | | | | | | | | | | | | On some devices, like SM-T805 (Galaxy Tab S 10.5 LTE), the RIL client code produces errors "SendOemRequestHookRaw: No token" due to large amount of tokens allocated by OEM messages requiring no response from RIL daemon (like set call audio path, set call volume, set mite etc). The indicator of an OEM message with no response expected is: RegisterRequestCompleteHandler(client, REQ_XXX, NULL); inside the RIL client message method. To prevent the token pool from overflows, the proposed patch de-registers the token and frees its call history if the handler for this message req_id is set to NULL. Change-Id: Id414263bf471115797cae1a9ed628249734b9347
* secril-client: return exact error code from blockingWrite()Basil Gello2017-07-131-2/+1
| | | | Change-Id: Ibb6d3636648480c53a2fd19044eefe5b97f1eceb
* libsecril-client: Expose MSIM functions by defaultChristopher N. Hesse2017-02-222-6/+1
| | | | | | | Recent devices (zero, noble, others) link audio-ril against this. Change-Id: If774ff378f519b221594e8b793a95831cacd4ae4
* libril: use responseInts for LAST_CALL_FAIL_CAUSE on Exynos4Simon Shields2017-02-191-0/+8
| | | | | | | | | | | | Exynos4 devices send two ints as a response to this request, causing responseFailCause to think the result is a LastCallFailCause struct, which it then tries to treat as a Java UTF-8 encoded string, causing a crash. Work around this by forcing responseInts (the original behaviour) on Exynos4 devices. Change-Id: Ied14948db3049066ffc760b6d3df09b4cefa2df0
* libsecril-client: Rename SOUND_AUDIO_PATH_HANDSET to EARPIECEAndreas Schneider2017-02-152-7/+8
| | | | | | | This still keeps SOUND_AUDIO_PATH_HANDSET in the _AudioPath enum to not break the API. Change-Id: If82520ff630ceb099c570e299685caef03b0d01b
* libril: fix parceling of DataCallListV6 on xmm626xSimon Shields2017-02-131-1/+10
| | | | Change-Id: I32fee851e65f8f5af3d57fc4fc588139ff6ded35
* ril: Fix unsol response array mappingChristopher N. Hesse2017-02-121-6/+19
| | | | | | | | | | | | | | | | | * Instead of messing around with indices, look up the requestNumber in the array. * This has a cost of O(N) instead of O(1) with the previous implementation, but we don't receive unsol response codes frequently enough to be worried about this. * This was needed because a few vendor reponses, aka RIL_UNSOL_SNDMGR_WB_AMR_REPORT at index 33 and RIL_UNSOL_SNDMGR_CLOCK_CTRL at index 34 could not be addressed by their array indices anymore because we cannot calculate their index by the unsol response code we receive from the modem. Change-Id: I27319e621c777fe19ae8908d7e0c4a46d6dd6d3b
* ril: Align to AOSP librilChristopher N. Hesse2017-02-096-109/+345
| | | | | | | | | | | * Adjusted whitespace to minimize diffs * Plugged memory leaks * Fix use-after-free * Use calloc instead of alloca * Reworked the Samsung request/response code to be more readable Change-Id: Ifd07b525fc84e8a3fca584d4d412785974ca3482
* libsecril-client: Fix loggingAndreas Schneider2017-02-081-14/+13
| | | | Change-Id: I370e70ebfb8fca3d610cdf58c8ac793844d23cb8
* libsecril-client: Turn off logging by defaultAndreas Schneider2017-02-061-1/+1
| | | | Change-Id: I4fabfafbf593c9a08e33698adbe488998c610610
* libsecril-client: Use RLOGAndreas Schneider2017-02-061-71/+71
| | | | | | | The radio log prints use-Rlog/RLOG-RILClient as the prefix, so we should use RLOG and not ALOG. Change-Id: I5c217cca9510948871b4157f69361c869dea2a01
* libril: Use RLOGAndreas Schneider2017-02-061-2/+2
| | | | Change-Id: I6b7ed9fc11b03669c3cb4405c25509c6b00401e3
* Fix RIL_CardStatus_v5 Parceling.Kyle Repinski2016-10-241-0/+1
| | | | | | | | | | The difference between a v5 and v6 CardStatus response is the addition of ims_subscription_app_index. In previous releases libril added a -1 to the Parcel in its place for transparent handling of GET_SIM_STATUS everywhere else regardless of v5 or v6 responses, but it was erroneously removed in change I4e53c6125995064b8ac0cdfc9376ef2cefe69ec8 Change-Id: I078b61d2f6dc28f738e8eb87f51193fa0bd94c7d
* Add support for cdma dynamic address length.Sukanya Rajkhowa2016-10-241-3/+10
| | | | | | | | | Get the address,sub address,Bearer with dynamic length in the data parcel, to avoid the OutOfBoundsException with the MAX macro. BUG=26856156 Change-Id: I1d7437143c1369d77791136b68e06088acd72937
* Fix build failure which occurs after setting macro RILC_LOG.Sanket Padawe2016-10-121-2/+3
| | | | | Bug: 29214796 Change-Id: I5f74981a59344078f900ecf769cc962b1416d5fd
* RIL: release unsol wakelockSooraj Sasindran2016-10-121-8/+8
| | | | | | | Make sure to release unsol wakelock BUG=28635279 Change-Id: I4bdf0e7b35df4e6aa077b062ab359c6938ce8292
* Ril Error codes: Voice related messagesAjay Nambi2016-10-121-0/+4
| | | | | | | | This change adds new error codes for messages related to voice Bug: 27038563 Change-Id: I61bcc853f8046e6baf6c8000029f7af0f3f894f0
* New error codes for SMS/other messagesAjay Nambi2016-10-121-0/+6
| | | | | | | | This gerrit adds error codes for messages related to SMS and set_mute, get_mute requests Bug: 27038563 Change-Id: I4991e4a38c81501c39e91cfd5df90d8288f542ad
* Add RIL Error code listtwen.chang2016-10-121-0/+5
| | | | | | BUG: 27589497 Change-Id: I9cc8c12364676c3c56dbee57fdc01cf055460816
* Enable integer sanitization in libril.Sanket Padawe2016-10-121-0/+1
| | | | | Bug: 27486276 Change-Id: I5d440099120567f1ecedb898039b5627346c7089
* Fixing security vulnerabilities in ril.cppSanket Padawe2016-10-121-22/+126
| | | | | Bug: 26522805 Change-Id: I8fa19a202b3ebe13dc617b417218b4f40fa8a702
* Add OEM specific error code space which can by used toSanket Padawe2016-10-121-0/+25
| | | | | | | replace Generic errors. Bug: 27038563 Change-Id: I4052505ed684067cb9145d165f0e335ad52ed404
* Convert newly added error code to string values in ril.cpp.Sanket Padawe2016-10-121-0/+28
| | | | | Bug: 23216719 Change-Id: Ie2202124cb460872a9f5c406e8f1ae94465d9d0b
* Use different response type for unsolicited mesg requiringSanket Padawe2016-10-121-1/+7
| | | | | | | | | | | wakelock. + New type is added as ack from RIL java should be sent only for unsolicited mesgs which hold wakelock in ril.cpp. Bug: 22127517 Change-Id: Ib7e920d168ab92665283f80476bad3f5ede033e4
* Improve wakelock symantics in RIL.Sanket Padawe2016-10-121-37/+161
| | | | | Bug: 22127517 Change-Id: I13fce25c8c6b27987e576b29a2ca5cd813f5b06f
* Added fields to CELL_INFO_LIST.Sanket Padawe2016-10-121-7/+240
| | | | | | | | | Gsm: ta, arfcn, bsic Wcdma: uarfcn Lte: earfcn Bug: 23528586 Change-Id: Iaf7bfaac96bda92d980c566878b9fe481a6d2c21
* Use SimRefreshResponse struct in RIL Versions greater than 7Sanket Padawe2016-10-122-16/+17
| | | | | | | | | Modify condition to use SimRefreshResponse struct in all RIL Versions greater than 7. BUG=21075857 Change-Id: Ifde00434bfcaecf3b4c32392fc4964fe3b43f6b5
* Add WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATIONAjay Nambi2016-10-121-0/+1
| | | | | | | Add WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATION in requestToString method. Change-Id: I323f276d4048b168b27669a0aebb58cd9decf9bd
* Improve RIL versioning.Sanket Padawe2016-10-121-182/+284
| | | | | | | | + Added documentation for new RIL versioning format. + Changes associated to new RIl versioning format. Bug: 25779475 Change-Id: I4e53c6125995064b8ac0cdfc9376ef2cefe69ec8
* libril: revert network operator string handlingDheeraj CVR2016-10-122-27/+2
| | | | | | | | | | | | | | | | | | | | | | | * These workarounds were introduced before http://review.cyanogenmod.org/#/c/159520/ and are no longer needed because the framework now has dynamic QAN element support. Setting the ro.ril.telephony.mqanelements to a proper value should fix the operator search on all the devices and these workarounds are no longer required. * http://review.cyanogenmod.org/#/c/100398/ discards every 5th QAN element which breaks devices with libsec-ril that returns more than 5 QAN elements. zeroflte and noblelte return 6 QAN elements and the 5th element was being discarded instead of 6th. * The code assumes 5 QAN elements per operator which doesn't hold true for all devices. * In case of devices with 6 QAN elements, the size of the string array was a multiple of 6, but since we are discarding the 5th element, the contents of the string pertaining to each operator is a multiple of 5 following by trailing null strings in the array, which caused issues in the framework while trying to read the strings, since we are expecting 6 strings per operator and with a discarded string, we only receive 5. Thanks to Javi Ferrer for diagnosing the issue on zeroflte Change-Id: I2e99291f3438998a253755a19a063d15a19d63e0
* Properly export ril_ex.hColin Cross2016-09-123-4/+1
| | | | | | | | | Copying headers makes fixing compile errors hard, and breaks dependency restrictions. Move ril_ex.h to an exported include directory instead of copying it. Bug: 18903857 Change-Id: I4b59a01e442db0d3198def69a5a5ff17b2a41c66