OSDN Git Service

android-x86/hardware-ril.git
7 years agoMerge "ril: fix a memory leak."
Treehugger Robot [Wed, 23 Nov 2016 03:13:41 +0000 (03:13 +0000)]
Merge "ril: fix a memory leak."

7 years agoril: fix a memory leak.
Yunlian Jiang [Wed, 9 Nov 2016 02:19:11 +0000 (18:19 -0800)]
ril: fix a memory leak.

This fixes 'Potential leak of memory pointed to by 'socket'

Bug: None
Test: The warning is gone.
Change-Id: I6afca2b4cf4a027c6fb30f1ad7c74083d70dfdb2

7 years agoMerge "Remove deprecated RADIO_STATES"
Naveen Kalla [Wed, 9 Nov 2016 01:05:27 +0000 (01:05 +0000)]
Merge "Remove deprecated RADIO_STATES"

7 years agoRemove deprecated RADIO_STATES
Naveen Kalla [Tue, 11 Oct 2016 20:49:20 +0000 (13:49 -0700)]
Remove deprecated RADIO_STATES

Remove deprecated radio states which carried the SIM state
information. Vendor RILs are not expected to send one of the 3
RADIO states (ON, OFF or UNAVAILABLE) and support the RIL requests
RIL_REQUEST_VOICE_RADIO_TECH and RIL_REQUEST_CDMA_SUBSCRIPTION_SOURCE.

Bug: 32224323
Test: Ensure device boots and camps on network. Basic voice calls and
mobile data works

Change-Id: I2ae4a71c33c43263c64822c294d43363baeb5ad5

7 years agoMerge "Fix broken asserts."
Sanket Padawe [Tue, 1 Nov 2016 22:43:41 +0000 (22:43 +0000)]
Merge "Fix broken asserts."

7 years agoFix broken asserts.
George Burgess IV [Fri, 28 Oct 2016 05:51:30 +0000 (22:51 -0700)]
Fix broken asserts.

When NDEBUG is forcibly undef'ed, these asserts wouldn't compile:
- p_info->fdCommand and p_info->fdListen are ints, not pointers.
- sapSocket->commandFd and sapSocket->listenFd are protected; you need
  to use their accessors.

This patch makes the asserts compile.

Bug: None.
Test: Building with NDEBUG undef'ed now succeeds.
Change-Id: I51418c955994541ba503e1ca6f601dce87e40b55

7 years agoMerge "Retire socket_loopback_client."
Treehugger Robot [Thu, 13 Oct 2016 22:59:25 +0000 (22:59 +0000)]
Merge "Retire socket_loopback_client."

7 years agoMerge "Update documentation to clarify RIL_REQUEST_GET_ACTIVITY_INFO"
Pankaj Kanwar [Thu, 13 Oct 2016 02:13:30 +0000 (02:13 +0000)]
Merge "Update documentation to clarify RIL_REQUEST_GET_ACTIVITY_INFO"

7 years agoUpdate documentation to clarify RIL_REQUEST_GET_ACTIVITY_INFO
Nathan Harold [Mon, 10 Oct 2016 18:15:21 +0000 (11:15 -0700)]
Update documentation to clarify RIL_REQUEST_GET_ACTIVITY_INFO

The documentation for RIL_REQUEST_GET_ACTIVITY_INFO allowed for
critically disruptive behavior in the implementation of the API.
This is a documentation update to ensure that there will be
exactly one power state reported in each millisecond, which
is important for proper power accounting in FDD.

Bug: 32061813
Test: none
Change-Id: I2835d5ad298eaa8cfea2e1a90342f290183f698d

7 years agoRetire socket_loopback_client.
Elliott Hughes [Tue, 11 Oct 2016 20:50:06 +0000 (13:50 -0700)]
Retire socket_loopback_client.

Making the world safe for IPv6.

Bug: http://b/31537253
Test: builds
Change-Id: If8478aec17892f49e856d6220b72e4585ee9c078

7 years agoMerge "Fix memory leak in requestSendSMS"
Sanket Padawe [Fri, 23 Sep 2016 17:26:03 +0000 (17:26 +0000)]
Merge "Fix memory leak in requestSendSMS"

7 years agoMerge "Fix RIL_CardStatus_v5 Parceling."
Sanket Padawe [Thu, 1 Sep 2016 02:57:56 +0000 (02:57 +0000)]
Merge "Fix RIL_CardStatus_v5 Parceling."

7 years agoFix RIL_CardStatus_v5 Parceling.
Kyle Repinski [Wed, 31 Aug 2016 06:04:02 +0000 (01:04 -0500)]
Fix RIL_CardStatus_v5 Parceling.

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

8 years agoMerge \"Fix misc-macro-parentheses warnings in hardware/ril.\"
Chih-Hung Hsieh [Wed, 29 Jun 2016 19:42:26 +0000 (19:42 +0000)]
Merge \"Fix misc-macro-parentheses warnings in hardware/ril.\"
am: 1648a3f50b

