OSDN Git Service

android-x86/hardware-ril.git
6 years agoDO NOT MERGE nougat-x86 android-x86-7.1-r3 android-x86-7.1-r4 android-x86-7.1-r5
Sanket Padawe [Thu, 13 Jul 2017 21:19:28 +0000 (14:19 -0700)]
DO NOT MERGE
Fix security vulnerability in pre-O rild code.

Remove wrong code for setup_data_call.
Add check for max address for RIL_DIAL.

Bug: 37896655
Test: Manual.
Change-Id: I05c027140ae828a2653794fcdd94e1b1a130941b
(cherry picked from commit dda24c6557911aa1f4708abbd6b2f20f0e205b9e)

7 years agoUpdate documentation to clarify RIL_REQUEST_GET_ACTIVITY_INFO
Nathan Harold [Thu, 13 Oct 2016 02:07:47 +0000 (02:07 +0000)]
Update documentation to clarify RIL_REQUEST_GET_ACTIVITY_INFO
am: c863521147

Change-Id: I01b10273285311173766966878d8174cda8e6bf8

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 agoReplace variable-length arrays on stack with malloc. am: 943905bb9f am: 837c8b680a...
Amit Mahajan [Wed, 17 Aug 2016 18:09:56 +0000 (18:09 +0000)]
Replace variable-length arrays on stack with malloc. am: 943905bb9f am: 837c8b680a am: bf678da1fe am: 30be8a250b am: 9df4b4f002
am: 3731ea7548

Change-Id: I2979e5bcf5e46ead97bb0fa589431ad9e6f75618

7 years agoReplace variable-length arrays on stack with malloc.
Amit Mahajan [Wed, 17 Aug 2016 18:09:54 +0000 (18:09 +0000)]
Replace variable-length arrays on stack with malloc.
am: 49db26c574

Change-Id: I1932691bfdba50fd4d9ba77505d03866ff312372

7 years agoReplace variable-length arrays on stack with malloc. am: 943905bb9f am: 837c8b680a...
Amit Mahajan [Tue, 16 Aug 2016 23:17:12 +0000 (23:17 +0000)]
Replace variable-length arrays on stack with malloc. am: 943905bb9f am: 837c8b680a am: bf678da1fe am: 30be8a250b
am: 9df4b4f002

Change-Id: I42abe5d593acd1014b42a8f97273f706009b16d2

7 years agoReplace variable-length arrays on stack with malloc. am: 943905bb9f am: 837c8b680a...
Amit Mahajan [Tue, 16 Aug 2016 23:12:41 +0000 (23:12 +0000)]
Replace variable-length arrays on stack with malloc. am: 943905bb9f am: 837c8b680a am: bf678da1fe
am: 30be8a250b

Change-Id: I5cc0b7e45e5584d2938cf61da8526039911d374a

7 years agoReplace variable-length arrays on stack with malloc. am: 943905bb9f am: 837c8b680a
Amit Mahajan [Tue, 16 Aug 2016 23:08:11 +0000 (23:08 +0000)]
Replace variable-length arrays on stack with malloc. am: 943905bb9f am: 837c8b680a
am: bf678da1fe

Change-Id: I3a574c790342b609ca86286140d4d6c7ed12e1aa

7 years agoReplace variable-length arrays on stack with malloc. am: 943905bb9f
Amit Mahajan [Tue, 16 Aug 2016 23:04:13 +0000 (23:04 +0000)]
Replace variable-length arrays on stack with malloc. am: 943905bb9f
am: 837c8b680a

Change-Id: Idfd58f5e20c81a5b67d9f581d932c1a3e3cd1fad

7 years agoReplace variable-length arrays on stack with malloc.
Amit Mahajan [Tue, 16 Aug 2016 23:01:39 +0000 (23:01 +0000)]
Replace variable-length arrays on stack with malloc.
am: 943905bb9f

Change-Id: Ie54e7e1a0e255e61b0c5182ec72b0cdb376efbd1

7 years agoReplace variable-length arrays on stack with malloc.
Amit Mahajan [Mon, 15 Aug 2016 16:06:34 +0000 (09:06 -0700)]
Replace variable-length arrays on stack with malloc.

Bug: 30202619
Change-Id: Ib95e08a1c009d88a4b4fd8d8fdba0641c6129008

7 years agoReplace variable-length arrays on stack with malloc.
Amit Mahajan [Mon, 15 Aug 2016 16:06:34 +0000 (09:06 -0700)]
Replace variable-length arrays on stack with malloc.

Bug: 30202619
Change-Id: Ib95e08a1c009d88a4b4fd8d8fdba0641c6129008

