OSDN Git Service

android-x86/system-bt.git
6 years agoRefactor btm_ble_resolving_list_load_dev am: 06d4a42ac2
Chao Quan [Fri, 29 Sep 2017 14:52:27 +0000 (14:52 +0000)]
Refactor btm_ble_resolving_list_load_dev am: 06d4a42ac2
am: cc8271c7e9

Change-Id: I0ab854ab339ef67a6669d8025c3d3a4a17631e59

6 years agoRefactor btm_ble_resolving_list_load_dev
Chao Quan [Fri, 29 Sep 2017 03:23:52 +0000 (03:23 +0000)]
Refactor btm_ble_resolving_list_load_dev
am: 06d4a42ac2

Change-Id: Ie015e1f0876aebafedcb04e8770cb0edd16f6f7f

6 years agoRefactor btm_ble_resolving_list_load_dev
Chao Quan [Fri, 11 Aug 2017 03:30:59 +0000 (11:30 +0800)]
Refactor btm_ble_resolving_list_load_dev

Test: compilation
Change-Id: I69fd4d9df63801bcc8b529d95bee74fd06c86249

6 years agoMerge "HIDD: Auto-plug and accept incoming connections" am: 34b1bed0d2
Ivan Podogov [Thu, 28 Sep 2017 04:23:01 +0000 (04:23 +0000)]
Merge "HIDD: Auto-plug and accept incoming connections" am: 34b1bed0d2
am: 5fa280a530

Change-Id: I2b96bcb106f109be88b386d412bc211f6cf2d1c8

6 years agoMerge "HIDD: Auto-plug and accept incoming connections"
Ivan Podogov [Thu, 28 Sep 2017 04:20:28 +0000 (04:20 +0000)]
Merge "HIDD: Auto-plug and accept incoming connections"
am: 34b1bed0d2

Change-Id: Ie83a77c83959d83b60e7e1eabbb08e886c4188a0

6 years agoMerge "HIDD: Auto-plug and accept incoming connections"
Treehugger Robot [Thu, 28 Sep 2017 04:16:02 +0000 (04:16 +0000)]
Merge "HIDD: Auto-plug and accept incoming connections"

6 years agoFix Linux build am: fd45611d6c
Jack He [Thu, 28 Sep 2017 03:31:27 +0000 (03:31 +0000)]
Fix Linux build am: fd45611d6c
am: 87331bef85

Change-Id: I6d587f2e8e832e67e4da7000e37a060f5d79a7ac

6 years agoFix Linux build
Jack He [Thu, 28 Sep 2017 03:25:47 +0000 (03:25 +0000)]
Fix Linux build
am: fd45611d6c

Change-Id: Iec5f76d31645149f7b81a0f695e808a6ec19a260

6 years agoFix Linux build
Jack He [Thu, 28 Sep 2017 01:25:56 +0000 (18:25 -0700)]
Fix Linux build

* UUID source files
* L2CAP UCD source files

Test: build on linux
Change-Id: Iba6d8d082612c62e5a8d552140c86ed242da0e36

6 years agoMerge "Don't set CT2 bit when talking to pre-5.0 devices" am: 88f7ae508d
Jakub Pawlowski [Thu, 28 Sep 2017 01:09:46 +0000 (01:09 +0000)]
Merge "Don't set CT2 bit when talking to pre-5.0 devices" am: 88f7ae508d
am: a24611631e

Change-Id: Ib11d4e99cc6d0e092aecb8e872c62f1bd4406730

6 years agoMerge "Don't set CT2 bit when talking to pre-5.0 devices"
Jakub Pawlowski [Thu, 28 Sep 2017 01:07:48 +0000 (01:07 +0000)]
Merge "Don't set CT2 bit when talking to pre-5.0 devices"
am: 88f7ae508d

Change-Id: I1d1f343ea5fffa7312662670f30079ff7ea9bce9

6 years agoMerge "Don't set CT2 bit when talking to pre-5.0 devices"
Treehugger Robot [Thu, 28 Sep 2017 01:01:30 +0000 (01:01 +0000)]
Merge "Don't set CT2 bit when talking to pre-5.0 devices"

6 years agoFix out-of-bounds reading when copy SDP raw data am: 04da67a727
Yamei Du [Thu, 28 Sep 2017 00:22:31 +0000 (00:22 +0000)]
Fix out-of-bounds reading when copy SDP raw data am: 04da67a727
am: ff2c325ab3

Change-Id: I10c2a9993b1d5215bb209082ea833c335f4d13f5

6 years agoFix out-of-bounds reading when copy SDP raw data
Yamei Du [Thu, 28 Sep 2017 00:19:30 +0000 (00:19 +0000)]
Fix out-of-bounds reading when copy SDP raw data
am: 04da67a727

Change-Id: I7b26a6a14ff83632e6f4fe9ad3f0a0a8af80fada

6 years agoDon't set CT2 bit when talking to pre-5.0 devices
Jakub Pawlowski [Wed, 27 Sep 2017 22:41:13 +0000 (15:41 -0700)]
Don't set CT2 bit when talking to pre-5.0 devices

Prior to 5.0 spec, CT2 bit in AuthReq was reserved. Setting it cause
bonding failure with devices that handle it incorrectly.

