OSDN Git Service

android-x86/hardware-ril.git
6 years agoMerge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into nyc-dev...
Sanket Padawe [Thu, 10 Aug 2017 04:58:04 +0000 (04:58 +0000)]
Merge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into nyc-dev am: f0cbbbcdac
am: ab379831bc

Change-Id: I87381e915f3df77a7d2b82c0946970f007ad8872

6 years agoMerge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev...
Sanket Padawe [Thu, 10 Aug 2017 04:55:34 +0000 (04:55 +0000)]
Merge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev am: e66a47c150 am: 957626f82d am: ddc6f6427e am: 0756964d91  -s ours am: b8484b0fe3
am: e9fe8f02c9

Change-Id: Ia09c5fcf0a691ee77a9012aed1d0145242299b7d

6 years agoMerge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into nyc-dev
Sanket Padawe [Thu, 10 Aug 2017 04:55:34 +0000 (04:55 +0000)]
Merge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into nyc-dev
am: f0cbbbcdac

Change-Id: I2bd94cf5c6df16e79149c77761276d0fb9b1e324

6 years agoMerge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into nyc-dev
Sanket Padawe [Thu, 10 Aug 2017 04:53:20 +0000 (04:53 +0000)]
Merge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into nyc-dev

6 years agoMerge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev...
Sanket Padawe [Thu, 10 Aug 2017 04:52:34 +0000 (04:52 +0000)]
Merge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev am: e66a47c150 am: 957626f82d am: ddc6f6427e am: 0756964d91  -s ours
am: b8484b0fe3

Change-Id: I95424dcd22474782dd128c045d96416e4795c2f9

6 years agoMerge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev...
Sanket Padawe [Thu, 10 Aug 2017 04:48:04 +0000 (04:48 +0000)]
Merge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev am: e66a47c150 am: 957626f82d am: ddc6f6427e
am: 0756964d91  -s ours

Change-Id: I418b3588da64780460df78423b181cc48e73dadb

6 years agoMerge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev...
Sanket Padawe [Thu, 10 Aug 2017 04:43:03 +0000 (04:43 +0000)]
Merge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev am: e66a47c150 am: 957626f82d
am: ddc6f6427e

Change-Id: Ibd9999816b25453b3e7dd8a9588bb53830e1131b

6 years agoMerge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev...
Sanket Padawe [Thu, 10 Aug 2017 04:39:33 +0000 (04:39 +0000)]
Merge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev am: e66a47c150
am: 957626f82d

Change-Id: Icf57631695a3fd622a939c05dc188901ad68db6f

6 years agoMerge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev
Sanket Padawe [Thu, 10 Aug 2017 04:36:03 +0000 (04:36 +0000)]
Merge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev
am: e66a47c150

Change-Id: Ib4c2ec20ee3d6b130812c0b0cb3316541f669765