7 years agoFix documentation of RIL_Request in ril.h
Sanket Padawe [Tue, 9 Aug 2016 00:45:10 +0000 (00:45 +0000)]
Fix documentation of RIL_Request in ril.h
am: 05c2307a82

Change-Id: I6f8f6ca3d2d0f023602110ad3840784d8caee42a

7 years agoFix documentation of RIL_Request in ril.h
Sanket Padawe [Mon, 8 Aug 2016 22:42:17 +0000 (15:42 -0700)]
Fix documentation of RIL_Request in ril.h

Bug: 30380273
Change-Id: If086f5ea6f986a0da0d6f0729c28d913103b01ed

7 years agoAdd comment for RIL_REQUEST_SET_CARRIER_RESTRICTIONS and RIL_REQUEST_GET_CARRIER_REST...
Meng Wang [Fri, 15 Jul 2016 22:41:19 +0000 (15:41 -0700)]
Add comment for RIL_REQUEST_SET_CARRIER_RESTRICTIONS and RIL_REQUEST_GET_CARRIER_RESTRICTIONS

Added modem behavior convention for vendor's reference

Bug: 29409395
Change-Id: Ic7bbf24ca8d62e14353ad4d7ea8f1e5fabaf96f9

7 years agoFix build warnings in ril.cpp.
Sanket Padawe [Fri, 8 Jul 2016 21:51:03 +0000 (14:51 -0700)]
Fix build warnings in ril.cpp.

Bug: 29401612
Change-Id: Icba225928f1336785cc5cb9a81e1c5b7b2121353

7 years agoFix build warnings in hardware/ril.
Sanket Padawe [Thu, 30 Jun 2016 22:01:08 +0000 (15:01 -0700)]
Fix build warnings in hardware/ril.

Bug: 29401612
Change-Id: I8473294655ad24ec001cedb84856004ab0ba22a7

7 years agoMerge "Fix compile warning in libril.cpp" into nyc-mr1-dev
TreeHugger Robot [Mon, 27 Jun 2016 20:54:55 +0000 (20:54 +0000)]
Merge "Fix compile warning in libril.cpp" into nyc-mr1-dev

7 years agoFix compile warning in libril.cpp
Meng Wang [Tue, 21 Jun 2016 00:38:18 +0000 (17:38 -0700)]
Fix compile warning in libril.cpp

Bug: 29401612
Change-Id: Ifb04928fce7f2e028c0f69d6cdbb1dce0befeadf

7 years agoAdd support for LTE CarrierAgregation
Ajay Nambi [Fri, 15 May 2015 01:50:20 +0000 (18:50 -0700)]
Add support for LTE CarrierAgregation

Note this may be redesigned in O to better handle the
various bitrate/channel combinations in a sane way.

bug:27360321
Change-Id: I36a548b3229bf344ac2e4b714d8dc1dfa47af064

7 years agoMerge "Move struct def out of an #ifdef" into nyc-mr1-dev
Robert Greenwalt [Thu, 16 Jun 2016 00:08:06 +0000 (00:08 +0000)]
Merge "Move struct def out of an #ifdef" into nyc-mr1-dev

7 years agoMove struct def out of an #ifdef
Robert Greenwalt [Wed, 15 Jun 2016 21:59:38 +0000 (14:59 -0700)]
Move struct def out of an #ifdef

It was only visible if the vendor used a particular
style (SHLIB).

bug:28961371
bug:28567303
Change-Id: I54256e17170a69bdb6fbb9b38924b42906b85896

7 years agoFix responseCarrierRestrictions string wrting to parcel
Meng Wang [Thu, 9 Jun 2016 16:21:26 +0000 (09:21 -0700)]
Fix responseCarrierRestrictions string wrting to parcel

In Java land, string are read from parcel by readString16.
Hence writeString16 should be invoked in C land,
instead of writeCString

Bug: 28564314
Change-Id: I0ede376541b54d72867f07b96ae52c4a8ed3695f

7 years agoMerge "Fix dispatchCarrierRestrictions string reading from parcel" into nyc-mr1-dev
Meng Wang [Wed, 8 Jun 2016 22:15:11 +0000 (22:15 +0000)]
Merge "Fix dispatchCarrierRestrictions string reading from parcel" into nyc-mr1-dev

7 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: Ib31836f36366246e3229635ceee3fa04e6a404f8

7 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

7 years agoFix dispatchCarrierRestrictions string reading from parcel
Meng Wang [Wed, 8 Jun 2016 18:53:25 +0000 (11:53 -0700)]
Fix dispatchCarrierRestrictions string reading from parcel