Bug: 66179701
Bug: 66931978
Test: Bond with device that have 4.2 chip
Change-Id: Idbbf2c39c499698844218059a35cb686996c136a

6 years agoFix out-of-bounds reading when copy SDP raw data
Yamei Du [Sat, 27 May 2017 02:41:42 +0000 (10:41 +0800)]
Fix out-of-bounds reading when copy SDP raw data

When no attribute is returned in the SDP response, the cpy_len will be
MAX_DISC_RAW_DATA_BUF, this will cause out-of-bonds reading of source
buffer when copy the response raw data.

Change-Id: I923d8ee7e08f935e13cec38b75a04beca6174452

6 years agoSMP: Use tSMP_INT_DATA instead of void am: 5ce55bd2e0
Myles Watson [Wed, 27 Sep 2017 21:15:32 +0000 (21:15 +0000)]
SMP: Use tSMP_INT_DATA instead of void am: 5ce55bd2e0
am: 2f331b07c8

Change-Id: I6b08ed0c04d1cc8fb7a362a4d4152790e6646a17

6 years agoSMP: Use tSMP_INT_DATA instead of void
Myles Watson [Wed, 27 Sep 2017 21:13:21 +0000 (21:13 +0000)]
SMP: Use tSMP_INT_DATA instead of void
am: 5ce55bd2e0

Change-Id: I1f1ff8a75d6766a5b7a7fc0a0d9a100bf5d4a9a4

6 years agoSMP: Use tSMP_INT_DATA instead of void
Myles Watson [Wed, 20 Sep 2017 23:41:19 +0000 (16:41 -0700)]
SMP: Use tSMP_INT_DATA instead of void

Test: pairing sanity
Change-Id: Ie3a2f94ddd718344219760cef7f1477bd4d09e00

6 years agoHIDD: Auto-plug and accept incoming connections
Ivan Podogov [Tue, 26 Sep 2017 10:42:41 +0000 (11:42 +0100)]
HIDD: Auto-plug and accept incoming connections

Linux, Windows, and OSX try to connect with HID devices during
pairing. We should auto-plug and accept incoming connections if
there is currently no device connected.

In case of Windows, if it fails to connect the first time right
after pairing, all future connections are guaranteed to fail:
hangs in the "response pending" state at L2CAP connection, right
after SECURITY_COMPLETE, looks like a bug in Windows stack.

Since we always have a plugged, "in_use" device in registered
state, we won't be able to accept a new incoming connection,
unless we don't have any other paired device at all. This check
should be removed to allow smoother pairing experience and fix
Windows compatibility.

Bug: 66940516
Test: manual, with a test app
Change-Id: Ie6ca639cb120b52f59880fadb4d3654a095664d6

6 years agoL2CAP: Remove UCD related flags am: 3992f45f86
Jack He [Wed, 27 Sep 2017 20:17:02 +0000 (20:17 +0000)]
L2CAP: Remove UCD related flags am: 3992f45f86
am: 527f5d6945

Change-Id: I4cf350ebe8822b4389a8bd8b75f3e3ec0b8ad148

6 years agoMerge "Modify Bluetooth Class of Device from Android stack" am: d98dac4396
Pulkit Bhuwalka [Wed, 27 Sep 2017 20:12:34 +0000 (20:12 +0000)]
Merge "Modify Bluetooth Class of Device from Android stack" am: d98dac4396
am: 7820d2eed0

Change-Id: Ib013e5346fc424821acbdd9c5fa92390dbda98e8

6 years agoL2CAP: Remove UCD related flags
Jack He [Wed, 27 Sep 2017 20:09:24 +0000 (20:09 +0000)]
L2CAP: Remove UCD related flags
am: 3992f45f86

Change-Id: I9e040eafa6fb526e32d360c318913454ab2b715d

6 years agoMerge "Modify Bluetooth Class of Device from Android stack"
Pulkit Bhuwalka [Wed, 27 Sep 2017 20:04:43 +0000 (20:04 +0000)]
Merge "Modify Bluetooth Class of Device from Android stack"
am: d98dac4396

Change-Id: Ie7bb897b534f65503cd626c6c958a16e6b3a7209

6 years agoL2CAP: Remove UCD related flags
Jack He [Thu, 21 Sep 2017 00:06:42 +0000 (17:06 -0700)]
L2CAP: Remove UCD related flags

* L2CAP UCD (Unicast Connectionless Data) is no longer enabled on the
  stack
* L2CAP_UCD_INCLUDED is always FALSE, the TRUE case should be removed
* As result, L2CAP_UCD_MTU, L2CAP_UCD_IDLE_TIMEOUT, and
  L2CAP_UCD_CH_PRIORITY need to be removed as well

Bug: 66244184
Test: build
Change-Id: Ieee8b3a547653efa3a34a0810c415ba4c32f1be7

6 years agoMerge "Modify Bluetooth Class of Device from Android stack"
Treehugger Robot [Wed, 27 Sep 2017 19:43:18 +0000 (19:43 +0000)]
Merge "Modify Bluetooth Class of Device from Android stack"

6 years agoMerge "Fix GATT Characteristic discovery (server side)" am: 1c0dae6145
Jakub Pawlowski [Wed, 27 Sep 2017 19:07:04 +0000 (19:07 +0000)]
Merge "Fix GATT Characteristic discovery (server side)" am: 1c0dae6145
am: ea6c79daf4