Change-Id: Ib880298fc4001e0befe10582e9f6e5c792d1bd69

8 years agoMerge "Fix misc-macro-parentheses warnings in hardware/ril."
Treehugger Robot [Wed, 29 Jun 2016 19:31:52 +0000 (19:31 +0000)]
Merge "Fix misc-macro-parentheses warnings in hardware/ril."

8 years agoFix misc-macro-parentheses warnings in hardware/ril.
Chih-Hung Hsieh [Wed, 29 Jun 2016 18:22:36 +0000 (11:22 -0700)]
Fix misc-macro-parentheses warnings in hardware/ril.

Add parentheses around negative literals.
Bug: 28705665
Test: build with clang-tidy

Change-Id: I038c7cbf3728a4e9ccc20d8c7317ddae3fa9b571

8 years agoresolve merge conflicts of ccd27b0 to stage-aosp-master
David Turner [Thu, 23 Jun 2016 08:43:13 +0000 (08:43 +0000)]
resolve merge conflicts of ccd27b0 to stage-aosp-master
am: 25d580912d

Change-Id: I7afa0604b98b90256c47e806fbb8e11d9ac98594

8 years agoresolve merge conflicts of ccd27b0 to stage-aosp-master
David 'Digit' Turner [Thu, 23 Jun 2016 08:35:49 +0000 (10:35 +0200)]
resolve merge conflicts of ccd27b0 to stage-aosp-master

Change-Id: Ic5a6bb461c60646d7f9798cb1bf99110c6592f91

8 years agoMerge "Simplify emulator-specific logic."
David Turner [Thu, 23 Jun 2016 07:52:29 +0000 (07:52 +0000)]
Merge "Simplify emulator-specific logic."

8 years agoSimplify emulator-specific logic.
David 'Digit' Turner [Wed, 22 Jun 2016 10:10:01 +0000 (12:10 +0200)]
Simplify emulator-specific logic.

Remove any qemu-specific code from rild.c, this now handled
by setting rild.libpath properly in the init.<board>.rc files
for emulator-specific build products.

Also, only the qemu pipe method is really supported since ICS
so remove obsolete schemes.

BUG=25875346

Change-Id: I82296c127b90c230ca1446ee2431f06e78def617

8 years agoMerge \\"[qemu]: Use new <system/qemu_pipe.h> header.\\" am: 47a81105da
David Turner [Tue, 21 Jun 2016 08:08:00 +0000 (08:08 +0000)]
Merge \\"[qemu]: Use new <system/qemu_pipe.h> header.\\" am: 47a81105da
am: c963b671f3

Change-Id: Id5a2b977a6867537a51f3f740a7df28aca441a4d

8 years agoMerge \"[qemu]: Use new <system/qemu_pipe.h> header.\"
David 'Digit' Turner [Tue, 21 Jun 2016 08:05:15 +0000 (08:05 +0000)]
Merge \"[qemu]: Use new <system/qemu_pipe.h> header.\"
am: 47a81105da

Change-Id: I3d5e17d7c9468321273bf9540548ef12d931c91d

8 years agoMerge "[qemu]: Use new <system/qemu_pipe.h> header."
David Turner [Tue, 21 Jun 2016 07:38:01 +0000 (07:38 +0000)]
Merge "[qemu]: Use new <system/qemu_pipe.h> header."

8 years ago[qemu]: Use new <system/qemu_pipe.h> header.
David 'Digit' Turner [Thu, 16 Jun 2016 17:00:05 +0000 (19:00 +0200)]
[qemu]: Use new <system/qemu_pipe.h> header.

BUG=25875346

Change-Id: Ie8649caa43a77a4ea1399df673cce2682773e4df

8 years agoFix build failure which occurs after setting macro RILC_LOG.
Sanket Padawe [Wed, 8 Jun 2016 21:31:20 +0000 (21:31 +0000)]
Fix build failure which occurs after setting macro RILC_LOG.
am: 626099ec9b

Change-Id: I193a57f676a81a5835d4506550f94278cbc127cc

8 years agoFix build failure which occurs after setting macro RILC_LOG.
Sanket Padawe [Wed, 8 Jun 2016 21:09:26 +0000 (14:09 -0700)]
Fix build failure which occurs after setting macro RILC_LOG.

Bug: 29214796
Change-Id: I5f74981a59344078f900ecf769cc962b1416d5fd

8 years agoresolve merge conflicts of c9badf1 to nyc-dev-plus-aosp
Robert Greenwalt [Mon, 16 May 2016 19:36:42 +0000 (12:36 -0700)]
resolve merge conflicts of c9badf1 to nyc-dev-plus-aosp

Change-Id: I59d138a61554a2439577bcfdf400ea663c6bb91d

8 years agoMerge "Fix misc-macro-parentheses warnings."
Chih-Hung Hsieh [Mon, 16 May 2016 18:50:38 +0000 (18:50 +0000)]
Merge "Fix misc-macro-parentheses warnings."
am: e8505bf06e

