summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Replace variable-length arrays on stack with malloc.stable/cm-13.0-ZNH5YAmit Mahajan2016-12-031-2/+13
| | | | | | | | RM-290 Bug: 30202619 Change-Id: Ib95e08a1c009d88a4b4fd8d8fdba0641c6129008 (cherry picked from commit 943905bb9f99e3caa856b42c531e2be752da8834)
* libril: correct includeAlexander Martinz2016-02-181-1/+1
| | | | | Change-Id: I9eba8d8f568f19358bd43cf6a3816903d4c3f63d Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
* reference-ril: Return success for RIL_REQUEST_ALLOW_DATADiogo Ferreira2015-12-221-0/+4
| | | | | | | Add a dummy implementation of the ALLOW_DATA request to play nice with telephony expectations. Change-Id: I769826481d493aa8129b9b6d501d7db7f4da319a
* ril: Allow devices to opt-out of building rildChristopher R. Palmer2015-11-231-0/+4
| | | | Change-Id: I0e986018dccb53fdcb695c85b54776889c2f8ddc
* ril: Add missing unsol response stringsMatt Mower2015-11-071-2/+5
| | | | | | | | A few unsols are handled, but strings are not passed to the log when requestToString() is called. Also, re-order a couple entries to match the layout in ril_unsol_commands.h. Change-Id: Ie6f1b49ff0245212e64d4e563a26ea93191deb22
* libril: fix debug broken linesAdrianDC2015-11-071-3/+3
| | | | | Change-Id: I24ebf3bcb1c20775bcb9d579461b7afa53443a75 Signed-off-by: AdrianDC <radian.dc@gmail.com>
* rild: Weaken some symbolsRicardo Cerqueira2015-11-071-2/+7
| | | | | | | | | | | | | | | | | | | rild: Weaken the RIL_setRilSocketName symbol custom libril implementations won't have it, but its lack isn't fatal outside of multi-SIM Change-Id: If8312078921bb4ed756dcd86e17e85847638c155 rild: Unbreak multi-SIM socket name Change-Id: Icae742c42c45726105d1a9e07a26bc4d10cc82bf Weaken external rild symbol. Not all libril will have this Change-Id: I3da165f5cf779a02c7eb168d6e3c9b398d284835
* Merge tag 'android-6.0.0_r26' into cm-13.0Ricardo Cerqueira2015-11-052-58/+95
|\ | | | | | | Android 6.0.0 release 26
| * merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-08-310-0/+0
| |\
| | * merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-08-290-0/+0
| | |\ | | |/ | |/|
| * | Fix memory leaks and use of uninitialized pointers.Pavel Zhamaitsiak2015-08-192-58/+95
| |/ | | | | | | | | Bug: 23187886 Change-Id: Ic15a02a902b591362b5c52c20afabe511fb0bbb7
* | libril: allow board to provide librilTom Giordano2015-10-121-0/+3
| | | | | | | | Change-Id: Ie9a78a8890f4ece4f026f3a00ec39ec8e03672fa
* | ril: Add guard makefileSteve Kondik2015-10-121-0/+5
|/ | | | Change-Id: Id90f22a1af3187e312ff1d860799f8c0fcef61fd
* Modify RIL Unsol Message Wakelock to 200msNathan Harold2015-07-291-1/+3
| | | | | | bug: 22456054 Change-Id: Id41e001f98b455bec5f004438f5d8498b17aaf2d
* Added support for acquiring CAP_BLOCK_SUSPEND capabilitySukanya Rajkhowa2015-07-291-1/+5
| | | | | | | | | | | | | - Linux kernel 3.10 onward power service mandates the user space processes that use wake_lock service to have CAP_BLOCK_SUSPEND capability. Made changes in rild process to acquire the same - Rild: Use division while defining MAX_CAP_NUM Bug: 21063398 Change-Id: Idf38d9bde398e748139a6e5d7e7d9a1ac106ec8d
* Support backward compatibility of new LAST_CALL_FAIL_CAUSESungmin Choi2015-07-061-1/+6
| | | | | | | | | | Previous fail cause returns integer array. New fail cuase returns integer and string. RIL framework uses just integer as causeCode. To support backward compatibility, returns integer instead of integer array as causeCode. Bug: 22204818 Change-Id: I77ca55d99a44d129cf401743c34c03754f38dde2
* Add an optional vendor_cause string toChao Liu2015-06-183-1/+36
| | | | | | | | | | | | RIL_REQUEST_LAST_CALL_FAIL_CAUSE's response. This vendor cause string will be passed to Telecom's DisconnectCause, which could help us figure out why we are seeing so many ERROR_UNSPECIFIED. bug:17701976 Original partner change: https://partner-android-review.googlesource.com/#/c/215710/ Change-Id: I0c54733a03b2fe2bd48b3d3b21efc5e3ebd9ef66
* Modem activity infoPrerepa Viswanadham2015-06-083-9/+35
| | | | Change-Id: Iab8fbdeae0867c6e9cb9027b08317b1b5a2c9dfc
* RIL: Interface to retrieve power stats infoSooraj Sasindran2015-06-041-0/+47
| | | | | | Introduce interface to retrieve modem power stats info Change-Id: I7ed89e754f733a93e430d64dfe28d7fbed1d4d75
* LCE RIL comment nitfenglu2015-05-191-5/+6
| | | | | | | cherrypick from mwd to mnc-dev Bug: 21307103 Change-Id: I0d9dd7bafee24a4853984ebcb665c022a0cbdc6a
* Add missing extern "C" declaration.Chih-Hung Hsieh2015-05-061-0/+2
| | | | | BUG: 20891299 Change-Id: Iedfd2e8e5bd32014f011352898763bcc0887b6b9
* Remove verbose logsRobert Greenwalt2015-04-301-0/+15
| | | | | | | | | | Several things are redundent except for the fact messages are reaching rilc. Left in in case we need to debug the layer, but blocked out with #if VDBG Reduces startup logging to radio buffer by 20% Change-Id: I95099457ea365ee108e7da8e1f81434531b6b9f0
* Merge commit '9a4b19c' into merge2Etan Cohen2015-04-240-0/+0
|\
| * Link Capacity Estimation - RIL supportfenglu2015-04-154-1/+138
| | | | | | | | Change-Id: I9c4d4901d823d719be2b8bdec64f08eda342de53
* | Correct GET_RADIO_CAP documentationAbhishek Adappa2015-04-221-3/+1
| | | | | | | | Change-Id: If9c07105771769b52070a85f93bf6d9a11fa6b80
* | Link Capacity Estimation - RIL supportfenglu2015-04-164-1/+138
| | | | | | | | Change-Id: I9c4d4901d823d719be2b8bdec64f08eda342de53
* | Fix build issues after the mergeVinit Deshpande2015-04-153-4/+5
| | | | | | | | Change-Id: Ia856311187a0b2168cb859bd8b2300ff59df6569
* | am 27976c4..27976c4 from mirror-m-wireless-internal-releaseVinit Deshpande2015-04-1412-54/+1602
|\| | | | | | | | | | | 27976c4 Introduction of the new SAP-UIM socket Change-Id: I9ab9d65f230edd83037e2d1779b3bdd3b32a0aa7
| * Introduction of the new SAP-UIM socketDheeraj Shetty2015-04-0812-55/+1582
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new socket connection for communication between the SAP module in Telephony and User Identity Module with DSDA support. New classes added are: RilSocket --------- Base class(virtual) for any type of socket. Has listen and commands callbacks similar to that of the existing telephony->rild socket. RilSapSocket ------------ Derived class for socket for communication between BT SAP and the sim module in the modem. It initialises socket, calls Sap_Uim_Init to get the handles and starts the socket thread. rilSocketQueue -------------- Queue for managing socket requests. Change-Id: I8828173941d6ae76f1f9cc0d567efaf41a77d175
* | am 26a79e4e: Merge "libril: tag RILC messages to radio log"Mark Salyzyn2015-04-091-10/+10
|\ \ | | | | | | | | | | | | * commit '26a79e4eba9a677d446dc767cf1df29f5ca1adb4': libril: tag RILC messages to radio log
| * \ Merge "libril: tag RILC messages to radio log"Mark Salyzyn2015-04-091-10/+10
| |\ \
| | * | libril: tag RILC messages to radio logMark Salyzyn2015-04-091-10/+10
| |/ / | | | | | | | | | Change-Id: Ia3234aa933249eb9f383c7e45c3f67b3c0c50634
* | | resolved conflicts for merge of 66650640 to masterAndreas Gampe2015-04-061-0/+1
|\| | | | | | | | | | | Change-Id: I2ece30436199e695c0f2cd5963586a2279578b9b
| * | Merge "Ril: Fix missing includes"Andreas Gampe2015-04-061-0/+2
| |\ \
| | * | Ril: Fix missing includesAndreas Gampe2015-04-061-0/+2
| |/ / | | | | | | | | | | | | | | | umask requires sys/stat.h and sys/types.h. Change-Id: Idc44976675c0f178bc860773e0bc1b65b392adcc
* | | rild: missing include for sys/stat.hMark Salyzyn2015-04-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rild.c gets sys/stat.h inherited from private/android_filesystem_config.h it should not rely on this in the future. The intent is to move fs_config function into libcutils and thus deprecate any need for sys/stat.h in this include file. Bug: 19908228 Change-Id: I5b10e9347aa9df8f0523a0ff00287655ca426d18
* | | Merge "Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'"Vinit Deshpande2015-03-160-0/+0
|\ \ \
| * \ \ Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'Vinit Deshpande2015-03-162-1/+306
| |\ \ \ | | |/ / | |/| / | | |/
| | * Add sap-api.proto.Wink Saville2015-03-111-0/+304
| | | | | | | | | | | | Change-Id: Ia526b1c872e5a3b298613387f58ee2aec6d7983c
| | * Telephony: Implementation of IWLAN.Yashdev Singh2015-02-241-1/+2
| | | | | | | | | | | | | | | | | | - Introduce IWLAN RAT in ril.h Change-Id: Iaea12214b8333c6b6a56879c4d3b9417e3c24082
* | | Add sap-api.proto.Wink Saville2015-03-151-0/+304
| | | | | | | | | | | | Change-Id: Ia526b1c872e5a3b298613387f58ee2aec6d7983c
* | | Telephony: Implementation of IWLAN.Yashdev Singh2015-03-151-1/+2
|/ / | | | | | | | | | | - Introduce IWLAN RAT in ril.h Change-Id: Iaea12214b8333c6b6a56879c4d3b9417e3c24082
* | am 4f481a54: Merge "Fix missing extern."Elliott Hughes2015-02-201-0/+1
|\ \ | | | | | | | | | | | | * commit '4f481a5442c8269440dfbe99459b554e64071259': Fix missing extern.
| * \ Merge "Fix missing extern."Elliott Hughes2015-02-201-0/+1
| |\ \
| | * | Fix missing extern.Elliott Hughes2015-02-201-0/+1
| |/ / | | | | | | | | | Change-Id: Iaf7c85b49350e0716d40edb36129714ca47fdb11
* | | am cb6cd1fb: Merge "ril.cpp: fix misuse of strncat"Nick Kralevich2015-02-101-1/+1
|\| | | | | | | | | | | | | | * commit 'cb6cd1fba71fc8f12907b3c66cc7f5fa4de99589': ril.cpp: fix misuse of strncat
| * | Merge "ril.cpp: fix misuse of strncat"Nick Kralevich2015-02-101-1/+1
| |\ \
| | * | ril.cpp: fix misuse of strncatNick Kralevich2015-02-081-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | strncat(dest,src,size) appends size+1 bytes to the end of dest, so sizeof(dest) must be greater than strlen(dest) + size + 1. Passing the buffer size to strncat instead of sizeof(dest) - strlen(dest) - 1 is a common strncat bug. Use strlcat instead, as it has more intuitive behavior and ensures the buffer is properly null terminated. Addresses the following compiler warning: In file included from system/core/include/cutils/sockets.h:22:0, from hardware/ril/libril/ril.cpp:24: In function 'char* strncat(char*, const char*, size_t)', inlined from 'void android::RIL_register(const RIL_RadioFunctions*)' at hardware/ril/libril/ril.cpp:4258:62: bionic/libc/include/string.h:199:61: warning: call to char* __builtin___strncat_chk(char*, const char*, unsigned int, unsigned int) might overflow destination buffer return __builtin___strncat_chk(dest, src, n, __bos(dest)); ^ (line numbers are from internal master and do not match AOSP) Even with this change, this code feels weird. MAX_DEBUG_SOCKET_NAME_LENGTH is 12, and rildebug is initialized to be SOCKET_NAME_RIL_DEBUG ("rild-debug"), which is 11 bytes including null terminator. The strlcat call here can append a maximum of 1 byte before the buffer is full. I don't know if this is intended or not. Change-Id: I49801ad1ea3aa6173bbc9fd7cf00f3d308693253
* | | am d8dcd06e: Merge "Removal of dead code and adding log messages to make it ↵Nick Kralevich2015-02-082-5/+10
|\| | | | | | | | | | | | | | | | | | | | easier for debugging" * commit 'd8dcd06e4703dae1927020cbcbafd85226492946': Removal of dead code and adding log messages to make it easier for debugging
| * | Merge "Removal of dead code and adding log messages to make it easier for ↵Nick Kralevich2015-02-082-5/+10
| |\ \ | | | | | | | | | | | | debugging"