The parcel is passed from Java land where string are write to
parcel by writeString16. In C land, the string should be read
by readString16 instead of readCString.

Bug: 28564314
Change-Id: Ib6d9f0fd3895c7836bd9d7c2df879269bb29ae4e

7 years agoIncrease buffer size for storing /proc/cmdline to avoid buffer overflow.
Sanket Padawe [Mon, 6 Jun 2016 18:21:24 +0000 (11:21 -0700)]
Increase buffer size for storing /proc/cmdline to avoid buffer overflow.

Bug: 29115540
Change-Id: I875532f119aef908f7c7afbbd2224a5252c972ee

7 years agoMerge "Don't clobber the last null terminator when reading /proc/cmdline." into nyc...
TreeHugger Robot [Fri, 3 Jun 2016 18:36:54 +0000 (18:36 +0000)]
Merge "Don't clobber the last null terminator when reading /proc/cmdline." into nyc-mr1-dev

7 years agoDon't clobber the last null terminator when reading /proc/cmdline.
Michael Wright [Fri, 3 Jun 2016 15:09:53 +0000 (16:09 +0100)]
Don't clobber the last null terminator when reading /proc/cmdline.

Right now, if /proc/cmdline is larger than the buffer size (1024)
then the read will overwrite all of the null terminators and the
ensuing strstr calls will continue past the end of the buffer.

Bug: 29115540
Change-Id: I2da2f28edabd7926d40dbcea52ebaf7165c44e04

7 years agoAdd support for UNSOL PCO Data.
Robert Greenwalt [Wed, 1 Jun 2016 23:31:38 +0000 (16:31 -0700)]
Add support for UNSOL PCO Data.

bug:28961371
bug:28567303
Change-Id: Ibbb415c9f5799d666b1599ed0abf97ec24642a3a

7 years agoril: make sure ril response on RIL version error
Meng Wang [Wed, 25 May 2016 19:59:15 +0000 (12:59 -0700)]
ril: make sure ril response on RIL version error

Fix issue: in dispatchCarrierRestrictions(), when unsupported RIL
version detected, no RIL response is received.
Root cause: the error handling code doesn't send actual RIL request.
Solution: call RIL_onRequestComplete() so that RIL response with
designated error code like RIL_E_REQUEST_NOT_SUPPORTED.

Bug: 28564314
Change-Id: I3f91cf1d14f39813471b36f1fe4c4e0d9f6dbd60

7 years agoAdd RIL command RIL_REQUEST_SET_CARRIER_RESTRICTIONS and RIL_REQUEST_GET_CARRIER_REST...
Meng Wang [Thu, 12 May 2016 21:54:36 +0000 (14:54 -0700)]
Add RIL command RIL_REQUEST_SET_CARRIER_RESTRICTIONS and RIL_REQUEST_GET_CARRIER_RESTRICTIONS

Bug: 28564314
Change-Id: I38792d59c4602a3e2126c58ac0b8c2487cccff04

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

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

Change-Id: I0930de5a9e29b1b66cd207a52ba2e558eeb3cff2

7 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

7 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