* commit 'e8505bf06e2f17babe479230e62e6e7d1b8c4bca':
  Fix misc-macro-parentheses warnings.

Change-Id: I40b3707b3206aff65312786db1899949a0ed6b53

8 years agoMerge "Fix misc-macro-parentheses warnings."
Treehugger Robot [Mon, 16 May 2016 18:43:31 +0000 (18:43 +0000)]
Merge "Fix misc-macro-parentheses warnings."

8 years agoFix misc-macro-parentheses warnings.
Chih-Hung Hsieh [Thu, 12 May 2016 17:01:16 +0000 (10:01 -0700)]
Fix misc-macro-parentheses warnings.

Bug: 28705665
Change-Id: Ib7520c64075a652eb0b15483f36383c4632624d1

8 years agoMerge "RIL: release unsol wakelock" into nyc-dev
Sooraj Sasindran [Mon, 9 May 2016 19:21:55 +0000 (19:21 +0000)]
Merge "RIL: release unsol wakelock" into nyc-dev
am: 22b45625aa

* commit '22b45625aa72ef9311bf23cd785eccce9535efa5':
  RIL: release unsol wakelock

Change-Id: I24114554188c19eac5f3fc005d0ae118c7c3496e

8 years agoMerge "RIL: release unsol wakelock" into nyc-dev
Sanket Padawe [Mon, 9 May 2016 19:08:41 +0000 (19:08 +0000)]
Merge "RIL: release unsol wakelock" into nyc-dev

8 years agoRIL: release unsol wakelock
Sooraj Sasindran [Fri, 6 May 2016 23:19:56 +0000 (16:19 -0700)]
RIL: release unsol wakelock

Make sure to release unsol wakelock

BUG=28635279
Change-Id: I4bdf0e7b35df4e6aa077b062ab359c6938ce8292

8 years agoSpecify the INVALID flag for BSIC to be 0xFF
Nathan Harold [Fri, 6 May 2016 03:26:11 +0000 (03:26 +0000)]
Specify the INVALID flag for BSIC to be 0xFF
am: f3769da0a3

* commit 'f3769da0a39e2d8116d415f6fd1cba4f1648c03b':
  Specify the INVALID flag for BSIC to be 0xFF

Change-Id: I9676bb84fa15d888abda71ca73360d2f9805b106

8 years agoSpecify the INVALID flag for BSIC to be 0xFF
Nathan Harold [Thu, 5 May 2016 19:19:39 +0000 (12:19 -0700)]
Specify the INVALID flag for BSIC to be 0xFF

Bug: 28299027
Change-Id: I3786265a266508d6ea842ccc2a2c3dcf99c3654f

8 years agoMerge "Suppress unused-parameter warnings in libril." am: a22b128851
Aurimas Liutikas [Fri, 29 Apr 2016 04:19:27 +0000 (04:19 +0000)]
Merge "Suppress unused-parameter warnings in libril." am: a22b128851
am: 5eaec8ba33

* commit '5eaec8ba3354075a2aa66b134a93bc851327cb57':
  Suppress unused-parameter warnings in libril.

Change-Id: I859774e38c07c92634567e91ef129e38a4e1998d

8 years agoMerge "Suppress unused-parameter warnings in libril."
Aurimas Liutikas [Fri, 29 Apr 2016 04:16:42 +0000 (04:16 +0000)]
Merge "Suppress unused-parameter warnings in libril."
am: a22b128851

* commit 'a22b128851c769f18ab6e1dde38ef5a4c32c28c2':
  Suppress unused-parameter warnings in libril.

Change-Id: I9c6d05fae4dbb4ff29c44146c7cc221fa1a44a50

8 years agoMerge "Suppress unused-parameter warnings in libril."
Aurimas Liutikas [Fri, 29 Apr 2016 04:10:49 +0000 (04:10 +0000)]
Merge "Suppress unused-parameter warnings in libril."

8 years agoSuppress unused-parameter warnings in libril.
Aurimas Liutikas [Fri, 29 Apr 2016 03:47:16 +0000 (20:47 -0700)]
Suppress unused-parameter warnings in libril.

Bug: 26936282
Change-Id: I848a9b2e98e31845d29cc84ccea3517d13339dcc

8 years agobuild fix
Keun Soo Yim [Thu, 14 Apr 2016 02:10:48 +0000 (02:10 +0000)]
build fix
am: 1067bb6

* commit '1067bb62f81e8c6b5df8fd0c16f7ee5a8179529a':
  build fix

Change-Id: I742d5d9295b7b3ebdd57a68497fb771138844f71

8 years agobuild fix
Keun Soo Yim [Thu, 14 Apr 2016 02:06:26 +0000 (19:06 -0700)]
build fix

Change-Id: I52d7255c352f1a8188658d28f609e5028179d0a0

8 years agoMerge "fail explicitly if setuid() fails" into nyc-dev
Keun Soo Yim [Thu, 14 Apr 2016 01:59:57 +0000 (01:59 +0000)]
Merge "fail explicitly if setuid() fails" into nyc-dev
am: c23238d

