OSDN Git Service

android-x86/system-bt.git
5 years agoAdd OOB check in avrc_pars_browse_rsp am: f44cbb20e7 am: 45a3f8a6fd am: 845fc7c234
Ugo Yu [Fri, 30 Nov 2018 21:39:23 +0000 (13:39 -0800)]
Add OOB check in avrc_pars_browse_rsp am: f44cbb20e7 am: 45a3f8a6fd am: 845fc7c234
am: f7d26fe477

Change-Id: I18e346ddf845ea055610457effb51437b6bb8fec

5 years agoAdd OOB check in avrc_pars_browse_rsp am: f44cbb20e7 am: 45a3f8a6fd
Ugo Yu [Fri, 30 Nov 2018 21:27:11 +0000 (13:27 -0800)]
Add OOB check in avrc_pars_browse_rsp am: f44cbb20e7 am: 45a3f8a6fd
am: 845fc7c234

Change-Id: I4e6e5da28d3aaa25c9f5522385ae098b4c8362cc

5 years agoAdd OOB check in avrc_pars_browse_rsp am: f44cbb20e7
Ugo Yu [Fri, 30 Nov 2018 21:23:05 +0000 (13:23 -0800)]
Add OOB check in avrc_pars_browse_rsp am: f44cbb20e7
am: 45a3f8a6fd

Change-Id: Ibb3ff9d8915ab9129e890b04848dd78891262e28

5 years agoAdd OOB check in avrc_pars_browse_rsp
Ugo Yu [Fri, 30 Nov 2018 21:13:52 +0000 (13:13 -0800)]
Add OOB check in avrc_pars_browse_rsp
am: f44cbb20e7

Change-Id: Ieabff141ded21319a946fa0829bdb60cdedd8e9b

5 years agoAdd OOB check in avrc_pars_browse_rsp
Ugo Yu [Tue, 13 Nov 2018 12:03:28 +0000 (20:03 +0800)]
Add OOB check in avrc_pars_browse_rsp

Bug: 111451066
Test: Manully
Change-Id: I068d218b8957bb8f053148d252a9119a8def28cc

5 years agoMerge "Metrics: Add Bluetooth address obfuscator" am: 17d56d8962
Jack He [Fri, 30 Nov 2018 08:56:45 +0000 (00:56 -0800)]
Merge "Metrics: Add Bluetooth address obfuscator" am: 17d56d8962
am: 14b03ef16c

Change-Id: Ib9300993c257b2b8814dbab3aa476af40da9941e

5 years agoMerge "Assert if alarm callback is null" am: dec5621902
Stanley Tng [Fri, 30 Nov 2018 08:39:02 +0000 (00:39 -0800)]
Merge "Assert if alarm callback is null" am: dec5621902
am: 14f7e98eeb

Change-Id: I46dbff26e2c350adeb19eb4efce36feed78d0b7f

5 years agoMerge "Metrics: Add Bluetooth address obfuscator"
Jack He [Fri, 30 Nov 2018 08:37:43 +0000 (00:37 -0800)]
Merge "Metrics: Add Bluetooth address obfuscator"
am: 17d56d8962

Change-Id: I02e0c1a734e55ead434c7e0b3a1696a03eaa027d

5 years agoMerge "Assert if alarm callback is null"
Stanley Tng [Fri, 30 Nov 2018 08:19:30 +0000 (00:19 -0800)]
Merge "Assert if alarm callback is null"
am: dec5621902

Change-Id: I4241a172b6245bd7fdb4837c494882b8ea03416f

5 years agoMerge "Metrics: Add Bluetooth address obfuscator"
Treehugger Robot [Fri, 30 Nov 2018 07:59:20 +0000 (07:59 +0000)]
Merge "Metrics: Add Bluetooth address obfuscator"

5 years agoMerge "Assert if alarm callback is null"
Treehugger Robot [Fri, 30 Nov 2018 01:58:17 +0000 (01:58 +0000)]
Merge "Assert if alarm callback is null"

5 years agoMetrics: Add Bluetooth address obfuscator
Jack He [Fri, 16 Nov 2018 10:59:43 +0000 (02:59 -0800)]
Metrics: Add Bluetooth address obfuscator

* Add an address obfuscator that takes a 256-bit randomly generated
  salt and hashes a Bluetooth MAC address using HMAC-SHA256 algorithm
* The salt is generated per Android device during the first time
  Fluoride native layer is initialized after a connectivity reset
* The output of the above operation is an unique identifier for a
  Bluetooth device on the same Android device, but yet remains
  anonymous across different Android devices.
* Add a logging method loghex(std::array) that allows dumping integral
  arrays into a hex string
* Add more error logging to btif_config_get_bin() so that we know why it
  fails in the future
* Change mutex in btif_config to recursive_mutex to avoid deadlock when
  calling btif_config API functions with API function

Bug: 112969790
Test: mm -j40, bluetooth_test_common
Change-Id: I11f01cc82fe805c97fd7c86ad83b3d324ee5af53