Change-Id: I47feedd93dc1fd46eb7af73031a124e8f63063ad

6 years agoMerge "Fix GATT Characteristic discovery (server side)"
Jakub Pawlowski [Wed, 27 Sep 2017 18:59:07 +0000 (18:59 +0000)]
Merge "Fix GATT Characteristic discovery (server side)"
am: 1c0dae6145

Change-Id: Ic0dc0eb7f321db75fd0bfc90bff9423a7b1147c0

6 years agoMerge "Fix GATT Characteristic discovery (server side)"
Treehugger Robot [Wed, 27 Sep 2017 18:55:30 +0000 (18:55 +0000)]
Merge "Fix GATT Characteristic discovery (server side)"

6 years agoRemove casts to unions to avoid unaligned accesses am: 8d749047a0
Myles Watson [Wed, 27 Sep 2017 17:33:18 +0000 (17:33 +0000)]
Remove casts to unions to avoid unaligned accesses am: 8d749047a0
am: 30f8ab74d9

Change-Id: I8dfedd6b52d2ebf638b7d7c222510fdd4ad70938

6 years agoRemove casts to unions to avoid unaligned accesses
Myles Watson [Wed, 27 Sep 2017 17:28:19 +0000 (17:28 +0000)]
Remove casts to unions to avoid unaligned accesses
am: 8d749047a0

Change-Id: Ib7bd6211720191bcc0dcbfeb2dcb5495fb55cad8

6 years agoFix GATT Characteristic discovery (server side)
Jakub Pawlowski [Wed, 27 Sep 2017 16:58:46 +0000 (09:58 -0700)]
Fix GATT Characteristic discovery (server side)

The pointer was not properly incremented, which resulted in trashes
being sent during GATT discovery.

This issue was introduced in commit
819e2ecb84a22d6e03ec9ed67b3260c0dd7e8aba (Use one type for UUID)

Bug: 66912853
Test: sl4a GATT read test
Change-Id: Ib57ad050ff17852f9b2fec9c51cad246235e3e80

6 years agoModify Bluetooth Class of Device from Android stack
Pulkit Bhuwalka [Thu, 14 Sep 2017 02:25:31 +0000 (19:25 -0700)]
Modify Bluetooth Class of Device from Android stack

Adds ability to modify Bluetooth Class of Device from Android stack by
hooking into existing functions to modify adapter properties. This
ensures the hardware HAL bluetooth.h interface does not have to change.

Bug: 36015415
Test: Modified Class of Device using sample app and verified device icon
change when discovering from a remote device.

Change-Id: Ib5f05741480a27431afea882d071ded4a6b1bdb8

6 years agoRemove casts to unions to avoid unaligned accesses
Myles Watson [Tue, 19 Sep 2017 17:01:28 +0000 (10:01 -0700)]
Remove casts to unions to avoid unaligned accesses

Bug: 65392204
Test: sanity
Change-Id: I2886cc02289b68710e83147ba4d7715a32a4fc55

6 years agoRemove unnecesary BTA redefinitions for GATT part 4 am: 50ba9031b4
Jakub Pawlowski [Tue, 26 Sep 2017 23:16:05 +0000 (23:16 +0000)]
Remove unnecesary BTA redefinitions for GATT part 4 am: 50ba9031b4
am: f7fe18a4b7

Change-Id: I173f664d05ba5eb851cadcdd32a2d760ac81cadd

6 years agoRemove unnecesary BTA redefinitions for GATT part 3 am: ee9a11f903
Jakub Pawlowski [Tue, 26 Sep 2017 23:16:01 +0000 (23:16 +0000)]
Remove unnecesary BTA redefinitions for GATT part 3 am: ee9a11f903
am: 1006851a6a

Change-Id: I77bca0a70d92e842724c30515840cc73ebe6e29c

6 years agoRemove unnecesary BTA redefinitions for GATT part 2 am: e9ef00c3fb
Jakub Pawlowski [Tue, 26 Sep 2017 23:15:44 +0000 (23:15 +0000)]
Remove unnecesary BTA redefinitions for GATT part 2 am: e9ef00c3fb
am: 3041f65216

Change-Id: I2decc58bbbb4cc55b3ec2173ab70001a91e51a81

6 years agoRemove unnecesary BTA redefinitions for GATT part 1 am: ab7a368f3f
Jakub Pawlowski [Tue, 26 Sep 2017 23:10:57 +0000 (23:10 +0000)]
Remove unnecesary BTA redefinitions for GATT part 1 am: ab7a368f3f
am: 336f58333f

Change-Id: I4032e3a47085fabce3aca5b2a58562a3549074d0

6 years agoRemove unnecesary BTA redefinitions for GATT part 4
Jakub Pawlowski [Tue, 26 Sep 2017 23:08:15 +0000 (23:08 +0000)]
Remove unnecesary BTA redefinitions for GATT part 4
am: 50ba9031b4

Change-Id: Iec52c13db939ccfe3da63034661ef75fcde20265