* commit 'c23238d36e15225bade04710e78defadf9d0039e':
  fail explicitly if setuid() fails

Change-Id: I6be3ecc549efc5279d590477fe91b74548707dea

8 years agoavoid a potential buffer overflow
Keun Soo Yim [Thu, 14 Apr 2016 01:59:57 +0000 (01:59 +0000)]
avoid a potential buffer overflow
am: 1973685

* commit '1973685c095e3e15760d3ba4ad9e77997c46594a':
  avoid a potential buffer overflow

Change-Id: Ib3792c7e229f2bda3244d68137e9e620069cd26c

8 years agoMerge "fail explicitly if setuid() fails" into nyc-dev
Keun Soo Yim [Thu, 14 Apr 2016 01:47:26 +0000 (01:47 +0000)]
Merge "fail explicitly if setuid() fails" into nyc-dev

8 years agofail explicitly if setuid() fails
Keun Soo Yim [Thu, 14 Apr 2016 00:17:52 +0000 (17:17 -0700)]
fail explicitly if setuid() fails

otherwise, the following code can be executed
with unintended privileges.

bug:28178548
Change-Id: I265f8c0e1693344a675cc2623968db816309b1f4

8 years agoavoid a potential buffer overflow
Keun Soo Yim [Thu, 14 Apr 2016 00:11:20 +0000 (17:11 -0700)]
avoid a potential buffer overflow

strncat can copy upto n bytes if its 3rd argument is n,
while the 1st argument which is the destination has only n bytes
in this case.

Change-Id: I3469abdcf55e64c5878a855700b323335c40c8be

8 years agoreference-ril: Stop using pthread_cond_timedwait_relative_np()
Yu Ning [Fri, 8 Apr 2016 01:01:39 +0000 (01:01 +0000)]
reference-ril: Stop using pthread_cond_timedwait_relative_np()
am: f3769c1

* commit 'f3769c17615bc9c227cff83cad0e55bb9f878197':
  reference-ril: Stop using pthread_cond_timedwait_relative_np()

Change-Id: Id11534397b2360c2dffa00eede02a4447c6e1030

8 years agoreference-ril/atchannel.c: Fix time conversion
Jinhui Li [Fri, 8 Apr 2016 01:01:39 +0000 (01:01 +0000)]
reference-ril/atchannel.c: Fix time conversion
am: 99f6a4e  -s ours

* commit '99f6a4e8fa12a6d54df5420aaa3eda29d9ba22a6':
  reference-ril/atchannel.c: Fix time conversion

Change-Id: I41ebd943fda8e72aa7eaa19c4159c441e2f1fe64

8 years agoreference-ril: Stop using pthread_cond_timedwait_relative_np()
Yu Ning [Thu, 31 Mar 2016 13:49:59 +0000 (21:49 +0800)]
reference-ril: Stop using pthread_cond_timedwait_relative_np()

pthread_cond_timedwait_relative_np() is deprecated, and is only
available in the 32-bit ABI (see bionic/libc/include/pthread.h). It is
still used by the 32-bit version of reference-ril. Thanks to a recent
bugfix for 64-bit [1], it is now safe to replace the deprecated
function with the standard pthread_cond_timedwait(). Doing so also
simplifies the code, as there is now a unified logic for 32 and 64-bit
targets.

[1] https://android-review.googlesource.com/210301

Signed-off-by: Yu Ning <yu.ning@intel.com>
(cherry picked from commit 3480b1832d3581c708868117c0eb21ba291df165)

Change-Id: I1a15ee0fdfea38b6ee9c9fd49845d10d45f485b1

8 years agoreference-ril/atchannel.c: Fix time conversion
Jinhui Li [Thu, 24 Mar 2016 00:55:10 +0000 (08:55 +0800)]
reference-ril/atchannel.c: Fix time conversion

setTimespecRelative() converts a relative time to an absolute time, by
adding the relative time to current system time. However, it fails to
handle the case where the nanosecond component (tv_nsec) of the
conversion result exceeds 10^9, which can cause a subsequent call to
pthread_cond_timedwait() to return EINVAL.

This bug is the root cause of the "no SIM card" error seen occasionally
on x86_64 Android emulator. In fact, all 64-bit targets use
setTimespecRelative() in conjunction with pthread_cond_timedwait()
during AT handshake, but an EINVAL return value from the latter will
lead to an infinite loop and hang the communication. With this fix,
x86_64 emulator can boot with functional 3G networking every time.

Signed-off-by: Jinhui Li <jinhui.li@intel.com>
[Revised code and commit message]
Signed-off-by: Yu Ning <yu.ning@intel.com>
(cherry picked from commit 11476211584f1a82c870b9486ace8f6f8bb9fc7c)

Change-Id: I5d7396ef7f0af5ef02ccab785046d635fb8f168c