5 years agoAssert if alarm callback is null
Stanley Tng [Mon, 26 Nov 2018 22:44:38 +0000 (14:44 -0800)]
Assert if alarm callback is null

Crash the system when callback is null. This will help to identify and debug the problem. Previously, we got a CFI crash which is hard to isolate.

Test: Run with Hearing Aids but did not simulate the error condition
Bug: 119533256
Change-Id: I9bc2af7c3c405bea3a57c5feb9b213614484507f

5 years ago[automerger skipped] [automerger] Fix buffer overflow in btif_dm_data_copy am: d11797...
Jakub Pawlowski [Thu, 29 Nov 2018 13:49:26 +0000 (05:49 -0800)]
[automerger skipped] [automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f am: 98ced409a5 am: c75667da96 skipped: 89e9bbb83c am: 2f53d6ce3c  -s ours am: 9eac53f263  -s ours am: 8e403606f1  -s ours
am: 6b408d20b7  -s ours

Change-Id: Ia9b372bba8528c6c9f34b6d5fc5a3bec900f4c98

5 years ago[automerger skipped] [automerger] Fix buffer overflow in btif_dm_data_copy am: d11797...
Jakub Pawlowski [Thu, 29 Nov 2018 13:41:21 +0000 (05:41 -0800)]
[automerger skipped] [automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f am: 98ced409a5 am: c75667da96 skipped: 89e9bbb83c am: 2f53d6ce3c  -s ours am: 9eac53f263  -s ours
am: 8e403606f1  -s ours

Change-Id: Ie3788a8388c6a2fb00969e3b56c0637be82dc092

5 years ago[automerger skipped] [automerger] Fix buffer overflow in btif_dm_data_copy am: d11797...
Jakub Pawlowski [Thu, 29 Nov 2018 13:35:18 +0000 (05:35 -0800)]
[automerger skipped] [automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f am: 98ced409a5 am: c75667da96 skipped: 89e9bbb83c am: 2f53d6ce3c  -s ours
am: 9eac53f263  -s ours

Change-Id: I2eed02578d152324e7aa9281e55c3066a4645b33

5 years ago[automerger skipped] [automerger] Fix buffer overflow in btif_dm_data_copy am: d11797...
Jakub Pawlowski [Thu, 29 Nov 2018 13:31:11 +0000 (05:31 -0800)]
[automerger skipped] [automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f am: 98ced409a5 am: c75667da96 skipped: 89e9bbb83c
am: 2f53d6ce3c  -s ours

Change-Id: If82ef8a6331a62d932eeb3dffaee577ee7d7ea25

5 years ago[automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f...
Android Build Merger (Role) [Thu, 29 Nov 2018 11:52:36 +0000 (11:52 +0000)]
[automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f am: 98ced409a5 am: c75667da96 skipped: 89e9bbb83c

Change-Id: Ia431ddd5ad1d6ee86bd6edd1057372b8dbf51d3b

5 years ago[automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f...
Android Build Merger (Role) [Thu, 29 Nov 2018 11:51:42 +0000 (11:51 +0000)]
[automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f am: 98ced409a5 am: c75667da96

Change-Id: I0e5f1348f27f0d9981f99cc0897f9dcc9f443bf3

5 years ago[automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f...
Android Build Merger (Role) [Thu, 29 Nov 2018 11:51:39 +0000 (11:51 +0000)]
[automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f am: 98ced409a5

Change-Id: I258a6e883061d68b24b30e17e03f72d2000e5f3f

5 years ago[automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f
Android Build Merger (Role) [Thu, 29 Nov 2018 11:51:37 +0000 (11:51 +0000)]
[automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904 am: 12d8535d0f

Change-Id: I22ea297e564616790fd7e916747cdcea25d2b068

5 years ago[automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904
Android Build Merger (Role) [Thu, 29 Nov 2018 11:51:34 +0000 (11:51 +0000)]
[automerger] Fix buffer overflow in btif_dm_data_copy am: d117975904

Change-Id: Icbd5b31039dbf3016575f9d6d69b216d76564c96

5 years agoFix buffer overflow in btif_dm_data_copy
Jakub Pawlowski [Tue, 27 Nov 2018 16:59:57 +0000 (17:59 +0100)]
Fix buffer overflow in btif_dm_data_copy

When we use a union, we should always define variables as the union type,
not as one of the field subtypes. If the latter is cast to the union type,
buffer overflow can happen.

Bug: 110166268
Test: compilation
Change-Id: I473c03b099ad5a326e7a3739f65efd33cf4775bd
Merged-In: I473c03b099ad5a326e7a3739f65efd33cf4775bd

5 years ago[automerger skipped] Fix buffer overflow in btif_dm_data_copy am: 969b2df3a0 am:...
Jakub Pawlowski [Thu, 29 Nov 2018 09:54:13 +0000 (01:54 -0800)]
[automerger skipped] Fix buffer overflow in btif_dm_data_copy am: 969b2df3a0 am: 1087c5291a  -s ours am: 0dce8b5287  -s ours
am: 469606d73e  -s ours

Change-Id: Ibb7aa6995d609a1393d83dff1fe3692d1352d5a6

5 years ago[automerger skipped] Fix buffer overflow in btif_dm_data_copy am: 969b2df3a0 am:...
Jakub Pawlowski [Thu, 29 Nov 2018 09:46:06 +0000 (01:46 -0800)]
[automerger skipped] Fix buffer overflow in btif_dm_data_copy am: 969b2df3a0 am: 1087c5291a  -s ours
am: 0dce8b5287  -s ours

Change-Id: Ie4a34e3043f232105344fbe6060d175d502f92ee

5 years ago[automerger skipped] Fix buffer overflow in btif_dm_data_copy am: 969b2df3a0
Jakub Pawlowski [Thu, 29 Nov 2018 09:39:01 +0000 (01:39 -0800)]
[automerger skipped] Fix buffer overflow in btif_dm_data_copy am: 969b2df3a0
am: 1087c5291a  -s ours

Change-Id: I40657cf9ce6ae8ffe3d2d568aaeb34668da84292

5 years agoFix buffer overflow in btif_dm_data_copy
Jakub Pawlowski [Thu, 29 Nov 2018 09:33:56 +0000 (01:33 -0800)]
Fix buffer overflow in btif_dm_data_copy
am: 969b2df3a0

Change-Id: Icc0b739672cf0683edf9bfc5d8244b1ceb87a1b6

5 years agoFix buffer overflow in btif_dm_data_copy
Jakub Pawlowski [Tue, 27 Nov 2018 17:22:22 +0000 (18:22 +0100)]
Fix buffer overflow in btif_dm_data_copy

When we use a union, we should always define variables as the union type,
not as one of the field subtypes. If the latter is cast to the union type,
buffer overflow can happen.

Bug: 110166268
Test: compilation
Change-Id: I473c03b099ad5a326e7a3739f65efd33cf4775bd
Merged-In: I473c03b099ad5a326e7a3739f65efd33cf4775bd

5 years ago[automerger skipped] Fix buffer overflow in btif_dm_data_copy am: 64c6f33e7e -s...
Jakub Pawlowski [Thu, 29 Nov 2018 01:00:42 +0000 (17:00 -0800)]
[automerger skipped] Fix buffer overflow in btif_dm_data_copy am: 64c6f33e7e  -s ours
am: 941cd93604  -s ours

Change-Id: Ie589ca00cc181e250c563760f5b20803169b832c

5 years ago[automerger skipped] Fix buffer overflow in btif_dm_data_copy
Jakub Pawlowski [Thu, 29 Nov 2018 00:47:17 +0000 (16:47 -0800)]
[automerger skipped] Fix buffer overflow in btif_dm_data_copy
am: 64c6f33e7e  -s ours

Change-Id: I9e2836c4af3225954fc27961431fcc79f96db072

5 years ago[automerger skipped] Fix buffer overflow in btif_dm_data_copy
Jakub Pawlowski [Wed, 28 Nov 2018 22:30:47 +0000 (14:30 -0800)]
[automerger skipped] Fix buffer overflow in btif_dm_data_copy
am: ea90417d99  -s ours

Change-Id: Idf41fde0fc9fd67066c05f22f70493035b63fef0

5 years agoFix buffer overflow in btif_dm_data_copy
Jakub Pawlowski [Tue, 27 Nov 2018 17:22:22 +0000 (18:22 +0100)]
Fix buffer overflow in btif_dm_data_copy

When we use a union, we should always define variables as the union type,
not as one of the field subtypes. If the latter is cast to the union type,
buffer overflow can happen.

Bug: 110166268
Test: compilation
Change-Id: I473c03b099ad5a326e7a3739f65efd33cf4775bd
Merged-In: I473c03b099ad5a326e7a3739f65efd33cf4775bd

5 years agoAllow Resolvable Private Address into LE White List am: eb976adf47
Jakub Pawlowski [Wed, 28 Nov 2018 21:41:52 +0000 (13:41 -0800)]
Allow Resolvable Private Address into LE White List am: eb976adf47
am: c360868622

Change-Id: If05792fff362c7d4e79db45ff83d62a9c4939a59

5 years agoAllow Resolvable Private Address into LE White List
Jakub Pawlowski [Wed, 28 Nov 2018 21:31:27 +0000 (13:31 -0800)]
Allow Resolvable Private Address into LE White List
am: eb976adf47

Change-Id: I701e05e417ae2c30491660faaf9de97c3c07beb7

5 years agoFix buffer overflow in btif_dm_data_copy
Jakub Pawlowski [Tue, 27 Nov 2018 17:22:22 +0000 (18:22 +0100)]
Fix buffer overflow in btif_dm_data_copy

When we use a union, we should always define variables as the union type,
not as one of the field subtypes. If the latter is cast to the union type,
buffer overflow can happen.

Bug: 110166268
Test: compilation
Change-Id: I473c03b099ad5a326e7a3739f65efd33cf4775bd
Merged-In: I473c03b099ad5a326e7a3739f65efd33cf4775bd

5 years agoCentralize call to gatt_update_app_use_link_flag for GATT_Connect am: 8c2f8384a8
Jakub Pawlowski [Wed, 28 Nov 2018 20:13:42 +0000 (12:13 -0800)]
Centralize call to gatt_update_app_use_link_flag for GATT_Connect am: 8c2f8384a8
am: 0ed98b36cb

Change-Id: Ie6014af62b987ffbdf71bc8a2bb34fe3b3cfdca4

5 years agoCentralize call to gatt_update_app_use_link_flag for GATT_Connect
Jakub Pawlowski [Wed, 28 Nov 2018 19:55:18 +0000 (11:55 -0800)]
Centralize call to gatt_update_app_use_link_flag for GATT_Connect
am: 8c2f8384a8

Change-Id: Icb9fd21e6af43dc4d31afba64bd58655a8f6ff5a

5 years agoAllow Resolvable Private Address into LE White List
Jakub Pawlowski [Thu, 15 Nov 2018 22:22:21 +0000 (23:22 +0100)]
Allow Resolvable Private Address into LE White List

When doing background connection, we don't want to put RPA into the
white list, as it might expire in 15 minutes.
For direct connect procedure, RPA is ok - the request times out after 30
seconds.

This patch moves address type check from the White List to the background
connection procedure. It is prepearation for handling direct connect
with white list.

Bug: 112827989
Test: sl4a GattConnectTest
Change-Id: I907ad44d1d255c9212ed58112bb8b99464e46f43

5 years agoCentralize call to gatt_update_app_use_link_flag for GATT_Connect
Jakub Pawlowski [Tue, 13 Nov 2018 17:31:08 +0000 (18:31 +0100)]
Centralize call to gatt_update_app_use_link_flag for GATT_Connect

Currently both code paths, doing direct and background connection, call
gatt_update_app_use_link_flag. Move this call to common code.

Bug: 112827989
Test: sl4a GattConnectTest
Change-Id: I5d55f6467ffca78ff785ecdad02dd049ea5481bf

5 years ago[automerger skipped] [automerger] Fix potential usage of freed memory in btif_hl_proc...
Jakub Pawlowski [Tue, 27 Nov 2018 21:37:02 +0000 (13:37 -0800)]
[automerger skipped] [automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 78508d2c2c am: a236f16071 am: 3f5af0aa65 am: 12557bb999 skipped: 2470706409 am: d2dd0bacbc  -s ours am: 1062b94226  -s ours am: 54f6c84dfd  -s ours
am: 4f54a847d5  -s ours

Change-Id: I25fd7b09fed990b9178205bd013e2886d78889ca

5 years ago[automerger skipped] [automerger] Fix potential usage of freed memory in btif_hl_proc...
Jakub Pawlowski [Tue, 27 Nov 2018 21:29:49 +0000 (13:29 -0800)]
[automerger skipped] [automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 78508d2c2c am: a236f16071 am: 3f5af0aa65 am: 12557bb999 skipped: 2470706409 am: d2dd0bacbc  -s ours am: 1062b94226  -s ours
am: 54f6c84dfd  -s ours

Change-Id: I4cb634d3c98dabfdc6f1d95f6c1ff348f954ddd4

5 years ago[automerger skipped] [automerger] Fix potential usage of freed memory in btif_hl_proc...
Jakub Pawlowski [Tue, 27 Nov 2018 21:24:43 +0000 (13:24 -0800)]
[automerger skipped] [automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 78508d2c2c am: a236f16071 am: 3f5af0aa65 am: 12557bb999 skipped: 2470706409 am: d2dd0bacbc  -s ours
am: 1062b94226  -s ours

Change-Id: Ic8bab7e79d802eca8efda8a613f83e465e2a4e81

5 years ago[automerger skipped] [automerger] Fix potential usage of freed memory in btif_hl_proc...
Jakub Pawlowski [Tue, 27 Nov 2018 21:14:37 +0000 (13:14 -0800)]
[automerger skipped] [automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 78508d2c2c am: a236f16071 am: 3f5af0aa65 am: 12557bb999 skipped: 2470706409
am: d2dd0bacbc  -s ours

Change-Id: If276bb160498a352e02bdb6231ac8fed8142aec4

5 years ago[automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am...
Android Build Merger (Role) [Tue, 27 Nov 2018 20:09:16 +0000 (20:09 +0000)]
[automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 78508d2c2c am: a236f16071 am: 3f5af0aa65 am: 12557bb999 skipped: 2470706409

Change-Id: Id4bfbba911ecb95c728e1daba294fefc9d1de4ce

5 years ago[automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am...
Android Build Merger (Role) [Tue, 27 Nov 2018 16:47:48 +0000 (16:47 +0000)]
[automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 78508d2c2c am: a236f16071 am: 3f5af0aa65 am: 12557bb999

Change-Id: I1ecbacc502b14733b0f4bd11b057763506b1fd95

5 years ago[automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am...
Android Build Merger (Role) [Tue, 27 Nov 2018 16:47:45 +0000 (16:47 +0000)]
[automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 78508d2c2c am: a236f16071 am: 3f5af0aa65

Change-Id: I98ae5ab9e24acd447c0c72835067db0bc7430371

5 years ago[automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am...
Android Build Merger (Role) [Tue, 27 Nov 2018 16:47:42 +0000 (16:47 +0000)]
[automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 78508d2c2c am: a236f16071

Change-Id: I8615cedf8b9192c46506c54934229089021fe101

5 years ago[automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am...
Android Build Merger (Role) [Tue, 27 Nov 2018 16:47:40 +0000 (16:47 +0000)]
[automerger] Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 78508d2c2c

Change-Id: If8da202c56ee7deeb7aba67f59b19ef28466f6ae

5 years agoFix potential usage of freed memory in btif_hl_proc_sdp_query_cfm
Jakub Pawlowski [Tue, 20 Nov 2018 21:31:31 +0000 (22:31 +0100)]
Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm

Bug: 116222069
Test: compilation
Change-Id: Iebe2c500dfc2806ca321fdcd170e20c680619d4d
Merged-In: Iebe2c500dfc2806ca321fdcd170e20c680619d4d

5 years agoFix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 889efd5b91...
Jakub Pawlowski [Tue, 27 Nov 2018 16:35:41 +0000 (08:35 -0800)]
Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 889efd5b91 am: 934213ef03 am: 6135f03864
am: 0b614505ea

Change-Id: I45a9c30088070257424fc3089f6808b9b96bc7b7

5 years agoFix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 889efd5b91...
Jakub Pawlowski [Tue, 27 Nov 2018 16:31:14 +0000 (08:31 -0800)]
Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 889efd5b91 am: 934213ef03
am: 6135f03864

Change-Id: I72d0554197d85b6d63b37c09e67083a21b98ef32

5 years agoFix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 889efd5b91
Jakub Pawlowski [Tue, 27 Nov 2018 16:23:09 +0000 (08:23 -0800)]
Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm am: 889efd5b91
am: 934213ef03

Change-Id: Ic9ff7d53321c6c7b39f32dc043050f1467a1233d

5 years agoFix potential usage of freed memory in btif_hl_proc_sdp_query_cfm
Jakub Pawlowski [Tue, 27 Nov 2018 16:19:03 +0000 (08:19 -0800)]
Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm
am: 889efd5b91

Change-Id: If3ae150367def015874bebb60c2fca763f01133f

5 years agoMerge "HFP: support pause character "Comma" in acceptable dial digit string" into...
jonerlin [Mon, 26 Nov 2018 21:23:02 +0000 (13:23 -0800)]
Merge "HFP: support pause character "Comma" in acceptable dial digit string" into pi-dev
am: 2cb7fadb95

Change-Id: If0c2fb56913c06483a5ac51e9f41e1063c62c924

5 years agoMerge "HFP: support pause character "Comma" in acceptable dial digit string" into...
TreeHugger Robot [Mon, 26 Nov 2018 21:10:41 +0000 (21:10 +0000)]
Merge "HFP: support pause character "Comma" in acceptable dial digit string" into pi-dev

5 years agoMerge "Prevent potential deadlock in Hearing Aids" am: 2fb03d8470
Stanley Tng [Wed, 21 Nov 2018 21:39:08 +0000 (13:39 -0800)]
Merge "Prevent potential deadlock in Hearing Aids" am: 2fb03d8470
am: 35b7a921bf

Change-Id: I8a93e3fa0d46fd30b4c9f326e08f710002e57722

5 years agoMerge "HFP: Send caller ID in +CLIP command (3/4)" am: 0bcf573d91
Benson Li [Wed, 21 Nov 2018 21:23:36 +0000 (13:23 -0800)]
Merge "HFP: Send caller ID in +CLIP command (3/4)" am: 0bcf573d91
am: 763e282d78

Change-Id: Ib878dd4534d9ed2a287273f74cbde6eefc3961d7

5 years agoMerge "Prevent potential deadlock in Hearing Aids"
Stanley Tng [Wed, 21 Nov 2018 21:03:03 +0000 (13:03 -0800)]
Merge "Prevent potential deadlock in Hearing Aids"
am: 2fb03d8470

Change-Id: Id16264dd2cd55ab730323ed0d95adde1cb88431a

5 years agoMerge "HFP: Send caller ID in +CLIP command (3/4)"
Benson Li [Wed, 21 Nov 2018 20:57:56 +0000 (12:57 -0800)]
Merge "HFP: Send caller ID in +CLIP command (3/4)"
am: 0bcf573d91

Change-Id: Ib4d00ef1e727613a4363226115137f700464fe82

5 years agoMerge "Prevent potential deadlock in Hearing Aids"
Treehugger Robot [Wed, 21 Nov 2018 20:52:18 +0000 (20:52 +0000)]
Merge "Prevent potential deadlock in Hearing Aids"

5 years agoMerge "btsock_signaled: provide debugging info for crash" am: f8da780d60
Hansong Zhang [Wed, 21 Nov 2018 20:27:43 +0000 (12:27 -0800)]
Merge "btsock_signaled: provide debugging info for crash" am: f8da780d60
am: 2d53240eda

Change-Id: Idd2d4d993afd0ed276d868e12cff64cf0182da8f

5 years agoMerge "HFP: Send caller ID in +CLIP command (3/4)"
Treehugger Robot [Wed, 21 Nov 2018 20:21:19 +0000 (20:21 +0000)]
Merge "HFP: Send caller ID in +CLIP command (3/4)"

5 years agoMerge "btsock_signaled: provide debugging info for crash"
Hansong Zhang [Wed, 21 Nov 2018 20:14:21 +0000 (12:14 -0800)]
Merge "btsock_signaled: provide debugging info for crash"
am: f8da780d60

Change-Id: Ic7773644aba72a0310c15ae786b14d8fb11e9faf

5 years agoMerge "btsock_signaled: provide debugging info for crash"
Treehugger Robot [Wed, 21 Nov 2018 19:51:32 +0000 (19:51 +0000)]
Merge "btsock_signaled: provide debugging info for crash"

5 years agoMerge "btif_av: remove dead code" am: 84f70f1152
Hansong Zhang [Wed, 21 Nov 2018 19:31:53 +0000 (11:31 -0800)]
Merge "btif_av: remove dead code" am: 84f70f1152
am: fb26bc4127

Change-Id: I0ef00548508eeeebf86d8b1da9c208958e99220d

5 years agoMerge "btif_av: remove dead code"
Hansong Zhang [Wed, 21 Nov 2018 19:26:32 +0000 (11:26 -0800)]
Merge "btif_av: remove dead code"
am: 84f70f1152

Change-Id: I7ffedcf6dd730ff452ff68f1c7ce87ea71832305

5 years agoMerge "btif_av: remove dead code"
Treehugger Robot [Wed, 21 Nov 2018 19:04:36 +0000 (19:04 +0000)]
Merge "btif_av: remove dead code"

5 years agobtif_av: remove dead code
Hansong Zhang [Wed, 21 Nov 2018 00:04:18 +0000 (16:04 -0800)]
btif_av: remove dead code

Test: manual
Change-Id: I8b172ec2235ae5847f073f8d50ad71761bc37d02

5 years agoFix potential usage of freed memory in btif_hl_proc_sdp_query_cfm
Jakub Pawlowski [Tue, 20 Nov 2018 21:31:31 +0000 (22:31 +0100)]
Fix potential usage of freed memory in btif_hl_proc_sdp_query_cfm

Bug: 116222069
Test: compilation
Change-Id: Iebe2c500dfc2806ca321fdcd170e20c680619d4d

5 years agoPrevent potential deadlock in Hearing Aids
Stanley Tng [Fri, 16 Nov 2018 19:34:28 +0000 (11:34 -0800)]
Prevent potential deadlock in Hearing Aids

Prevent a potential deadlock when calling the main thread but the main
thread is not running.

Bug: 117619792
Test: Manual test to make sure no regression
Change-Id: I6e001533144827b17b88547671765f790ed771bd

5 years agoMerge "Remove unused BTM_BleSetAdvParams" am: 3b12d664e9
Jakub Pawlowski [Tue, 20 Nov 2018 21:57:09 +0000 (13:57 -0800)]
Merge "Remove unused BTM_BleSetAdvParams" am: 3b12d664e9
am: f1b809ef0d

Change-Id: Ide0dc43c72f668de67dd3432f03cbfbaab9f6495

5 years agoMerge "Remove unused BTM_BleSetAdvParams"
Jakub Pawlowski [Tue, 20 Nov 2018 21:27:48 +0000 (13:27 -0800)]
Merge "Remove unused BTM_BleSetAdvParams"
am: 3b12d664e9

Change-Id: Ib265a9a6022765110c2e2c0cd338255863c2cbf5

5 years agoLinux tests build fix am: 83db4992e3
Jakub Pawlowski [Tue, 20 Nov 2018 21:22:33 +0000 (13:22 -0800)]
Linux tests build fix am: 83db4992e3
am: c5778df1aa

Change-Id: Ic20678579f60f6064de036f1d71b76e1f1f8a84a

5 years agoMerge "Remove unused BTM_BleSetAdvParams"
Treehugger Robot [Tue, 20 Nov 2018 21:13:35 +0000 (21:13 +0000)]
Merge "Remove unused BTM_BleSetAdvParams"

5 years agoLinux tests build fix
Jakub Pawlowski [Tue, 20 Nov 2018 21:09:37 +0000 (13:09 -0800)]
Linux tests build fix
am: 83db4992e3

Change-Id: Ieafc3eb4d4b4834f1475cdae8b5f72d637b49828

5 years agoRemove unused BTM_BleSetAdvParams
Jakub Pawlowski [Tue, 20 Nov 2018 11:14:10 +0000 (12:14 +0100)]
Remove unused BTM_BleSetAdvParams

Test: compilation
Change-Id: I5797a16b3fd92c5ffa1ad1fd048699a591fd1e4c

5 years agoLinux tests build fix
Jakub Pawlowski [Tue, 20 Nov 2018 18:27:11 +0000 (19:27 +0100)]
Linux tests build fix

Test: compile on Linux using ninja
Change-Id: I180679a7a6f12abe83db0480d9007ebdfdf1d451

5 years agoFix an error in pure virtual function in earlier CL am: e72c597aa7
Stanley Tng [Fri, 16 Nov 2018 16:24:56 +0000 (08:24 -0800)]
Fix an error in pure virtual function in earlier CL am: e72c597aa7
am: bcfa969026

Change-Id: I6e6b3e9ee7a5ba3602858da9ae65174cddbde399

5 years agoFix an error in pure virtual function in earlier CL
Stanley Tng [Fri, 16 Nov 2018 16:19:51 +0000 (08:19 -0800)]
Fix an error in pure virtual function in earlier CL
am: e72c597aa7

Change-Id: Ia8c01a258eb3fa2614751055dbef2b0807b20eb5

5 years agoFix an error in pure virtual function in earlier CL
Stanley Tng [Wed, 7 Nov 2018 20:50:37 +0000 (12:50 -0800)]
Fix an error in pure virtual function in earlier CL

The earlier CL "Fix Spurious Hearing Aid Start and Stop Cmds" is missing
this "=0" to make the virtual function pure. This CL fixes this
oversight.

Test: Compile
Bug: 117619792

Change-Id: Id9e72b8d93f9671c08a613ecb43b4121662770a0

5 years agobtsock_signaled: provide debugging info for crash
Hansong Zhang [Thu, 15 Nov 2018 23:37:12 +0000 (15:37 -0800)]
btsock_signaled: provide debugging info for crash

Test: manual
Bug: 68108403
Change-Id: I89cfc15787f51594535e1e0c00e7a18a317a5d81

5 years agoMerge "Continue merge: Fix Spurious Hearing Aid Start and Stop Cmds" into pi-dev...
TreeHugger Robot [Thu, 15 Nov 2018 22:52:24 +0000 (22:52 +0000)]
Merge "Continue merge: Fix Spurious Hearing Aid Start and Stop Cmds" into pi-dev-plus-aosp

5 years agoDump gatt::connection_manager state into bugreport am: 8ae68be3b8
Jakub Pawlowski [Thu, 15 Nov 2018 07:28:11 +0000 (23:28 -0800)]
Dump gatt::connection_manager state into bugreport am: 8ae68be3b8
am: eb9d0d3a9b

Change-Id: Iee8c0c1d855c703904632108760689a8a01dd0ff

5 years agoUse map instead of list for keeping apps interested in connection am: c436612cdc
Jakub Pawlowski [Thu, 15 Nov 2018 07:27:53 +0000 (23:27 -0800)]
Use map instead of list for keeping apps interested in connection am: c436612cdc
am: 3641f67e0c

Change-Id: I503496425110fec2c7d16ffe2ad938ee221d853e

5 years agoDump gatt::connection_manager state into bugreport
Jakub Pawlowski [Thu, 15 Nov 2018 07:20:01 +0000 (23:20 -0800)]
Dump gatt::connection_manager state into bugreport
am: 8ae68be3b8

Change-Id: Id19a8a93a055fda21dbb62888fa4db3f442bb4a9

5 years agoUse map instead of list for keeping apps interested in connection
Jakub Pawlowski [Thu, 15 Nov 2018 07:19:49 +0000 (23:19 -0800)]
Use map instead of list for keeping apps interested in connection
am: c436612cdc

Change-Id: Icd78c19959b2a88a5b1ad6164a09ee35fc77f2ec

5 years agoContinue merge: Fix Spurious Hearing Aid Start and Stop Cmds
Stanley Tng [Sun, 14 Oct 2018 04:17:00 +0000 (21:17 -0700)]
Continue merge: Fix Spurious Hearing Aid Start and Stop Cmds

The original CL from AOSP
(chg-id:I33a175947b0118f0234ec6338c20ac6e7963a598) is not merged into
pi-dev-plus-asop due to some wrong Merged-In and Change-Id tags errors.
This CL is to continue the merge starting at pi-dev-plus-asop.

Prevent the spurious Start and Stop Commands that are send to the
Hearing Aids when there is audio suspend and resume, and also connection
and disconnections.
Also, make sure that the callback for the Audio Suspend and Resume are
done in the main thread; previously, it was running in the wrong socket
thread.
Lastly, make sure that the Connection Update callback are processed
correctly; previously, we are not checking that the right connection
interval are set and taking the callbacks done by service discovery.

Test: Manual testing with Hearing Aids
Bug: 117619792
(cherry picked from commit ff3ed00c79d145e5fa30fcacbfc92c570f1da01d)

Change-Id: Ia95baae132e41690944adf852834ba407bf740a2

5 years agoDump gatt::connection_manager state into bugreport
Jakub Pawlowski [Tue, 13 Nov 2018 14:41:42 +0000 (15:41 +0100)]
Dump gatt::connection_manager state into bugreport

Knowing what's in the white list is useful for debugging.

Bug: 112827989
Test: adb bugreport, verify content.
Change-Id: I195d1ee2fe277f0f0ef534c73f7a964c5f5e61b6

5 years agoUse map instead of list for keeping apps interested in connection
Jakub Pawlowski [Sat, 10 Nov 2018 15:45:35 +0000 (16:45 +0100)]
Use map instead of list for keeping apps interested in connection

Bug: 112827989
Test: BleGattConnectionManager
Change-Id: I7b7ea608f5e27a9f17141ccec0c5d5c06bb22e60

5 years agoFirst tests for connection management am: e85bc52264
Jakub Pawlowski [Tue, 13 Nov 2018 13:17:18 +0000 (05:17 -0800)]
First tests for connection management am: e85bc52264
am: 9091033fdc

Change-Id: Ic36d490606bbb0aa3af3ac18d56dbfb35efc2f6e

5 years agoFirst tests for connection management
Jakub Pawlowski [Tue, 13 Nov 2018 13:13:10 +0000 (05:13 -0800)]
First tests for connection management
am: e85bc52264

Change-Id: I1127e88d0b2c83eb00e1105af25cfe54ca21d203

5 years agoRevert "Fix OOB in avrc_pars_browse_rsp" am: 6d1c4974bf am: 1e5b0037f8 am: 40cbdde492
Cheney Ni [Tue, 13 Nov 2018 01:40:13 +0000 (17:40 -0800)]
Revert "Fix OOB in avrc_pars_browse_rsp" am: 6d1c4974bf am: 1e5b0037f8 am: 40cbdde492
am: 3c0a7052f7

Change-Id: Iebdbba98bdf571610dace8f5b2d3cc4076a58267

5 years agoRevert "Fix OOB in avrc_pars_browse_rsp" am: 6d1c4974bf am: 1e5b0037f8
Cheney Ni [Tue, 13 Nov 2018 01:27:42 +0000 (17:27 -0800)]
Revert "Fix OOB in avrc_pars_browse_rsp" am: 6d1c4974bf am: 1e5b0037f8
am: 40cbdde492

Change-Id: Ie709003c0668e1786758b0d17e7459db8f94529a

5 years agoRevert "Fix OOB in avrc_pars_browse_rsp" am: 6d1c4974bf
Cheney Ni [Tue, 13 Nov 2018 01:06:10 +0000 (17:06 -0800)]
Revert "Fix OOB in avrc_pars_browse_rsp" am: 6d1c4974bf
am: 1e5b0037f8

Change-Id: Ibd9afdda7b2f7cc8f895bf9af4cfbd893f3a8bbe

5 years agoRevert "Fix OOB in avrc_pars_browse_rsp"
Cheney Ni [Tue, 13 Nov 2018 00:35:58 +0000 (16:35 -0800)]
Revert "Fix OOB in avrc_pars_browse_rsp"
am: 6d1c4974bf

Change-Id: I164343e6a08e851173a730fb06173fd6dca60f03

5 years agointroduce gatt::connection_manager::get_apps_connecting_to am: d1d3088e93
Jakub Pawlowski [Tue, 13 Nov 2018 00:29:41 +0000 (16:29 -0800)]
introduce gatt::connection_manager::get_apps_connecting_to am: d1d3088e93
am: 9b8e46352e

Change-Id: Ic2586e09eba7708c8863f2618dad2735778cecf3

5 years agointroduce gatt::connection_manager::get_apps_connecting_to
Jakub Pawlowski [Mon, 12 Nov 2018 23:36:23 +0000 (15:36 -0800)]
introduce gatt::connection_manager::get_apps_connecting_to
am: d1d3088e93

Change-Id: Idde98ec3cb082150cd57d7749be5d53c11745379

5 years agoNaming cleanup in stack/gatt/connection_manager.* am: d28727edd4
Jakub Pawlowski [Sat, 10 Nov 2018 13:41:41 +0000 (05:41 -0800)]
Naming cleanup in stack/gatt/connection_manager.* am: d28727edd4
am: 431791987d

Change-Id: I97f4e48a0edfeb98629e559ac71d735ba7195341

5 years agoNaming cleanup in stack/gatt/connection_manager.*
Jakub Pawlowski [Sat, 10 Nov 2018 13:37:14 +0000 (05:37 -0800)]
Naming cleanup in stack/gatt/connection_manager.*
am: d28727edd4

Change-Id: I73a6d1da304af64c986eba804011e6d9f0d6d4cc

5 years agoFirst tests for connection management
Jakub Pawlowski [Fri, 9 Nov 2018 13:41:01 +0000 (14:41 +0100)]
First tests for connection management

Test: added in this CL
Change-Id: Id3937530e1b0a16c056ae48face78b18c6ec32f0