6 years agoRemove unnecesary BTA redefinitions for GATT part 3
Jakub Pawlowski [Tue, 26 Sep 2017 23:08:11 +0000 (23:08 +0000)]
Remove unnecesary BTA redefinitions for GATT part 3
am: ee9a11f903

Change-Id: Ibc1c7a7586b6b1eda5f01be22bddc6447be79133

6 years agoRemove unnecesary BTA redefinitions for GATT part 2
Jakub Pawlowski [Tue, 26 Sep 2017 23:07:04 +0000 (23:07 +0000)]
Remove unnecesary BTA redefinitions for GATT part 2
am: e9ef00c3fb

Change-Id: I052607160b33ba78f153b68e018940d602e18254

6 years agoRemove unnecesary BTA redefinitions for GATT part 1
Jakub Pawlowski [Tue, 26 Sep 2017 23:07:00 +0000 (23:07 +0000)]
Remove unnecesary BTA redefinitions for GATT part 1
am: ab7a368f3f

Change-Id: Icb345dbfb20e26275cdb77e34f5d9e214d65eb03

6 years agoRemove unnecesary BTA redefinitions for GATT part 4
Jakub Pawlowski [Tue, 26 Sep 2017 15:45:20 +0000 (08:45 -0700)]
Remove unnecesary BTA redefinitions for GATT part 4

Test: compilation test
Change-Id: Ibe37a1c6506d567b68497e8c7074d90cd73ddf00

6 years agoRemove unnecesary BTA redefinitions for GATT part 3
Jakub Pawlowski [Tue, 26 Sep 2017 01:47:54 +0000 (18:47 -0700)]
Remove unnecesary BTA redefinitions for GATT part 3

Test: compilation test
Change-Id: I8d4b8cfd35fcb5ccd7067f1e02dedd1a58efa3ad

6 years agoRemove unnecesary BTA redefinitions for GATT part 2
Jakub Pawlowski [Tue, 26 Sep 2017 00:41:21 +0000 (17:41 -0700)]
Remove unnecesary BTA redefinitions for GATT part 2

Test: compilation test
Change-Id: Iaf81188596c33b92f79f163dc95187ed5c6f52a4

6 years agoRemove unnecesary BTA redefinitions for GATT part 1
Jakub Pawlowski [Tue, 26 Sep 2017 00:24:46 +0000 (17:24 -0700)]
Remove unnecesary BTA redefinitions for GATT part 1

Test: compilation test
Change-Id: I98ab63a187684ae4ffbb0cb23e5c9e67994be468

6 years agoBuild fix after UUID refactor for stage branch am: 30be4b9f9c
Jakub Pawlowski [Tue, 26 Sep 2017 11:06:12 +0000 (11:06 +0000)]
Build fix after UUID refactor for stage branch am: 30be4b9f9c
am: 23da4b4420

Change-Id: Idbd1a4759695753ccf4e615c4c28da2acd393b3e

6 years agoBuild fix after UUID refactor for stage branch
Jakub Pawlowski [Tue, 26 Sep 2017 10:55:06 +0000 (10:55 +0000)]
Build fix after UUID refactor for stage branch
am: 30be4b9f9c

Change-Id: I65278615668f57dd0e3f91cfeb726ef291509ea2

6 years agoBuild fix after UUID refactor for stage branch
Jakub Pawlowski [Tue, 26 Sep 2017 05:19:01 +0000 (22:19 -0700)]
Build fix after UUID refactor for stage branch

Change-Id: Ia01fa17ba40d315a912c391211e101a951eab562

6 years agoresolve merge conflicts of 819e2ecb8 to stage-aosp-master
Jakub Pawlowski [Tue, 26 Sep 2017 00:15:30 +0000 (00:15 +0000)]
resolve merge conflicts of 819e2ecb8 to stage-aosp-master
am: c7897e9511

Change-Id: Ibe6c576c39cc2c4ba17fa6374fc2548ce4180f4b

6 years agoresolve merge conflicts of 819e2ecb8 to stage-aosp-master
Jakub Pawlowski [Tue, 26 Sep 2017 00:10:29 +0000 (17:10 -0700)]
resolve merge conflicts of 819e2ecb8 to stage-aosp-master

Test: I tested this conflict resolution.
Change-Id: Id915d1a9011dba4b898d47f5e6d6546079733a4c

6 years agoUse one type for UUID (1/5)
Jakub Pawlowski [Mon, 10 Jul 2017 16:56:09 +0000 (09:56 -0700)]
Use one type for UUID (1/5)

Currently, we have few different representations for UUID in stack:
tBT_UUID, tSDP_UUID, bt_uuid_t, bluetooth:UUID, or uint8_t*.

Additionally, tBT_UUID and bt_uuid_t are used to hold UUID as 128bit
as Little Endian or Big Endian, depending on which part of stack (GATT
or SDP) is using it.

This patch is creating one type, bluetooth::Uuid, that will replace all
other types.

Bug: 66912853
Test: all sl4a tests for GATT and RFCOMM
Merged-In: Ia42d3233146db0488728ed6f878f99b368fe8838
Change-Id: Ia42d3233146db0488728ed6f878f99b368fe8838

6 years agoFix build error for AVRCP13 compat fix am: 544f7e1be9
Andre Eisenbach [Fri, 22 Sep 2017 20:19:44 +0000 (20:19 +0000)]
Fix build error for AVRCP13 compat fix am: 544f7e1be9
am: 7b1e826e9c