8 years agoMerge "reference-ril: Stop using pthread_cond_timedwait_relative_np()" am: 2e481da
Yu Ning [Fri, 1 Apr 2016 15:37:50 +0000 (15:37 +0000)]
Merge "reference-ril: Stop using pthread_cond_timedwait_relative_np()" am: 2e481da
am: e3546c6

* commit 'e3546c6cb66f2d100de5d0a249f53a783d2d5222':
  reference-ril: Stop using pthread_cond_timedwait_relative_np()

Change-Id: I27b6544423c1ee9fe98c18df452b035f37049b76

8 years agoMerge "reference-ril: Stop using pthread_cond_timedwait_relative_np()"
Yu Ning [Fri, 1 Apr 2016 15:33:26 +0000 (15:33 +0000)]
Merge "reference-ril: Stop using pthread_cond_timedwait_relative_np()"
am: 2e481da

* commit '2e481dac44a85fbd2e812cd4b7ca06a5a090a6ed':
  reference-ril: Stop using pthread_cond_timedwait_relative_np()

Change-Id: I0c0c35c7839719ec37099d08f0979bb3fef8ed63

8 years agoMerge "reference-ril: Stop using pthread_cond_timedwait_relative_np()"
Elliott Hughes [Fri, 1 Apr 2016 15:28:42 +0000 (15:28 +0000)]
Merge "reference-ril: Stop using pthread_cond_timedwait_relative_np()"

8 years agoAdd documentation for RIL_SAP_INIT in ril.h
Sanket Padawe [Fri, 1 Apr 2016 00:52:30 +0000 (00:52 +0000)]
Add documentation for RIL_SAP_INIT in ril.h
am: 1be49ba

* commit '1be49ba51de8b4c81132003d12b269f5d0237132':
  Add documentation for RIL_SAP_INIT in ril.h

Change-Id: Ib48fb227e88901c4bac17891d0f09fc459f3ceb2

8 years agoAdd documentation for RIL_SAP_INIT in ril.h
Sanket Padawe [Fri, 1 Apr 2016 00:37:23 +0000 (17:37 -0700)]
Add documentation for RIL_SAP_INIT in ril.h

Bug: 27726715
Change-Id: I3c48820f689052a89986191ccb08754197eea229

8 years agoreference-ril: Stop using pthread_cond_timedwait_relative_np()
Yu Ning [Thu, 31 Mar 2016 13:49:59 +0000 (21:49 +0800)]
reference-ril: Stop using pthread_cond_timedwait_relative_np()

pthread_cond_timedwait_relative_np() is deprecated, and is only
available in the 32-bit ABI (see bionic/libc/include/pthread.h). It is
still used by the 32-bit version of reference-ril. Thanks to a recent
bugfix for 64-bit [1], it is now safe to replace the deprecated
function with the standard pthread_cond_timedwait(). Doing so also
simplifies the code, as there is now a unified logic for 32 and 64-bit
targets.

[1] https://android-review.googlesource.com/210301

Change-Id: I0895bbf65ddb71965018d6945dfb8baa786d5d89
Signed-off-by: Yu Ning <yu.ning@intel.com>
8 years agoMerge "reference-ril/atchannel.c: Fix time conversion" am: 0bbaed7
Jinhui Li [Wed, 30 Mar 2016 05:53:31 +0000 (05:53 +0000)]
Merge "reference-ril/atchannel.c: Fix time conversion" am: 0bbaed7
am: 230df4a

* commit '230df4ab9c69358026634079c1dece849b10d2f0':
  reference-ril/atchannel.c: Fix time conversion

Change-Id: I02f358e240858166c4360b368b23c0dfdee67ff1

8 years agoMerge "reference-ril/atchannel.c: Fix time conversion"
Jinhui Li [Wed, 30 Mar 2016 05:49:48 +0000 (05:49 +0000)]
Merge "reference-ril/atchannel.c: Fix time conversion"
am: 0bbaed7

* commit '0bbaed79d7054d6c3f085e910e6047dafa11b1ad':
  reference-ril/atchannel.c: Fix time conversion

Change-Id: Ibc7df71b27dc1f8d458cdfc1d3b3b10c57f017a4

8 years agoMerge "reference-ril/atchannel.c: Fix time conversion"
Bo Hu [Wed, 30 Mar 2016 05:46:57 +0000 (05:46 +0000)]
Merge "reference-ril/atchannel.c: Fix time conversion"

8 years agoreference-ril/atchannel.c: Fix time conversion
Jinhui Li [Thu, 24 Mar 2016 00:55:10 +0000 (08:55 +0800)]
reference-ril/atchannel.c: Fix time conversion

setTimespecRelative() converts a relative time to an absolute time, by
adding the relative time to current system time. However, it fails to
handle the case where the nanosecond component (tv_nsec) of the
conversion result exceeds 10^9, which can cause a subsequent call to
pthread_cond_timedwait() to return EINVAL.

This bug is the root cause of the "no SIM card" error seen occasionally
on x86_64 Android emulator. In fact, all 64-bit targets use
setTimespecRelative() in conjunction with pthread_cond_timedwait()
during AT handshake, but an EINVAL return value from the latter will
lead to an infinite loop and hang the communication. With this fix,
x86_64 emulator can boot with functional 3G networking every time.

