- 10 Feb, 2015 1 commit
-
-
Nick Kralevich authored
-
- 09 Feb, 2015 1 commit
-
-
Nick Kralevich authored
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
-
- 08 Feb, 2015 1 commit
-
-
Nick Kralevich authored
-
- 03 Feb, 2015 1 commit
-
-
Nanik Tolaram authored
for debugging - Add more logging using ALOGD(..) for function dispatchSmsWrite, dispatchDial, dispatchSIM_IO, dispatchSIM_APDU, dispatchCallForward, dispatchRaw and dispatchCdmaSmsAck. To make it easier for debugging. - Remove commented log message inside wakeTimeoutCallback () function and remove the else clause as it's dead not used for anything. - Modify log message inside removeFromList and removeWatch using + and - to make it consistent with the other log message. Change-Id: Ife0212e6a4724d8b06a1dd767484bfdf98b8e1a6 Signed-off-by:
Nanik Tolaram <nanikjava@gmail.com>
-
- 23 Jan, 2015 2 commits
-
-
Nick Kralevich authored
-
Julien Vuillaumier authored
Since Android L, process dumpable flag is verified in case of crash before requesting tombstone capture by debuggerd. As setuid operation clears dumpable flag for a process, reenable flag in rild after its switch to UID radio (debuggable build only) Change-Id: Id86b697e2a1e11744ccc50a3c9ef04faf079ed94
-
- 09 Jan, 2015 4 commits
-
-
Elliott Hughes authored
-
Elliott Hughes authored
-
Elliott Hughes authored
Change-Id: Iec07669cc80de041379716c8daa33acc58f7283e
-
Elliott Hughes authored
We're probably not running the RIL on a Mac. Change-Id: Ib6be56cd26d67e2b72b559cb364b1e34ab613016
-
- 18 Nov, 2014 1 commit
-
-
Chih-hung Hsieh authored
-
- 17 Nov, 2014 1 commit
-
-
Bernhard Rosenkränzer authored
Prototypes expect the data as a const void*, whereas the implementation takes a void*. This causes the build to break with clang and may also have other unexpected side effects. (I'd expect to see unresolvable references in some gcc builds.) Change-Id: Ic34787da20abd2821730a18e49c0a435a82c2613 Signed-off-by:
Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
-
- 14 Oct, 2014 2 commits
-
-
Shishir Agrawal authored
* commit '760123fc': Fixing the comment for RIL_REQUEST_SIM_OPEN_CHANNEL.
-
Shishir Agrawal authored
The comment was not fixed when we extended the command to optionally include the select response. Bug: 17983857 Change-Id: I6245a7c8de1d35bb421ad06c5fefa9619aac1167
-
- 02 Oct, 2014 2 commits
-
-
Chaitanya Saggurthi authored
* commit '33bbe435': Reference-ril: Send sms using RIL_REQUEST_SEND_SMS_EXPECT_MORE
-
Chaitanya Saggurthi authored
Add support for RIL_REQUEST_SEND_SMS_EXPECT_MORE in reference-ril Bug: 17570854 Change-Id: Ie8f42ea6fdf69ac73a02708de8f274d9ac38fbca
-
- 19 Sep, 2014 2 commits
-
-
Hui Wang authored
Bug: 17567651, 16308209 Change-Id: Ie5d8f5fc1227950634a746e7d3f911b5a8c5d96e
- 21 Aug, 2014 1 commit
-
-
Naveen Kalla authored
* commit 'a65a16a2': Add RIL_REQUEST_SHUTDOWN to notify RIL that device is shutting down
-
- 19 Aug, 2014 1 commit
-
-
Naveen Kalla authored
When device is in airplane mode, SIM card and modem may be powered on. RIL can use RIL_REQUEST_SHUTDOWN to shutdown the modem and SIM card gracefully. Bug: 9773278 Change-Id: I6afa9e810cefc7855f7ae42e51f39cc51fa2aa6e
-
- 15 Aug, 2014 2 commits
-
-
Vince Harron authored
Change-Id: I118c05111ded541c8b4cf3c5533c5a3de3b89322
-
Amit Mahajan authored
* commit 'c796e22c': Revert "Revert "add apn setting parameters, and set apn parameters to bp""
-
- 13 Aug, 2014 1 commit
-
-
Amit Mahajan authored
This reverts commit 87540b63. Change-Id: I7f6043ad55299ecc01cbcadc81c281b133755b86
-
- 12 Aug, 2014 1 commit
-
-
Vince Harron authored
-
- 14 Aug, 2014 1 commit
-
-
Vince Harron authored
libreference-ril.so is located in /system/lib64 on 64 bit targets. The incorrect path caused the ril-daemon to crash, which also blocked the network on emulator image. Bug: 16321274 Change-Id: I53a455f51a96de28c8dd0b9e1ffe5b7475b2baf1
-
- 12 Aug, 2014 3 commits
-
-
Amit Mahajan authored
* commit '87540b63': Revert "add apn setting parameters, and set apn parameters to bp"
-
Amit Mahajan authored
This reverts commit 6be060de. Change-Id: Idc7d6cfc97ca6fadd93d85e96b12cb46e33f35c6
-
- 11 Aug, 2014 1 commit
-
-
Hui Wang authored
Change-Id: I779b28996fafcacdefb63072b7dcc6bd90a532be
-
- 06 Aug, 2014 1 commit
-
-
Amit Mahajan authored
* commit '858ab4ee': Fix comment for RIL_SIM_IO_Response in ril.h
-
- 05 Aug, 2014 1 commit
-
-
Amit Mahajan authored
-
- 06 Aug, 2014 1 commit
-
-
Amit Mahajan authored
Change-Id: Id4ebf5f40dda3e3751146b97cefd42cd15d43e75
-
- 04 Aug, 2014 2 commits
-
-
Jayachandran C authored
* commit '6c607594': Fix crash by checking for NULL token at the beginning of RIL_onRequestComplete
-
Jayachandran C authored
- RILD crashes when token is NULL because no NULL check at the beginning
-
- 30 Jul, 2014 2 commits
-
-
Amit Mahajan authored
* commit '52500160': Change to parse DATA_CALL_LIST correctly based on version.
-
Amit Mahajan authored
Bug: 16242255 Change-Id: I9c6dfb41f074da9558f721ca0432f40edc2d4d22
-
- 23 Jul, 2014 1 commit
-
-
Elliott Hughes authored
* commit 'eb2a9345': Link to the corresponding libril-reference.so on 64 bit platform
-
- 22 Jul, 2014 2 commits
-
-
Elliott Hughes authored
-
Jun Tian authored
The REFERENCE_RIL_PATH should point to the corresponding path. Linked to 32 bit library on 64 bit platfrom caused the ril-daemon crashes, which also blocked the network on emulator image. Change-Id: I3a928178a2f0fe71b9782cb600b88c6da973826a
-
- 20 Jul, 2014 1 commit
-
-
Elliott Hughes authored
* commit '5d0cb9ee': Always #include <sys/...>, not <linux/...>.
-