Change-Id: I174dd3f701a429cc8c31136bfebf5314d9231c5d

6 years agoChange our AVRCP capabilities if the remote device only supports 1.3 am: c8ab11a06a
Ajay Panicker [Fri, 22 Sep 2017 20:19:39 +0000 (20:19 +0000)]
Change our AVRCP capabilities if the remote device only supports 1.3 am: c8ab11a06a
am: 38cb8be9c3

Change-Id: I8faafdb28c8a636fd8fd56756c989ed140ede55a

6 years agoFix build error for AVRCP13 compat fix
Andre Eisenbach [Fri, 22 Sep 2017 20:15:26 +0000 (20:15 +0000)]
Fix build error for AVRCP13 compat fix
am: 544f7e1be9

Change-Id: I4acd192aea9c8c72d3ad1ab6c7b3f3ccf9bb868f

6 years agoChange our AVRCP capabilities if the remote device only supports 1.3
Ajay Panicker [Fri, 22 Sep 2017 20:15:23 +0000 (20:15 +0000)]
Change our AVRCP capabilities if the remote device only supports 1.3
am: c8ab11a06a

Change-Id: I0aee338bc6c387ea6060637c74d89fa0745c40e5

6 years agoMerge "Get rid of unused _DYNAMIC_MEMORY" am: 9c268d0a54
Hansong Zhang [Fri, 22 Sep 2017 19:47:37 +0000 (19:47 +0000)]
Merge "Get rid of unused _DYNAMIC_MEMORY" am: 9c268d0a54
am: af59c61d79

Change-Id: I4c19b4b60fb8a9c85be077b034939da09fcc04b2

6 years agoMerge "Get rid of unused _DYNAMIC_MEMORY"
Hansong Zhang [Fri, 22 Sep 2017 19:44:55 +0000 (19:44 +0000)]
Merge "Get rid of unused _DYNAMIC_MEMORY"
am: 9c268d0a54

Change-Id: Ida1e0fb77241f26153648ea325284d39636ba8c2

6 years agoMerge "Get rid of unused _DYNAMIC_MEMORY"
Hansong Zhang [Fri, 22 Sep 2017 19:39:05 +0000 (19:39 +0000)]
Merge "Get rid of unused _DYNAMIC_MEMORY"

6 years agoMerge "btlinux: Fix sepolicy for split policy (Treble) builds" am: f0c8830387
Rob Herring [Fri, 22 Sep 2017 18:41:02 +0000 (18:41 +0000)]
Merge "btlinux: Fix sepolicy for split policy (Treble) builds" am: f0c8830387
am: 7c47e41e49

Change-Id: I003d87b73306c84a934d9226d5c53dc65af2f54f

6 years agoMerge "btlinux: Fix sepolicy for split policy (Treble) builds"
Rob Herring [Fri, 22 Sep 2017 18:39:01 +0000 (18:39 +0000)]
Merge "btlinux: Fix sepolicy for split policy (Treble) builds"
am: f0c8830387

Change-Id: I96784cd7c6aa31b3638edd27a6bc8437888a95a0

6 years agoMerge "btlinux: Fix sepolicy for split policy (Treble) builds"
Treehugger Robot [Fri, 22 Sep 2017 18:32:43 +0000 (18:32 +0000)]
Merge "btlinux: Fix sepolicy for split policy (Treble) builds"

6 years agoChange our AVRCP capabilities if the remote device only supports 1.3 am: 6575e1630d
Ajay Panicker [Fri, 22 Sep 2017 18:07:20 +0000 (18:07 +0000)]
Change our AVRCP capabilities if the remote device only supports 1.3 am: 6575e1630d
am: 0011bff064

Change-Id: I874e58d6404ccf520a9e0c7d1e273bb7a415052b

6 years agoBluetooth: Add AVRCP 1.3 as a developer option for AVRCP version (2/2) am: 11b4d12b95
Ajay Panicker [Fri, 22 Sep 2017 18:07:08 +0000 (18:07 +0000)]
Bluetooth: Add AVRCP 1.3 as a developer option for AVRCP version (2/2) am: 11b4d12b95
am: 7e0f03fc0a  -s ours

Change-Id: I816a78902f724cd60a253ce8b2fdf07ac065eb25

6 years agoDon't reject notifications and wait until new addressed player is ready (2/2) am...
Ajay Panicker [Fri, 22 Sep 2017 18:07:01 +0000 (18:07 +0000)]
Don't reject notifications and wait until new addressed player is ready (2/2) am: b72a002756
am: 951f1a3a1b

Change-Id: I157525b6d7b2b71d27bbc3305d5b00714e4125ca

6 years agoGet rid of unused _DYNAMIC_MEMORY
Hansong Zhang [Wed, 20 Sep 2017 16:31:32 +0000 (09:31 -0700)]
Get rid of unused _DYNAMIC_MEMORY

Removed the unused BTA_DYNAMIC_MEMORY and HID_DYNAMIC_LIBRARY

Bug: 27731905
Test: Manual
Change-Id: I6019584b165471c4058a2ec7ef8f278531153d18