Signed-off-by: Jinhui Li <jinhui.li@intel.com>
[Revised code and commit message]
Signed-off-by: Yu Ning <yu.ning@intel.com>
Change-Id: If04ba560e350bc4e13b22c51f8d215a673230667

8 years agoRil Error codes: Voice related messages
Ajay Nambi [Mon, 21 Mar 2016 17:08:09 +0000 (17:08 +0000)]
Ril Error codes: Voice related messages
am: 1034589

* commit '1034589c37aa83c97f1dcb660209bc6dccb6160a':
  Ril Error codes: Voice related messages

8 years agoRil Error codes: Voice related messages
Ajay Nambi [Sat, 19 Mar 2016 16:02:28 +0000 (09:02 -0700)]
Ril Error codes: Voice related messages

This change adds new error codes for messages
related to voice

Bug: 27038563
Change-Id: I61bcc853f8046e6baf6c8000029f7af0f3f894f0

8 years agoNew error codes for SMS/other messages
Ajay Nambi [Mon, 14 Mar 2016 21:11:19 +0000 (21:11 +0000)]
New error codes for SMS/other messages
am: 68900f5a8e

* commit '68900f5a8eda71d962961ccab56ed3fc99cfd124':
  New error codes for SMS/other messages

8 years agoNew error codes for SMS/other messages
Ajay Nambi [Fri, 11 Mar 2016 20:02:55 +0000 (12:02 -0800)]
New error codes for SMS/other messages

This gerrit adds error codes for messages related
to SMS and set_mute, get_mute requests

Bug: 27038563
Change-Id: I4991e4a38c81501c39e91cfd5df90d8288f542ad

8 years agoMerge "Add RIL Error code list" into mm-wireless-dev
twen.chang [Fri, 11 Mar 2016 17:40:54 +0000 (17:40 +0000)]
Merge "Add RIL Error code list" into mm-wireless-dev
am: 8dc7f4d003

* commit '8dc7f4d00303f74cbca2d784eaa32e103555f0b5':
  Add RIL Error code list

8 years agoMerge "Add RIL Error code list" into mm-wireless-dev
Sanket Padawe [Fri, 11 Mar 2016 17:31:55 +0000 (17:31 +0000)]
Merge "Add RIL Error code list" into mm-wireless-dev

8 years agoAdd RIL Error code list
twen.chang [Fri, 4 Mar 2016 10:27:48 +0000 (18:27 +0800)]
Add RIL Error code list

BUG: 27589497

Change-Id: I9cc8c12364676c3c56dbee57fdc01cf055460816

8 years agoFix memory leak in atchannel.c
Sanket Padawe [Thu, 10 Mar 2016 01:51:57 +0000 (17:51 -0800)]
Fix memory leak in atchannel.c

Bug: 27134985
Change-Id: I0273a40f175212bed4aad42e46feb333d9df9a2b

8 years agoEnable integer sanitization in libril.
Sanket Padawe [Tue, 8 Mar 2016 17:44:16 +0000 (17:44 +0000)]
Enable integer sanitization in libril.
am: 2f0b452b4a

* commit '2f0b452b4a234199dcce17dc370aebb126c661c9':
  Enable integer sanitization in libril.

8 years agoEnable integer sanitization in libril.
Sanket Padawe [Tue, 8 Mar 2016 02:09:55 +0000 (18:09 -0800)]
Enable integer sanitization in libril.

Bug: 27486276
Change-Id: I5d440099120567f1ecedb898039b5627346c7089

8 years agoFix security vulnerabilities in ril.cpp
Sanket Padawe [Tue, 8 Mar 2016 02:01:24 +0000 (02:01 +0000)]
Fix security vulnerabilities in ril.cpp
am: 0cfc553547

* commit '0cfc553547bb5b0897e0de0c3a38771bed0bf8f9':
  Fix security vulnerabilities in ril.cpp

8 years agoFix security vulnerabilities in ril.cpp
Sanket Padawe [Tue, 8 Mar 2016 01:12:19 +0000 (17:12 -0800)]
Fix security vulnerabilities in ril.cpp

Bug: 26522805
Change-Id: I0e29b59a67d571468673b7362ff5adae0f927d7f

8 years agoRemove log spam in responseCellInfoList in ril.cpp
Sanket Padawe [Sat, 5 Mar 2016 02:15:57 +0000 (02:15 +0000)]
Remove log spam in responseCellInfoList in ril.cpp
am: e52a6c9c37

* commit 'e52a6c9c37328aea57d140ddbb0888d92f3ea874':
  Remove log spam in responseCellInfoList in ril.cpp

8 years agoRemove log spam in responseCellInfoList in ril.cpp
Sanket Padawe [Sat, 5 Mar 2016 01:52:50 +0000 (17:52 -0800)]
Remove log spam in responseCellInfoList in ril.cpp