7 years agoSpecify the INVALID flag for BSIC to be 0xFF
Nathan Harold [Fri, 6 May 2016 03:26:12 +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: I77e3c5e8ed6283870d748900b1b6984d85138246

7 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 agoril : print request name for RIL_REQUEST_NV_RESET_CONFIG
tim.tm_lin [Wed, 13 Apr 2016 16:59:57 +0000 (00:59 +0800)]
ril : print request name for RIL_REQUEST_NV_RESET_CONFIG

RIL_REQUEST_NV_RESET_CONFIG will be used for OMA DM

Bug: 27615197
Change-Id: I72319eff326436b9facaf8a702559685360cd7f3
Signed-off-by: tim.tm_lin <tim.tm_lin@htc.com>
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: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 [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 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 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

8 years agoUse SimRefreshResponse struct in RIL Versions greater than 7
Sanket Padawe [Wed, 27 Jan 2016 01:44:34 +0000 (17:44 -0800)]
Use SimRefreshResponse struct in RIL Versions greater than 7

Modify condition to use SimRefreshResponse struct in
all RIL Versions greater than 7.

BUG=21075857

Change-Id: Ic9e91e91e295216b3b933589b234732fcf02f3f9

8 years agoInitialize the buffer
Sanket Padawe [Wed, 27 Jan 2016 01:32:50 +0000 (17:32 -0800)]
Initialize the buffer

Initialize the char array to null character
as there is a possibility that it is not null
terminated

BUG=21063589

Change-Id: I00cc699795c5c266ac7adae2a0ce6f13ee187e1f

8 years agoAdd WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATION
Sanket Padawe [Wed, 27 Jan 2016 01:28:38 +0000 (17:28 -0800)]
Add WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATION

Add WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATION in
requestToString method.

Change-Id: Ibf61b9c2c9a5ddffba2f4683468178eb8ec2cdc9

8 years agoAdd RIL_REQUEST_LAST_CALL_FAIL_CAUSE to ril
Sanket Padawe [Wed, 27 Jan 2016 00:58:36 +0000 (16:58 -0800)]
Add RIL_REQUEST_LAST_CALL_FAIL_CAUSE to ril

Add needed RIL_REQUEST_LAST_CALL_FAIL_CAUSE to ril.h

BUG=26014382

Change-Id: I577c416e90b277855dd149ef422ff3d142a29998

8 years agoMerge "RilSapSocket: Send response with empty payload"
Sanket Padawe [Wed, 27 Jan 2016 00:56:31 +0000 (00:56 +0000)]
Merge "RilSapSocket: Send response with empty payload"

8 years agoRilSapSocket: Send response with empty payload
Sanket Padawe [Wed, 27 Jan 2016 00:26:30 +0000 (16:26 -0800)]
RilSapSocket: Send response with empty payload

Change-Id: Ib689b64ce4ce8f8b125409a6a0ddb5a68c1afa23

8 years agoImprove RIL versioning.
Sanket Padawe [Wed, 27 Jan 2016 00:19:00 +0000 (16:19 -0800)]
Improve RIL versioning.

+ Added documentation for new RIL versioning format.
+ Changes associated to new RIl versioning format.

Bug: 25779475
Change-Id: I59362b521263e01c4ac6fc8e68ecdc527696786a

8 years agoMerge "Add more error codes for RIL_DataCallFailCause"
Sanket Padawe [Tue, 26 Jan 2016 22:05:31 +0000 (22:05 +0000)]
Merge "Add more error codes for RIL_DataCallFailCause"

8 years agoAdd more error codes for RIL_DataCallFailCause
Sanket Padawe [Thu, 7 Jan 2016 22:41:17 +0000 (14:41 -0800)]
Add more error codes for RIL_DataCallFailCause

Bug: 26014382
Change-Id: Iaf3436ea94ebd0aba5fba07037e0ba37287d6444

8 years agoDO NOT MERGE ANYWHERE merge -s ours mirror-partner-mm-wireless-dev.
Bill Rassieur [Tue, 26 Jan 2016 19:29:19 +0000 (11:29 -0800)]
DO NOT MERGE ANYWHERE merge -s ours mirror-partner-mm-wireless-dev.

8 years agoRevert "Added fields to CELL_INFO_LIST. Gsm: ta, arfcn, bsic Wcdma: uarfcn Lte: earfcn"
Narayan Kamath [Tue, 26 Jan 2016 09:45:05 +0000 (09:45 +0000)]
Revert "Added fields to CELL_INFO_LIST. Gsm: ta, arfcn, bsic Wcdma: uarfcn Lte: earfcn"

This reverts commit af0a0ebb9bb1d8fee11af052eefa3c131094386a.

Change-Id: Ifad087e11c46d31f9649ae318249e72836ecdd58

8 years agoAdded fields to CELL_INFO_LIST.
Sanket Padawe [Mon, 25 Jan 2016 20:56:14 +0000 (12:56 -0800)]
Added fields to CELL_INFO_LIST.
Gsm: ta, arfcn, bsic
Wcdma: uarfcn
Lte: earfcn

Bug: 23528586

Change-Id: I4ff31ae27cbc3b9bc8a215e80453bab94c824dd8

8 years agoMerge "Use SimRefreshResponse struct in RIL Versions greater than 7" into mm-wireless-dev
Sanket Padawe [Thu, 21 Jan 2016 23:50:46 +0000 (23:50 +0000)]
Merge "Use SimRefreshResponse struct in RIL Versions greater than 7" into mm-wireless-dev

8 years agoUse SimRefreshResponse struct in RIL Versions greater than 7
Sanket Padawe [Thu, 21 Jan 2016 23:49:33 +0000 (15:49 -0800)]
Use SimRefreshResponse struct in RIL Versions greater than 7

Modify condition to use SimRefreshResponse struct in
all RIL Versions greater than 7.

BUG=21075857

Change-Id: Ifde00434bfcaecf3b4c32392fc4964fe3b43f6b5