6 years agoFix build error for AVRCP13 compat fix
Andre Eisenbach [Sat, 16 Sep 2017 07:22:10 +0000 (00:22 -0700)]
Fix build error for AVRCP13 compat fix

Bug: 37943083
Test: manual
Change-Id: I3974192dd007804f90f35a724a39824ed093a633
Merged-In: I6d041590dc51d7e8711b17fb1cb9c880b640052a

6 years agoChange our AVRCP capabilities if the remote device only supports 1.3
Ajay Panicker [Wed, 6 Sep 2017 16:59:51 +0000 (09:59 -0700)]
Change our AVRCP capabilities if the remote device only supports 1.3

This prevents issues with devices that only support 1.3 but can not
handle forward compatability like some Alpine Carkits.

Bug: 37943083
Test: Connect to Alpine carkit that only supports 1.3 and see new features
      are used.

Change-Id: I6d041590dc51d7e8711b17fb1cb9c880b640052a
Merged-In: I6d041590dc51d7e8711b17fb1cb9c880b640052a
(cherry picked from commit f9f1c8b449efb9cb7894a64fe2977f875679ba52)
(cherry picked from commit ff2d86ed3af91099597d033a76a143437543d6fd)

6 years agoChange our AVRCP capabilities if the remote device only supports 1.3
Ajay Panicker [Fri, 22 Sep 2017 17:16:24 +0000 (17:16 +0000)]
Change our AVRCP capabilities if the remote device only supports 1.3
am: 6575e1630d

Change-Id: I7cd19034fd4bf513c4ec9a5b07b8ac5508651cd7

6 years agoBluetooth: Add AVRCP 1.3 as a developer option for AVRCP version (2/2)
Ajay Panicker [Fri, 22 Sep 2017 17:16:15 +0000 (17:16 +0000)]
Bluetooth: Add AVRCP 1.3 as a developer option for AVRCP version (2/2)
am: 11b4d12b95

Change-Id: Idda00ee6b53c92c66a9ca4bbb0007319921f0f8a

6 years agoDon't reject notifications and wait until new addressed player is ready (2/2)
Ajay Panicker [Fri, 22 Sep 2017 17:16:08 +0000 (17:16 +0000)]
Don't reject notifications and wait until new addressed player is ready (2/2)
am: b72a002756

Change-Id: Ia004dcaf31a939f58b8624fcb7b2e239df469078

6 years agoChange our AVRCP capabilities if the remote device only supports 1.3
Ajay Panicker [Wed, 6 Sep 2017 16:59:51 +0000 (09:59 -0700)]
Change our AVRCP capabilities if the remote device only supports 1.3

This prevents issues with devices that only support 1.3 but can not
handle forward compatability like some Alpine Carkits.

Bug: 37943083
Test: Connect to Alpine carkit that only supports 1.3 and see new features
      are used.

Change-Id: I6d041590dc51d7e8711b17fb1cb9c880b640052a
(cherry picked from commit f9f1c8b449efb9cb7894a64fe2977f875679ba52)

6 years agoBluetooth: Add AVRCP 1.3 as a developer option for AVRCP version (2/2)
Ajay Panicker [Fri, 1 Sep 2017 19:07:42 +0000 (12:07 -0700)]
Bluetooth: Add AVRCP 1.3 as a developer option for AVRCP version (2/2)

This is requied for the 2012 Mazda 3 carkit as the carkit refuses to send
AVRCP commands other than passthrough commands when the version is anything
else. AVRCP 1.3 is compatible with most carkits on the market and can be
used to get most carkits working at the cost of losing many features.

Bug: 37943083
Test: Set AVRCP 1.3 in developer options and see that SDP and the AVRCP
      capabilites have updated to reflect this.
      TestTracker: 105915/3975

Change-Id: Iffc7ed1dd91eecb699153125b25451de5826f202
(cherry picked from commit 2369a95e6ed0c16f61237fe9c1fc5a90d97129c1)

6 years agoDon't reject notifications and wait until new addressed player is ready (2/2)
Ajay Panicker [Wed, 30 Aug 2017 01:30:43 +0000 (18:30 -0700)]
Don't reject notifications and wait until new addressed player is ready (2/2)

There are some carkits like the ones found in the 2016 Honda CRZ and some
Audi's that do not follow the spec and do not honor reject pending notification
messages after switching players. This causes an issue whenever you switch
players, the metadata freezes due to the fact that the carkit never re-registers
for new track changed notifications. This patch removes the reject notification
and reorders the current notifications.

Bug: 64142363
Test: Test with Audi S7 and 2016 Honda CRZ and see that switching players works
      TestTracker: 105391/3975
Change-Id: Iaec70863594e13217916ab740d529f526d27c2d1
(cherry picked from commit dd535e70c767fe214c1634b46618d0fb5ed4385d)

6 years agoGAP: Set service_id before calling gap_release_ccb am: 4c6208fd2d
Myles Watson [Thu, 21 Sep 2017 22:01:26 +0000 (22:01 +0000)]
GAP: Set service_id before calling gap_release_ccb am: 4c6208fd2d
am: acf7e8e1ac

Change-Id: I802897e8f613f1f19bd7b2a06b3dc818041f71a1