Bug: 27481301
Change-Id: I3a55620d728d579ac50a9c178876e7901340b7af

8 years agoFixing security vulnerabilities in ril.cpp
Sanket Padawe [Fri, 4 Mar 2016 01:19:27 +0000 (01:19 +0000)]
Fixing security vulnerabilities in ril.cpp
am: 55227b5d7b

* commit '55227b5d7bcd618884b61a5555bd4c2b5dae786c':
  Fixing security vulnerabilities in ril.cpp

8 years agoFixing security vulnerabilities in ril.cpp
Sanket Padawe [Mon, 29 Feb 2016 18:09:26 +0000 (10:09 -0800)]
Fixing security vulnerabilities in ril.cpp

Bug: 26522805
Change-Id: I8fa19a202b3ebe13dc617b417218b4f40fa8a702

8 years agoMerge "Use different response type for unsolicited mesg requiring wakelock." into...
Sanket Padawe [Wed, 17 Feb 2016 23:30:03 +0000 (23:30 +0000)]
Merge "Use different response type for unsolicited mesg requiring wakelock." into mm-wireless-dev
am: 719d649b12

* commit '719d649b121c4d138651c8286ff57e9ae830d975':
  Use different response type for unsolicited mesg requiring wakelock.

8 years agoMerge "Use different response type for unsolicited mesg requiring wakelock." into...
Sanket Padawe [Wed, 17 Feb 2016 21:26:46 +0000 (21:26 +0000)]
Merge "Use different response type for unsolicited mesg requiring wakelock." into mm-wireless-dev

8 years agoCreate RIL_RadioBandMode Enum
Nathan Harold [Wed, 17 Feb 2016 00:49:49 +0000 (00:49 +0000)]
Create RIL_RadioBandMode Enum
am: 92839f19e3

* commit '92839f19e374cb8377f9f5bddd44692fc2b6e247':
  Create RIL_RadioBandMode Enum

8 years agoCreate RIL_RadioBandMode Enum
Nathan Harold [Fri, 12 Feb 2016 18:02:28 +0000 (10:02 -0800)]
Create RIL_RadioBandMode Enum

Bug: 27145805
Change-Id: Iccdcf1153c9ad389a2927428440963960ff5a80b

8 years agoAdd OEM specific error code space which can by used to replace Generic errors.
Sanket Padawe [Thu, 11 Feb 2016 00:05:34 +0000 (00:05 +0000)]
Add OEM specific error code space which can by used to replace Generic errors.
am: 0106aedb55

* commit '0106aedb55be31e6197515d0e968584b0a168bef':
  Add OEM specific error code space which can by used to replace Generic errors.

8 years agoAdd OEM specific error code space which can by used to replace Generic errors.
Sanket Padawe [Tue, 9 Feb 2016 17:56:31 +0000 (09:56 -0800)]
Add OEM specific error code space which can by used to replace Generic errors.

Bug: 27038563
Change-Id: I4052505ed684067cb9145d165f0e335ad52ed404

8 years agoConvert newly added error code to string values in ril.cpp.
Sanket Padawe [Mon, 8 Feb 2016 22:35:15 +0000 (22:35 +0000)]
Convert newly added error code to string values in ril.cpp.
am: b39e5c9c98

* commit 'b39e5c9c98890fa34ff5b8fd591fc16ece1e56a5':
  Convert newly added error code to string values in ril.cpp.

8 years agoConvert newly added error code to string values in ril.cpp.
Sanket Padawe [Mon, 8 Feb 2016 22:28:59 +0000 (14:28 -0800)]
Convert newly added error code to string values in ril.cpp.

Bug: 23216719
Change-Id: Ie2202124cb460872a9f5c406e8f1ae94465d9d0b

8 years agoUse different response type for unsolicited mesg requiring wakelock.
Sanket Padawe [Wed, 3 Feb 2016 19:46:02 +0000 (11:46 -0800)]
Use different response type for unsolicited mesg requiring 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

8 years agoAdd Error to RIL.h for Rate Limited Requests
Nathan Harold [Wed, 3 Feb 2016 00:08:28 +0000 (00:08 +0000)]
Add Error to RIL.h for Rate Limited Requests
am: c97b2849c5

* commit 'c97b2849c57f46d6e2c0f603bf65a05da2c9cb71':
  Add Error to RIL.h for Rate Limited Requests

8 years agoAdd Error to RIL.h for Rate Limited Requests
Nathan Harold [Tue, 2 Feb 2016 20:04:35 +0000 (12:04 -0800)]
Add Error to RIL.h for Rate Limited Requests

Bug: 26767732
Change-Id: I7289f53d0d16b6f066d8e469644c81bbb7d4566c

8 years agoAdd support for cdma dynamic address length.
Sukanya Rajkhowa [Fri, 29 Jan 2016 01:14:52 +0000 (01:14 +0000)]
Add support for cdma dynamic address length.
am: 605c78444b