6 years agoMerge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev
Sanket Padawe [Thu, 10 Aug 2017 04:28:54 +0000 (04:28 +0000)]
Merge "DO NOT MERGE Fix security vulnerability in pre-O rild code." into mnc-dev

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e...
Sanket Padawe [Thu, 10 Aug 2017 04:18:32 +0000 (04:18 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964 am: 44fd51827a  -s ours am: 023b8082b7  -s ours am: 774711be8f am: 39840dc5e3  -s ours am: 3a546ebf0a am: 8ad718398a am: 472cfd25ea am: 2a86c777ef  -s ours am: b916a4067b
am: 21e26b21ee

Change-Id: Ic30458687c40417f294429ce5852a32541dfa05f

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e...
Sanket Padawe [Thu, 10 Aug 2017 04:15:31 +0000 (04:15 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964 am: 44fd51827a  -s ours am: 023b8082b7  -s ours am: 774711be8f am: 39840dc5e3  -s ours am: 3a546ebf0a am: 8ad718398a am: 472cfd25ea am: 2a86c777ef  -s ours
am: b916a4067b

Change-Id: I28f5c8a73a20aa07708c2b6b8e0b42a46a6bdbda

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e...
Sanket Padawe [Thu, 10 Aug 2017 04:13:00 +0000 (04:13 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964 am: 44fd51827a  -s ours am: 023b8082b7  -s ours am: 774711be8f am: 39840dc5e3  -s ours am: 3a546ebf0a am: 8ad718398a am: 472cfd25ea
am: 2a86c777ef  -s ours

Change-Id: I79a95786d633b780d52ee37a942d347b7dad4814

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e...
Sanket Padawe [Thu, 10 Aug 2017 04:09:30 +0000 (04:09 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964 am: 44fd51827a  -s ours am: 023b8082b7  -s ours am: 774711be8f am: 39840dc5e3  -s ours am: 3a546ebf0a am: 8ad718398a
am: 472cfd25ea

Change-Id: I318eefa909101af05fbd0efa5654a9f0d709cdb1

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e...
Sanket Padawe [Thu, 10 Aug 2017 04:07:00 +0000 (04:07 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964 am: 44fd51827a  -s ours am: 023b8082b7  -s ours am: 774711be8f am: 39840dc5e3  -s ours am: 3a546ebf0a
am: 8ad718398a

Change-Id: I270562130513e2db9efd19bc80706826fcc65123

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e...
Sanket Padawe [Thu, 10 Aug 2017 04:03:59 +0000 (04:03 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964 am: 44fd51827a  -s ours am: 023b8082b7  -s ours am: 774711be8f am: 39840dc5e3  -s ours
am: 3a546ebf0a

Change-Id: I8e4e19dc7b965c36407f754f1fc8c170a606e3d7

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1 -s ours...
Sanket Padawe [Thu, 10 Aug 2017 04:01:30 +0000 (04:01 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1  -s ours am: 3a3c7ce730 am: e90cce1ae7  -s ours am: 36c0b38d8a am: 1e72c6b90f am: 8811f6efda am: 77bf25b40c  -s ours am: 6978db7a39
am: 7b7107854a

Change-Id: I0122cba5f4889e1b2455711c30bf4444f5ba45c2

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e...
Sanket Padawe [Thu, 10 Aug 2017 04:01:29 +0000 (04:01 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964 am: 44fd51827a  -s ours am: 023b8082b7  -s ours am: 774711be8f
am: 39840dc5e3  -s ours

Change-Id: Ifda69ab3844b40c901dfaa4d2d6aa01dbe7aca8d

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e...
Sanket Padawe [Thu, 10 Aug 2017 03:59:29 +0000 (03:59 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964 am: 44fd51827a  -s ours am: 023b8082b7  -s ours
am: 774711be8f

Change-Id: I6fab0f0b74a730c16241f385c5939accef8ba1c5

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1 -s ours...
Sanket Padawe [Thu, 10 Aug 2017 03:58:29 +0000 (03:58 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1  -s ours am: 3a3c7ce730 am: e90cce1ae7  -s ours am: 36c0b38d8a am: 1e72c6b90f am: 8811f6efda am: 77bf25b40c  -s ours
am: 6978db7a39

Change-Id: I14486ba6c3a41ba27383ba83889ac998e05c2c7e

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1 -s ours...
Sanket Padawe [Thu, 10 Aug 2017 03:56:29 +0000 (03:56 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1  -s ours am: 3a3c7ce730 am: e90cce1ae7  -s ours am: 36c0b38d8a am: 1e72c6b90f am: 8811f6efda
am: 77bf25b40c  -s ours

Change-Id: Id6c0cc872b6fd5f552974fa4a1cbcba637e82d35

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e...
Sanket Padawe [Thu, 10 Aug 2017 03:56:29 +0000 (03:56 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964 am: 44fd51827a  -s ours
am: 023b8082b7  -s ours

Change-Id: I2cb3c47b6b20d4d956bb248b5989fcbc5f72156f

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1 -s ours...
Sanket Padawe [Thu, 10 Aug 2017 03:52:59 +0000 (03:52 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1  -s ours am: 3a3c7ce730 am: e90cce1ae7  -s ours am: 36c0b38d8a am: 1e72c6b90f
am: 8811f6efda

Change-Id: I55cf868e6a90c84766e0767d8381952f1b507206

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964
Sanket Padawe [Thu, 10 Aug 2017 03:52:58 +0000 (03:52 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf am: 57170e4964
am: 44fd51827a  -s ours

Change-Id: Ie22fe9ca948f5601839bb228ea91534ccba84dfe

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf
Sanket Padawe [Thu, 10 Aug 2017 03:49:29 +0000 (03:49 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: bb6567cbaf
am: 57170e4964

Change-Id: Icfc4d393a6d84d31bebcd67ef4338bd63dda9566

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1 -s ours...
Sanket Padawe [Thu, 10 Aug 2017 03:49:28 +0000 (03:49 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1  -s ours am: 3a3c7ce730 am: e90cce1ae7  -s ours am: 36c0b38d8a
am: 1e72c6b90f

Change-Id: Iaabecd18964f940c5cc6049e0472c9be54309734

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1 -s ours...
Sanket Padawe [Thu, 10 Aug 2017 03:46:59 +0000 (03:46 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1  -s ours am: 3a3c7ce730 am: e90cce1ae7  -s ours
am: 36c0b38d8a

Change-Id: Ib34748a84ef11da2b5a8ba400a16815e2f418827

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code.
Sanket Padawe [Thu, 10 Aug 2017 03:46:58 +0000 (03:46 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code.
am: bb6567cbaf

Change-Id: I17d71afc3d3b58e1e12d7844716439e9e83d418c

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1 -s ours...
Sanket Padawe [Thu, 10 Aug 2017 03:43:57 +0000 (03:43 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1  -s ours am: 3a3c7ce730
am: e90cce1ae7  -s ours

Change-Id: Ibb3ea8590c4537fbae682956040e4a590e3616b8

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1 -s ours
Sanket Padawe [Thu, 10 Aug 2017 03:40:58 +0000 (03:40 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code. am: c4c7c551b1  -s ours
am: 3a3c7ce730

Change-Id: Iabe7bf88400c02561a0ef53b68566fdf34f6f5a5

6 years agoDO NOT MERGE Fix security vulnerability in pre-O rild code.
Sanket Padawe [Thu, 10 Aug 2017 03:38:27 +0000 (03:38 +0000)]
DO NOT MERGE Fix security vulnerability in pre-O rild code.
am: c4c7c551b1  -s ours

Change-Id: I9a86af65a991fc0d32e10cbb19151765b8646bb3

6 years agoDO NOT MERGE
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

6 years agoDO NOT MERGE
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

6 years agoDO NOT MERGE
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

6 years agoDO NOT MERGE
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

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 [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 [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

8 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

8 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

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

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