6 years agoGAP: Set service_id before calling gap_release_ccb
Myles Watson [Thu, 21 Sep 2017 21:52:54 +0000 (21:52 +0000)]
GAP: Set service_id before calling gap_release_ccb
am: 4c6208fd2d

Change-Id: I705d78e301414308a7150a20576f61a9e95f35c3

6 years agoGAP: Set service_id before calling gap_release_ccb
Myles Watson [Thu, 14 Sep 2017 21:13:44 +0000 (14:13 -0700)]
GAP: Set service_id before calling gap_release_ccb

Calling gap_release_ccb with a service_id == 0, which in turn
calls BTM_SecClrService with an ID of 0.

From the documentation for BTM_SecClrService:

  Service ID - Id of the service to remove. '0' removes all
               service records (except SDP).

Bug: 6569576965223508
Test: BLE connection and characteristic read
Change-Id: Icf309807f02e1faa273cf9bad9c09d9221a8bbfd
(cherry picked from commit 5c5c10683e2a11162838297fc8054b15837c4f32)
(cherry picked from commit 4023c6731d5e991c6202d4e499b9dd43d642fb3c)

6 years agoGet rid of libhardware dependency in native daemon am: 8c273b3700
Jakub Pawlowski [Wed, 20 Sep 2017 22:34:30 +0000 (22:34 +0000)]
Get rid of libhardware dependency in native daemon am: 8c273b3700
am: 7959aec405

Change-Id: I556ef243394b01a6889bd7a6c0a4a116fe8653ef

6 years agoGet rid of libhardware dependency in native daemon
Jakub Pawlowski [Wed, 20 Sep 2017 22:32:26 +0000 (22:32 +0000)]
Get rid of libhardware dependency in native daemon
am: 8c273b3700

Change-Id: I9b2d7c3dd6cf7bbd0fcc5c6e39cf9ebf1d68e7aa

6 years agoLoosen libhardware dependency am: b1aa65fbb3
Jakub Pawlowski [Wed, 20 Sep 2017 21:55:23 +0000 (21:55 +0000)]
Loosen libhardware dependency am: b1aa65fbb3
am: 9a586e4b53

Change-Id: Iec1bd55eb4515b1e58daacae7837dde66572d0c8

6 years agoLoosen libhardware dependency
Jakub Pawlowski [Wed, 20 Sep 2017 21:53:23 +0000 (21:53 +0000)]
Loosen libhardware dependency
am: b1aa65fbb3

Change-Id: Icd6842ffc2f5411c5f41c2c811b124b78796d3af

6 years agoGet rid of libhardware dependency in native daemon
Jakub Pawlowski [Wed, 20 Sep 2017 20:52:11 +0000 (13:52 -0700)]
Get rid of libhardware dependency in native daemon

Test: compilation test
Bug: 66187274
Change-Id: I97ee33a55315f44dc03083d1a8da9a38d5619725

6 years agoLoosen libhardware dependency
Jakub Pawlowski [Wed, 20 Sep 2017 20:16:11 +0000 (13:16 -0700)]
Loosen libhardware dependency

In most places we don't really need the libhardware library, just the
headers.

Bug: 66187274
Test: compilation test
Change-Id: Ifa2f547165fcf8b34bc29ab80d2bd12ce02f4ae1

6 years agoEnable extra A2DP control log messages am: 7b67302a28
Pavlin Radoslavov [Wed, 20 Sep 2017 19:49:14 +0000 (19:49 +0000)]
Enable extra A2DP control log messages am: 7b67302a28
am: 98c3a8e046

Change-Id: Icfd063f42b0cf78dc5b3971a1a3f8dc9800cfc01

6 years agoEnable extra A2DP control log messages
Pavlin Radoslavov [Wed, 20 Sep 2017 19:47:14 +0000 (19:47 +0000)]
Enable extra A2DP control log messages
am: 7b67302a28

Change-Id: I0247ee2d4e174b46df2d6c9f37b666fbe3b969f3

6 years agoEnable extra A2DP control log messages
Pavlin Radoslavov [Wed, 20 Sep 2017 03:29:33 +0000 (20:29 -0700)]
Enable extra A2DP control log messages

Also, fixed a log message when failed to accept the
corresponding socket socket.

Test: manual
Bug: 63949429
Change-Id: I6d9af32f61974a739d179c37da36c360aefcca79

6 years agoBLE Adv RPA is not updated on first timeout am: de1203d8cc
Sunny Kapdi [Tue, 19 Sep 2017 20:03:39 +0000 (20:03 +0000)]
BLE Adv RPA is not updated on first timeout am: de1203d8cc
am: 33f363e634

Change-Id: I89c2c80b03b77e5a5b7e216e9a286887d1306e57

6 years agoBLE Adv RPA is not updated on first timeout
Sunny Kapdi [Tue, 19 Sep 2017 20:01:39 +0000 (20:01 +0000)]
BLE Adv RPA is not updated on first timeout
am: de1203d8cc

Change-Id: I20fa5876f0d091a680ae4028e63a50051f390b8e

6 years agoBLE Adv RPA is not updated on first timeout
Sunny Kapdi [Tue, 19 Sep 2017 01:14:13 +0000 (18:14 -0700)]
BLE Adv RPA is not updated on first timeout

BLE Advertisement RPA is getting updated with the
same RPA instead of the newly generated RPA on the
first timeout. Make sure to send the newly generated
RPA to the Controller.