* commit '605c78444bacdb328105f14d55ecc8c046bd96cb':
  Add support for cdma dynamic address length.

8 years agoAdd support for cdma dynamic address length.
Sukanya Rajkhowa [Tue, 29 Oct 2013 06:55:30 +0000 (14:55 +0800)]
Add support for cdma dynamic address length.

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

8 years agoMerge "Add error codes to replace generic failure" into mm-wireless-dev
Sanket Padawe [Thu, 28 Jan 2016 19:29:30 +0000 (19:29 +0000)]
Merge "Add error codes to replace generic failure" into mm-wireless-dev
am: 09fd3f75b5

* commit '09fd3f75b530389ff54b6be1f5faab7729f629bb':
  Add error codes to replace generic failure

8 years agoMerge "Add error codes to replace generic failure" into mm-wireless-dev
Sanket Padawe [Thu, 28 Jan 2016 19:26:37 +0000 (19:26 +0000)]
Merge "Add error codes to replace generic failure" into mm-wireless-dev

8 years agoMerge "Subject: [PATCH] Fix heap-use-after-free in reference-ril.c found by AddressSa...
Dan Albert [Thu, 28 Jan 2016 18:38:59 +0000 (18:38 +0000)]
Merge "Subject: [PATCH] Fix heap-use-after-free in reference-ril.c found by AddressSaniziter."
am: 99b6d09faf

* commit '99b6d09fafa21ebb1b2de493eb1f7cc315449662':
  Subject: [PATCH] Fix heap-use-after-free in reference-ril.c found by AddressSaniziter.

8 years agoMerge "Subject: [PATCH] Fix heap-use-after-free in reference-ril.c found by AddressSa...
Dan Albert [Thu, 28 Jan 2016 18:32:17 +0000 (18:32 +0000)]
Merge "Subject: [PATCH] Fix heap-use-after-free in reference-ril.c found by AddressSaniziter."

8 years agoImprove wakelock symantics in RIL.
Sanket Padawe [Wed, 27 Jan 2016 23:28:20 +0000 (23:28 +0000)]
Improve wakelock symantics in RIL.
am: 6ff9a87b25

* commit '6ff9a87b250598ea9e383f06a4257512bd0c8046':
  Improve wakelock symantics in RIL.

8 years agoImprove wakelock symantics in RIL.
Sanket Padawe [Wed, 27 Jan 2016 23:09:12 +0000 (15:09 -0800)]
Improve wakelock symantics in RIL.

Bug: 22127517
Change-Id: I13fce25c8c6b27987e576b29a2ca5cd813f5b06f

8 years agoAdd error codes to replace generic failure
Sooraj Sasindran [Wed, 27 Jan 2016 22:30:45 +0000 (14:30 -0800)]
Add error codes to replace generic failure

Add error codes to be used instead of RIL_E_GENERIC_FAILURE.

Change-Id: I997da9a15225716786c53b7457b498d4628e76be

8 years agoSubject: [PATCH] Fix heap-use-after-free in reference-ril.c found by
Ivan Krasin [Wed, 27 Jan 2016 19:17:58 +0000 (11:17 -0800)]
Subject: [PATCH] Fix heap-use-after-free in reference-ril.c found by
AddressSaniziter.

BUG=26012424

(cherry picked from commit 7c0165ee3b769ed6a67b58b7c6e2f60bd6f8fbf6)

Change-Id: I108f01229b5fe6a368129e608195ba5833f2ea91

8 years ago[DO NOT MERGE] Added fields to CELL_INFO_LIST. Gsm: ta, arfcn, bsic Wcdma: uarfcn...
Sanket Padawe [Wed, 27 Jan 2016 18:10:37 +0000 (18:10 +0000)]
[DO NOT MERGE] Added fields to CELL_INFO_LIST. Gsm: ta, arfcn, bsic Wcdma: uarfcn Lte: earfcn
am: f53c5fa963  -s ours

* commit 'f53c5fa96381915e20353cfedc798c0e3c52289b':
  [DO NOT MERGE] Added fields to CELL_INFO_LIST. Gsm: ta, arfcn, bsic Wcdma: uarfcn Lte: earfcn

8 years ago[DO NOT MERGE] Added fields to CELL_INFO_LIST.
Sanket Padawe [Wed, 27 Jan 2016 18:00:38 +0000 (10:00 -0800)]
[DO NOT MERGE] Added fields to CELL_INFO_LIST.
Gsm: ta, arfcn, bsic
Wcdma: uarfcn
Lte: earfcn

Bug: 23528586
Change-Id: I435dd9e945bd8d0553491184ae2919bb5a126a32

8 years agoAdded fields to CELL_INFO_LIST.
Sanket Padawe [Wed, 27 Jan 2016 02:44:01 +0000 (18:44 -0800)]
Added fields to CELL_INFO_LIST.
Gsm: ta, arfcn, bsic
Wcdma: uarfcn
Lte: earfcn

Bug: 23528586
Change-Id: Iaf7bfaac96bda92d980c566878b9fe481a6d2c21