CRs-Fixed: 2111232
Bug: 65857055
Change-Id: I4d8e95c26fe8e5944fdee32089b8fcaffa238367

6 years agobtlinux: Fix sepolicy for split policy (Treble) builds
Rob Herring [Mon, 18 Sep 2017 14:25:58 +0000 (09:25 -0500)]
btlinux: Fix sepolicy for split policy (Treble) builds

In full Treble builds, the btlinux HAL fails to build the sepolicy:

neverallow check failed at out/target/product/linaro_x86_64/obj/ETC/plat_sepolicy.cil_intermediates/plat_sepolicy.cil:4518
from system/sepolicy/public/domain.te:673
  (neverallow base_typeattr_55 base_typeattr_56 (file (execute execute_no_trans entrypoint)))
    <root>
    allow at out/target/product/linaro_x86_64/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_sepolicy.cil:6054
      (allow hal_bluetooth_btlinux hal_bluetooth_btlinux_exec (file (read getattr map execute entrypoint open)))

Test: Build completes successfully
Change-Id: Ibb8dbe7f2ca823c87ae4404c40cdc35656c8e0af
Signed-off-by: Rob Herring <robh@kernel.org>
6 years agoFix build error for AVRCP13 compat fix
Andre Eisenbach [Sat, 16 Sep 2017 15:27:43 +0000 (15:27 +0000)]
Fix build error for AVRCP13 compat fix
am: ab0fec08a4

Change-Id: Ia47840da1e2536eb5a8d226771a9baff8c0a277a

6 years agoChange our AVRCP capabilities if the remote device only supports 1.3
Ajay Panicker [Sat, 16 Sep 2017 15:27:38 +0000 (15:27 +0000)]
Change our AVRCP capabilities if the remote device only supports 1.3
am: ff2d86ed3a

Change-Id: I8787fd127a2e02c195d76d4d6c60756c4b16dfd4

6 years agoFix build error for AVRCP13 compat fix
Andre Eisenbach [Sat, 16 Sep 2017 07:22:10 +0000 (00:22 -0700)]
Fix build error for AVRCP13 compat fix

Bug: 37943083
Test: manual
Change-Id: I3974192dd007804f90f35a724a39824ed093a633
Merged-In: I6d041590dc51d7e8711b17fb1cb9c880b640052a

6 years agoChange our AVRCP capabilities if the remote device only supports 1.3
Ajay Panicker [Wed, 6 Sep 2017 16:59:51 +0000 (09:59 -0700)]
Change our AVRCP capabilities if the remote device only supports 1.3

This prevents issues with devices that only support 1.3 but can not
handle forward compatability like some Alpine Carkits.

Bug: 37943083
Test: Connect to Alpine carkit that only supports 1.3 and see new features
      are used.

Change-Id: I6d041590dc51d7e8711b17fb1cb9c880b640052a
Merged-In: I6d041590dc51d7e8711b17fb1cb9c880b640052a
(cherry picked from commit f9f1c8b449efb9cb7894a64fe2977f875679ba52)

6 years agoMerge "Clean-up BTIF profile queue on profile shutdown" am: 643c869ca2
Jack He [Sat, 16 Sep 2017 06:30:37 +0000 (06:30 +0000)]
Merge "Clean-up BTIF profile queue on profile shutdown" am: 643c869ca2
am: 0ee292a4d0

Change-Id: I9fdffd82475266ea2fae4fb65f039ec81775e521

6 years agoMerge "Clean-up BTIF profile queue on profile shutdown"
Jack He [Sat, 16 Sep 2017 06:27:37 +0000 (06:27 +0000)]
Merge "Clean-up BTIF profile queue on profile shutdown"
am: 643c869ca2

Change-Id: I7c22ae8dd883edacbe532f93d9e6a279f168d5ac

6 years agoDO NOT MERGE Fix unknown type issue in unit tests
Jack He [Sat, 16 Sep 2017 06:25:13 +0000 (06:25 +0000)]
DO NOT MERGE Fix unknown type issue in unit tests
am: 9b4aebb1ba  -s ours

Change-Id: Ief005c60c2372c1b8fa95a3a4459147f6e2009b0

6 years agoClean-up BTIF profile queue on profile shutdown
Jack He [Sat, 16 Sep 2017 06:25:07 +0000 (06:25 +0000)]
Clean-up BTIF profile queue on profile shutdown
am: a2d0cbc35a

Change-Id: I42e2f4d5e273c83c4e935b0263b707b5442ec619

6 years agoMerge "Clean-up BTIF profile queue on profile shutdown"
Treehugger Robot [Sat, 16 Sep 2017 06:24:09 +0000 (06:24 +0000)]
Merge "Clean-up BTIF profile queue on profile shutdown"

6 years agoDO NOT MERGE Fix unknown type issue in unit tests
Jack He [Sat, 16 Sep 2017 01:03:29 +0000 (18:03 -0700)]
DO NOT MERGE Fix unknown type issue in unit tests

Bug: 63790458
Test: build, unit test
Change-Id: If5e403907292aa25c8d39b17f2f1818d493433e6
Merged-In: I28288c295b7ca0259b2112c11b4e5a81d6f2e33c