OSDN Git Service

android-x86/system-bt.git
3 years agoMerge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb...
TreeHugger Robot [Fri, 5 Mar 2021 07:23:04 +0000 (07:23 +0000)]
Merge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb am: c1282f371b am: fc6a2327ac am: b01c117452 am: ac3fb23588 am: a083e78dac

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13490135

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie453c02dc58e3e4bd40de456f7f3bd8f7b36d998

3 years agoMerge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb...
TreeHugger Robot [Fri, 5 Mar 2021 07:01:51 +0000 (07:01 +0000)]
Merge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb am: c1282f371b am: fc6a2327ac am: b01c117452 am: ac3fb23588

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13490135

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaf3d72072ae0fb93a1932b8cffdfd93ee10eb6ce

3 years agoMerge "Bluetooth hal metrics: Add LogBluetoothHalCrashReason" am: 2ad2fc4b2a am:...
Treehugger Robot [Fri, 5 Mar 2021 06:20:29 +0000 (06:20 +0000)]
Merge "Bluetooth hal metrics: Add LogBluetoothHalCrashReason" am: 2ad2fc4b2a am: 40568c2099

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1597873

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If4d62b1e4526a130189083966c23a5d1ac49e8c8

3 years agoMerge "Exit notification timeouts immediately for disconnected devices" am: f0f8c689b...
Sal Savage [Fri, 5 Mar 2021 06:19:37 +0000 (06:19 +0000)]
Merge "Exit notification timeouts immediately for disconnected devices" am: f0f8c689b5 am: 41a47c0bf0

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1609997

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic58e6a8917dd6442d1fdb6a4d1b639926f340525

3 years agoSome dependencies are host supported am: 70f01015e1 am: af2be5795e
Hansong Zhang [Fri, 5 Mar 2021 06:19:07 +0000 (06:19 +0000)]
Some dependencies are host supported am: 70f01015e1 am: af2be5795e

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1613820

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I61826c75430c920dc280bd5baaa554163a14e636

3 years agoAdd host support for libbluetooth.so am: 75847f0c0b am: d7e847385f
Hansong Zhang [Fri, 5 Mar 2021 06:19:05 +0000 (06:19 +0000)]
Add host support for libbluetooth.so am: 75847f0c0b am: d7e847385f

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1612800

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib1c9e9fe329aadfc3a6baaf3252039f60903571b

3 years agogd: Fix address manager bug am: 2e0e8680a0 am: 4cbf4cdfd1
Chienyuan [Fri, 5 Mar 2021 06:18:46 +0000 (06:18 +0000)]
gd: Fix address manager bug am: 2e0e8680a0 am: 4cbf4cdfd1

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1614948

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9c0f20e7c382a0d13d61616b6d4719b7aea3d03a

3 years agoMerge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb...
TreeHugger Robot [Fri, 5 Mar 2021 06:15:35 +0000 (06:15 +0000)]
Merge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb am: c1282f371b am: fc6a2327ac am: b01c117452

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13490135

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If7045749c4f2925f0a638650abdda13490db2e63

3 years agoMerge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb...
TreeHugger Robot [Fri, 5 Mar 2021 05:54:51 +0000 (05:54 +0000)]
Merge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb am: c1282f371b am: fc6a2327ac

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13490135

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If42003a10b559a9e8dd9a0c0732958ac98c78911

3 years agoMerge "Bluetooth hal metrics: Add LogBluetoothHalCrashReason" am: 2ad2fc4b2a
Treehugger Robot [Fri, 5 Mar 2021 05:50:35 +0000 (05:50 +0000)]
Merge "Bluetooth hal metrics: Add LogBluetoothHalCrashReason" am: 2ad2fc4b2a

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1597873

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2512d4cf56b2cfa8138e522aa3d99689e826b9ee

3 years agoMerge "Exit notification timeouts immediately for disconnected devices" am: f0f8c689b5
Sal Savage [Fri, 5 Mar 2021 05:47:38 +0000 (05:47 +0000)]
Merge "Exit notification timeouts immediately for disconnected devices" am: f0f8c689b5

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1609997

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3750f19b3dcbde7bc23506db6cf59f22e6f52e6b

3 years agoSome dependencies are host supported am: 70f01015e1
Hansong Zhang [Fri, 5 Mar 2021 05:44:08 +0000 (05:44 +0000)]
Some dependencies are host supported am: 70f01015e1

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1613820

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I40db392c31b09262b2f92a3df78add379259a421

3 years agoAdd host support for libbluetooth.so am: 75847f0c0b
Hansong Zhang [Fri, 5 Mar 2021 05:43:22 +0000 (05:43 +0000)]
Add host support for libbluetooth.so am: 75847f0c0b

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1612800

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0e822228a3c06062d5af1bcc402ca3e78be95c22

3 years agogd: Fix address manager bug am: 2e0e8680a0
Chienyuan [Fri, 5 Mar 2021 05:35:58 +0000 (05:35 +0000)]
gd: Fix address manager bug am: 2e0e8680a0

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1614948

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I373e704d0eb6347ddb2d649f88501781aad5f4a6

3 years agoMerge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb...
TreeHugger Robot [Fri, 5 Mar 2021 05:12:31 +0000 (05:12 +0000)]
Merge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb am: c1282f371b

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13490135

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4cdb26816f81d622d9aed94f176a7cfd2360b1b8

3 years agoMerge "Bluetooth hal metrics: Add LogBluetoothHalCrashReason"
Treehugger Robot [Fri, 5 Mar 2021 04:35:11 +0000 (04:35 +0000)]
Merge "Bluetooth hal metrics: Add LogBluetoothHalCrashReason"

3 years agoMerge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb
TreeHugger Robot [Fri, 5 Mar 2021 04:25:17 +0000 (04:25 +0000)]
Merge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev am: c89971ccbb

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13490135

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2eb64b02fbecffcb2927dd9a6157822076ec26fb

3 years agoMerge "Exit notification timeouts immediately for disconnected devices"
Sal Savage [Fri, 5 Mar 2021 02:03:42 +0000 (02:03 +0000)]
Merge "Exit notification timeouts immediately for disconnected devices"

3 years agosmp: Use SMP_TRACE_WARNING am: 4567823871 am: 3d5118b2ae am: db97c71539 am: 7447be7dd...
Myles Watson [Fri, 5 Mar 2021 00:46:54 +0000 (00:46 +0000)]
smp: Use SMP_TRACE_WARNING am: 4567823871 am: 3d5118b2ae am: db97c71539 am: 7447be7dd5 am: 0cce7e32fe

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13758553

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I72f23863b671f45aed226b30119a25562acf019b

3 years agosmp: Reject pairing if the public keys match am: b7e176df4b am: 384a93f2b5 am: d76494...
Myles Watson [Fri, 5 Mar 2021 00:46:38 +0000 (00:46 +0000)]
smp: Reject pairing if the public keys match am: b7e176df4b am: 384a93f2b5 am: d7649413ad am: d501a765c9 am: a58ff17c3f

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13522371

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic47fa3b5cd43a2b523fa18af751e4d15ef36bd5b

3 years agoSome dependencies are host supported
Hansong Zhang [Wed, 3 Mar 2021 01:30:10 +0000 (17:30 -0800)]
Some dependencies are host supported

Bug: 181590011
Tag: #refactor
Test: compile
Change-Id: I247a300c3ba35715b5ddb8c06523e71189ba0ab5

3 years agoAdd host support for libbluetooth.so
Hansong Zhang [Tue, 2 Mar 2021 01:52:04 +0000 (17:52 -0800)]
Add host support for libbluetooth.so

Bug: 181590011
Tag: #refactor
Test: compile
Change-Id: I9a53eeaac5a5c612d47671bca4f95cf252faeb93

3 years agoMerge "resolve merge conflicts of c4a376463ad3ef2df25f57624edbd5ec4e90d48c to rvc...
Myles Watson [Thu, 4 Mar 2021 23:52:20 +0000 (23:52 +0000)]
Merge "resolve merge conflicts of c4a376463ad3ef2df25f57624edbd5ec4e90d48c to rvc-qpr-dev-plus-aosp" into rvc-qpr-dev-plus-aosp

3 years agoMerge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev
TreeHugger Robot [Thu, 4 Mar 2021 23:18:24 +0000 (23:18 +0000)]
Merge "avrcp: Ignore AVCT commands that are too long" into oc-mr1-dev

3 years agogd: Fix address manager bug
Chienyuan [Thu, 4 Mar 2021 13:36:50 +0000 (21:36 +0800)]
gd: Fix address manager bug

Tag: #gd-refactor
Bug: 180869951
Test: gd/cert/run
Change-Id: Ia04aea10c686c8c4ec8985f2ba3f3424691ea825

3 years agoBluetooth hal metrics: Add LogBluetoothHalCrashReason
weichinweng [Tue, 15 Dec 2020 06:56:19 +0000 (14:56 +0800)]
Bluetooth hal metrics: Add LogBluetoothHalCrashReason

Add LogBluetoothHalCrashReason function to collect Bluetooth hal crash
reason.

Bug: 174284338
Tag: #feature
Test: atest BluetoothInstrumentationTests
Change-Id: Ibbc465d3145068fdc7f743b67ae4278b4cdf2430

3 years agoMerge "RootCanal: Disable LeExtendedAdvertising" am: e862a44ff4 am: 742c33e81e
Myles Watson [Thu, 4 Mar 2021 04:21:53 +0000 (04:21 +0000)]
Merge "RootCanal: Disable LeExtendedAdvertising" am: e862a44ff4 am: 742c33e81e

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1617639

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1e6e8f4fe62222f409a2006fa8dd4907e27b0fed

3 years agosmp: Use SMP_TRACE_WARNING am: 4567823871 am: 3d5118b2ae am: db97c71539 am: 7447be7dd5
Myles Watson [Thu, 4 Mar 2021 03:22:46 +0000 (03:22 +0000)]
smp: Use SMP_TRACE_WARNING am: 4567823871 am: 3d5118b2ae am: db97c71539 am: 7447be7dd5

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13758553

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia6a2364595636f02962beb4e4feac8fe521d46cd

3 years agoMerge "RootCanal: Disable LeExtendedAdvertising" am: e862a44ff4
Myles Watson [Thu, 4 Mar 2021 02:40:45 +0000 (02:40 +0000)]
Merge "RootCanal: Disable LeExtendedAdvertising" am: e862a44ff4

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1617639

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0e05c4114e21d87302e0d2d7277ef358dc01108f

3 years agosmp: Use SMP_TRACE_WARNING am: 4567823871 am: 3d5118b2ae am: db97c71539
Myles Watson [Thu, 4 Mar 2021 01:42:15 +0000 (01:42 +0000)]
smp: Use SMP_TRACE_WARNING am: 4567823871 am: 3d5118b2ae am: db97c71539

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13758553

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iccb68d84d5c6c84797a90c386f081d061ef72671

3 years agoresolve merge conflicts of c4a376463ad3ef2df25f57624edbd5ec4e90d48c to rvc-qpr-dev...
Myles Watson [Thu, 4 Mar 2021 01:40:01 +0000 (01:40 +0000)]
resolve merge conflicts of c4a376463ad3ef2df25f57624edbd5ec4e90d48c to rvc-qpr-dev-plus-aosp

Change-Id: I0df2ad9ed138414bfc4551ec175e086cf7c112a7

3 years agoMerge "RootCanal: Disable LeExtendedAdvertising"
Myles Watson [Thu, 4 Mar 2021 01:20:12 +0000 (01:20 +0000)]
Merge "RootCanal: Disable LeExtendedAdvertising"

3 years agosmp: Use SMP_TRACE_WARNING am: 4567823871 am: 3d5118b2ae
Myles Watson [Thu, 4 Mar 2021 00:31:17 +0000 (00:31 +0000)]
smp: Use SMP_TRACE_WARNING am: 4567823871 am: 3d5118b2ae

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13758553

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibd31c210968f8f4809dad8339fbb45585d23548f

3 years agosmp: Use SMP_TRACE_WARNING am: 4567823871
Myles Watson [Wed, 3 Mar 2021 23:55:52 +0000 (23:55 +0000)]
smp: Use SMP_TRACE_WARNING am: 4567823871

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13758553

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2dab9afcd509f6f5082f69965c065a881e0bb64a

3 years agoRootCanal: Disable LeExtendedAdvertising
Myles Watson [Wed, 3 Mar 2021 23:23:33 +0000 (15:23 -0800)]
RootCanal: Disable LeExtendedAdvertising

Bug: 181783722
Test: cert/run
Tag: #gd-refactor
Change-Id: I1e687b9177211385f62aff39db59c312db3c8c4a

3 years ago[automerger skipped] Merge "Merge RQ2A.210305.007" am: 4ad3a2452a -s ours am: ea2ec38...
Xin Li [Wed, 3 Mar 2021 23:36:58 +0000 (23:36 +0000)]
[automerger skipped] Merge "Merge RQ2A.210305.007" am: 4ad3a2452a -s ours am: ea2ec388c5 -s ours

am skip reason: Change-Id I70d48f04611d3bd380b8e29d21e590e69c6bfe0c with SHA-1 a74d9d71fe is in history

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1613672

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaa0822a69cc3068ee2ace7652955f185dc666c51

3 years ago[automerger skipped] Merge "Merge RQ2A.210305.007" am: 4ad3a2452a -s ours
Xin Li [Wed, 3 Mar 2021 22:28:29 +0000 (22:28 +0000)]
[automerger skipped] Merge "Merge RQ2A.210305.007" am: 4ad3a2452a -s ours

am skip reason: Change-Id I70d48f04611d3bd380b8e29d21e590e69c6bfe0c with SHA-1 a74d9d71fe is in history

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1613672

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6067ee165f3933a9908fc41506602a7aa4d09534

3 years agosmp: Reject pairing if the public keys match am: b7e176df4b am: 384a93f2b5 am: d76494...
Myles Watson [Wed, 3 Mar 2021 22:00:17 +0000 (22:00 +0000)]
smp: Reject pairing if the public keys match am: b7e176df4b am: 384a93f2b5 am: d7649413ad am: d501a765c9

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13522371

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6b1c8452941716de72db6f8b54ed054c3002216b

3 years agosmp: Use SMP_TRACE_WARNING
Myles Watson [Wed, 3 Mar 2021 21:49:21 +0000 (13:49 -0800)]
smp: Use SMP_TRACE_WARNING

Bug: 174886838
Test: pair an LE device
Tag: #security
Change-Id: I3c7e0b1dd877dfa29fa0812c6a5e65fcb1d70ea7

3 years agoMerge "Merge RQ2A.210305.007"
Xin Li [Wed, 3 Mar 2021 21:41:36 +0000 (21:41 +0000)]
Merge "Merge RQ2A.210305.007"

3 years agosmp: Reject pairing if the public keys match am: b7e176df4b am: 384a93f2b5 am: d7649413ad
Myles Watson [Wed, 3 Mar 2021 20:53:19 +0000 (20:53 +0000)]
smp: Reject pairing if the public keys match am: b7e176df4b am: 384a93f2b5 am: d7649413ad

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13522371

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifd61aee4801775b302e5e5eade5c7010228b8566

3 years agosmp: Reject pairing if the public keys match am: b7e176df4b am: 384a93f2b5
Myles Watson [Wed, 3 Mar 2021 20:15:44 +0000 (20:15 +0000)]
smp: Reject pairing if the public keys match am: b7e176df4b am: 384a93f2b5

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13522371

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6945ff206f775739e76ee63b66bfe9acdd0c2c9a

3 years agosmp: Reject pairing if the public keys match am: b7e176df4b
Myles Watson [Wed, 3 Mar 2021 19:08:40 +0000 (19:08 +0000)]
smp: Reject pairing if the public keys match am: b7e176df4b

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13522371

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If45c76319ea662f40ce02bc8ef9f8d6e2ce9d291

3 years agoMerge RQ2A.210305.007
Xin Li [Tue, 2 Mar 2021 23:49:59 +0000 (15:49 -0800)]
Merge RQ2A.210305.007

Bug: 180401296
Merged-In: I70d48f04611d3bd380b8e29d21e590e69c6bfe0c
Change-Id: If5621cce571c1e580be6a7949f945318482146aa

3 years agoMerge "btif: Return after closing the socket" into qt-dev am: f77ee94322 am: 656e9885...
TreeHugger Robot [Wed, 3 Mar 2021 02:59:02 +0000 (02:59 +0000)]
Merge "btif: Return after closing the socket" into qt-dev am: f77ee94322 am: 656e98853c am: bc52d62a13

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13486155

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iee3bb154833c4d4ae979f31271dc10b82f96f806

3 years agoMerge "btif: Return after closing the socket" into qt-dev am: f77ee94322 am: 656e98853c
TreeHugger Robot [Wed, 3 Mar 2021 02:16:18 +0000 (02:16 +0000)]
Merge "btif: Return after closing the socket" into qt-dev am: f77ee94322 am: 656e98853c

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13486155

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4551137fac7bff57f27bbdf210d329b058022ea2

3 years agoMerge "btif: Return after closing the socket" into qt-dev am: f77ee94322
TreeHugger Robot [Wed, 3 Mar 2021 01:34:32 +0000 (01:34 +0000)]
Merge "btif: Return after closing the socket" into qt-dev am: f77ee94322

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13486155

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If6f1e224a54b4c8b4ea5618d307e8cad56c64bca

3 years agoRootCanal: Send LeReadRemoteFeatures to LE address am: 5420443c00 am: 901c3e2052
Myles Watson [Wed, 3 Mar 2021 00:54:22 +0000 (00:54 +0000)]
RootCanal: Send LeReadRemoteFeatures to LE address am: 5420443c00 am: 901c3e2052

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1613205

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6de905e2d03d57dc89cd505f7db4a71ea9030239

3 years agoFix discover service process using wrong transport am: 54c556ed8a am: ee0fddd576
cheng_cai [Wed, 3 Mar 2021 00:54:17 +0000 (00:54 +0000)]
Fix discover service process using wrong transport am: 54c556ed8a am: ee0fddd576

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1288519

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I760f45ed06979cb56c39f81ab2b41259e90062dc

3 years agoMerge "btif: Return after closing the socket" into qt-dev
TreeHugger Robot [Wed, 3 Mar 2021 00:51:13 +0000 (00:51 +0000)]
Merge "btif: Return after closing the socket" into qt-dev

3 years agoRootCanal: Send LeReadRemoteFeatures to LE address am: 5420443c00
Myles Watson [Wed, 3 Mar 2021 00:16:07 +0000 (00:16 +0000)]
RootCanal: Send LeReadRemoteFeatures to LE address am: 5420443c00

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1613205

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ieb83b765df8949b0f2bd0d8bda12eb82079eff26

3 years agoFix discover service process using wrong transport am: 54c556ed8a
cheng_cai [Wed, 3 Mar 2021 00:11:56 +0000 (00:11 +0000)]
Fix discover service process using wrong transport am: 54c556ed8a

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1288519

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5df1d9a974f344474f4a52ac247d48ab4a7a4ffc

3 years agoMerge "Shim Scanning: Update device property" am: b2613c875f am: a74d9d71fe
Treehugger Robot [Tue, 2 Mar 2021 23:01:01 +0000 (23:01 +0000)]
Merge "Shim Scanning: Update device property" am: b2613c875f am: a74d9d71fe

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1609573

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic087bddf91d8dedd8eefb4ac6d73e5f31e398c26

3 years agoRootCanal: Send LeReadRemoteFeatures to LE address
Myles Watson [Tue, 2 Mar 2021 21:46:14 +0000 (13:46 -0800)]
RootCanal: Send LeReadRemoteFeatures to LE address

Bug: 181371297
Test: cert/run DirectHciTest
Tag: #gd-refactor
Change-Id: I8b795c2bb440f98fc840a837e2ab27ef35811558

3 years agoMerge "Shim Scanning: Update device property" am: b2613c875f
Treehugger Robot [Tue, 2 Mar 2021 22:09:33 +0000 (22:09 +0000)]
Merge "Shim Scanning: Update device property" am: b2613c875f

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1609573

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I70d48f04611d3bd380b8e29d21e590e69c6bfe0c

3 years agoMerge changes Ia032262c,Ic587965e,I6dc0fcec,I51913698,I17a8ef4f, ... am: 8bc9c37d89...
Chris Manton [Tue, 2 Mar 2021 21:50:55 +0000 (21:50 +0000)]
Merge changes Ia032262c,Ic587965e,I6dc0fcec,I51913698,I17a8ef4f, ... am: 8bc9c37d89 am: 0c2f9c3514

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1611602

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I104e4122720d31f5e5ab3db3890e9e7a234ffad5

3 years agoMerge "RootCanal: Report actual supported commands" am: e0f6c7a008 am: d55f0ad738
Myles Watson [Tue, 2 Mar 2021 21:50:16 +0000 (21:50 +0000)]
Merge "RootCanal: Report actual supported commands" am: e0f6c7a008 am: d55f0ad738

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1603835

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6084e2230db9607c624f13f072c345e73f373f73

3 years agoMerge changes Ia032262c,Ic587965e,I6dc0fcec,I51913698,I17a8ef4f, ... am: 8bc9c37d89
Chris Manton [Tue, 2 Mar 2021 21:36:52 +0000 (21:36 +0000)]
Merge changes Ia032262c,Ic587965e,I6dc0fcec,I51913698,I17a8ef4f, ... am: 8bc9c37d89

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1611602

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1763a715405459240aa443c8ae39fcffe747e374

3 years agoMerge "RootCanal: Report actual supported commands" am: e0f6c7a008
Myles Watson [Tue, 2 Mar 2021 21:27:45 +0000 (21:27 +0000)]
Merge "RootCanal: Report actual supported commands" am: e0f6c7a008

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1603835

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I00bba233a0a92cd21a86f67d2dd7ca5bcbb4ef36

3 years agoFix discover service process using wrong transport
cheng_cai [Fri, 17 Apr 2020 12:12:25 +0000 (20:12 +0800)]
Fix discover service process using wrong transport

Application may use createBond by transport API to bond with a dual mode
device. If the stack doesn’t get a name from the adv packet, the
stack will start to discover remote name before discovering remote
service. As stack will clear the bta_dm_search_cb.transport flag after
searching remote name, the sdp protocol will be used to discover remote
services, but actually it should use gatt protocol.

Bug: 154299225
Test: Create bond with a dual mode device using le transport
Tag: #compatibility
Sponsor: optedoblivion@
Change-Id: I05b9fa9cf9801cf681e195d490d77d61f77e43a3

3 years agoAdd host support for audio_hal_interface/ am: 0435ab0c27 am: 65066e2c43
Hansong Zhang [Tue, 2 Mar 2021 20:41:24 +0000 (20:41 +0000)]
Add host support for audio_hal_interface/ am: 0435ab0c27 am: 65066e2c43

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1612799

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I626738ee077f17d04406c73a18a2f440a4ff387e

3 years agoBluetoothAudioHAL: Avoid deadlock for get Providers Factory 2.1 am: 6315e27778 am...
Grzegorz Kołodziejczyk [Tue, 2 Mar 2021 20:34:57 +0000 (20:34 +0000)]
BluetoothAudioHAL: Avoid deadlock for get Providers Factory 2.1 am: 6315e27778 am: 8d7ad23ea1

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1608413

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib8075e0325832cb7d5fe7d531e8c0b6758204159

3 years agoMerge "Shim Scanning: Update device property"
Treehugger Robot [Tue, 2 Mar 2021 20:34:38 +0000 (20:34 +0000)]
Merge "Shim Scanning: Update device property"

3 years agoMerge changes Ia032262c,Ic587965e,I6dc0fcec,I51913698,I17a8ef4f, ...
Chris Manton [Tue, 2 Mar 2021 20:26:56 +0000 (20:26 +0000)]
Merge changes Ia032262c,Ic587965e,I6dc0fcec,I51913698,I17a8ef4f, ...

* changes:
  Use API ignore_auto_connect_after_disconnect
  Add API ignore_auto_connect_after_disconnect
  Streamline stack/btm/btm_sec::btm_sec_disconnected
  Streamline stack/btm/btm_sec::btm_sec_send_hci_disconnect
  Stat-ify bta/hh/bta_hh_le::bta_hh_le_deregister_input_notif
  Streamline bta/hh/bta_hh_le::bta_hh_le_remove_dev_bg_conn
  Streamline bta/hh/bta_hh_le::bta_hh_gatt_close
  Streamline bta/gatt/bta_gattc_act::bta_gattc_process_api_open_cancel
  Streamline stack/hid/hidh_conn::hidh_conn_disconnect
  Streamline stack/hid/hidh_conn::hidh_l2cif_disconnect
  Canonicalize stack/hid/hidh_conn.cc
  Streamline bta/hh/bta_hh_act::bta_hh_api_disc_act
  Remove unnecessary declarations btif/src/btif_hh
  Streamline btif/src/btif_hh::btif_hh_disconnect
  Add le acceptlist size to dumpsys
  Remove unnecessary #def guard bta/hh/bta_hh_main::BTA_HH_DEBUG
  Explicitly name stack/acl::tACL_CONN
  Enum-ify stack/include/hiddefs::tHID_STATUS

3 years agoAdd host support for audio_hal_interface/ am: 0435ab0c27
Hansong Zhang [Tue, 2 Mar 2021 20:09:51 +0000 (20:09 +0000)]
Add host support for audio_hal_interface/ am: 0435ab0c27

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1612799

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia5bd05c3f8cb4c4786f416ac12fa13f303b52bb4

3 years agoBluetoothAudioHAL: Avoid deadlock for get Providers Factory 2.1 am: 6315e27778
Grzegorz Kołodziejczyk [Tue, 2 Mar 2021 20:05:50 +0000 (20:05 +0000)]
BluetoothAudioHAL: Avoid deadlock for get Providers Factory 2.1 am: 6315e27778

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1608413

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic0b5391c74078e2c9407b49b59c41374356c5531

3 years agoPull up ACL_AcceptLeConnectionFrom stack am: 7252648c47 am: 07615c4791
Chris Manton [Tue, 2 Mar 2021 19:50:07 +0000 (19:50 +0000)]
Pull up ACL_AcceptLeConnectionFrom stack am: 7252648c47 am: 07615c4791

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1610825

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id5d473d8bdad98162f4dec1f2dd565d7ed926815

3 years agoPull up ACL_AcceptLeConnectionFrom stack am: 7252648c47
Chris Manton [Tue, 2 Mar 2021 19:02:43 +0000 (19:02 +0000)]
Pull up ACL_AcceptLeConnectionFrom stack am: 7252648c47

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1610825

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4d9ecde706384c0111156cf6d22aafb73101ef5b

3 years agoMerge "RootCanal: Report actual supported commands"
Myles Watson [Tue, 2 Mar 2021 19:00:33 +0000 (19:00 +0000)]
Merge "RootCanal: Report actual supported commands"

3 years agoMerge "HFPClient: HF Indicators support" am: d546e7ef9d am: 85885e59d0
Treehugger Robot [Tue, 2 Mar 2021 18:46:51 +0000 (18:46 +0000)]
Merge "HFPClient: HF Indicators support" am: d546e7ef9d am: 85885e59d0

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1536315

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id984e5df8c5f655cae6142c8843ea8093bd363be

3 years agoMerge "export async_fd_watcher" am: 96665b0602 am: 6c67f961f8
Treehugger Robot [Tue, 2 Mar 2021 18:46:17 +0000 (18:46 +0000)]
Merge "export async_fd_watcher" am: 96665b0602 am: 6c67f961f8

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1605335

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I077700c4861751ad849507ce9ab5792c93a75276

3 years agoMerge "Merge RQ2A.210305.007 into stage." into stage-aosp-master am: fa84b60443
TreeHugger Robot [Tue, 2 Mar 2021 18:44:21 +0000 (18:44 +0000)]
Merge "Merge RQ2A.210305.007 into stage." into stage-aosp-master am: fa84b60443

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/13724599

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I640059a6ca8546a0c29f53855ecd9ec8de7656f8

3 years agoAdd host support for audio_hal_interface/
Hansong Zhang [Tue, 2 Mar 2021 01:46:12 +0000 (17:46 -0800)]
Add host support for audio_hal_interface/

Bug: 181590011
Tag: #refactor
Test: compile
Change-Id: Ic47d789dacabc2089f8d63bf9ab67cb480d1d6b7

3 years agoUse API ignore_auto_connect_after_disconnect
Chris Manton [Sat, 27 Feb 2021 17:20:48 +0000 (09:20 -0800)]
Use API ignore_auto_connect_after_disconnect

Bug: 180781174
Test: cert
Tag: #refactor

Change-Id: Ia032262c0e136ea7bc7b7bd7a2737b7d67439804

3 years agoAdd API ignore_auto_connect_after_disconnect
Chris Manton [Sat, 27 Feb 2021 17:19:55 +0000 (09:19 -0800)]
Add API ignore_auto_connect_after_disconnect

Bug: 180781174
Test: cert
Tag: #refactor

Change-Id: Ic587965e57c87174cb39bd0b79321c22842dbbad

3 years agoStreamline stack/btm/btm_sec::btm_sec_disconnected
Chris Manton [Fri, 26 Feb 2021 20:46:17 +0000 (12:46 -0800)]
Streamline stack/btm/btm_sec::btm_sec_disconnected

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I6dc0fcecc9abd8e29fafa1c60a92c471d394f49c

3 years agoStreamline stack/btm/btm_sec::btm_sec_send_hci_disconnect
Chris Manton [Fri, 26 Feb 2021 18:08:40 +0000 (10:08 -0800)]
Streamline stack/btm/btm_sec::btm_sec_send_hci_disconnect

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I51913698328be8eaf096de890c558162d39e8cb2

3 years agoStat-ify bta/hh/bta_hh_le::bta_hh_le_deregister_input_notif
Chris Manton [Fri, 26 Feb 2021 18:08:27 +0000 (10:08 -0800)]
Stat-ify bta/hh/bta_hh_le::bta_hh_le_deregister_input_notif

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I17a8ef4f1794f23760cf480c161d82b621bbde46

3 years agoStreamline bta/hh/bta_hh_le::bta_hh_le_remove_dev_bg_conn
Chris Manton [Fri, 26 Feb 2021 03:16:37 +0000 (19:16 -0800)]
Streamline bta/hh/bta_hh_le::bta_hh_le_remove_dev_bg_conn

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I7e7fe917cbf8b4695f2c209ace1bc0783e5adef9

3 years agoStreamline bta/hh/bta_hh_le::bta_hh_gatt_close
Chris Manton [Fri, 26 Feb 2021 03:16:26 +0000 (19:16 -0800)]
Streamline bta/hh/bta_hh_le::bta_hh_gatt_close

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I02e2cd2064b387d42269b08fd178c74222cbf2d3

3 years agoStreamline bta/gatt/bta_gattc_act::bta_gattc_process_api_open_cancel
Chris Manton [Fri, 26 Feb 2021 03:15:54 +0000 (19:15 -0800)]
Streamline bta/gatt/bta_gattc_act::bta_gattc_process_api_open_cancel

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I7dbfd0e27fee14ad0161fbe96b6f4a9412503cbb

3 years agoStreamline stack/hid/hidh_conn::hidh_conn_disconnect
Chris Manton [Fri, 26 Feb 2021 03:02:54 +0000 (19:02 -0800)]
Streamline stack/hid/hidh_conn::hidh_conn_disconnect

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I9cec9a720ef56e5e73f5830884dcd12abdc875fb

3 years agoStreamline stack/hid/hidh_conn::hidh_l2cif_disconnect
Chris Manton [Fri, 26 Feb 2021 03:02:40 +0000 (19:02 -0800)]
Streamline stack/hid/hidh_conn::hidh_l2cif_disconnect

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I5ee1f8e3f3ec1c1783dab96bd27693721608fdf2

3 years agoCanonicalize stack/hid/hidh_conn.cc
Chris Manton [Fri, 26 Feb 2021 02:53:38 +0000 (18:53 -0800)]
Canonicalize stack/hid/hidh_conn.cc

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I9e233853056f4694d484212c9252fb3e0e9ab41b

3 years agoStreamline bta/hh/bta_hh_act::bta_hh_api_disc_act
Chris Manton [Fri, 26 Feb 2021 02:31:51 +0000 (18:31 -0800)]
Streamline bta/hh/bta_hh_act::bta_hh_api_disc_act

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I7fca94e52935f0280e1e03d869a4711d7d843aab

3 years agoRemove unnecessary declarations btif/src/btif_hh
Chris Manton [Fri, 26 Feb 2021 21:01:31 +0000 (13:01 -0800)]
Remove unnecessary declarations btif/src/btif_hh

And unused #defs

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: Ia1ff2588ee93c7df4f913dafb8a7ff8af31923a8

3 years agoStreamline btif/src/btif_hh::btif_hh_disconnect
Chris Manton [Fri, 26 Feb 2021 02:04:39 +0000 (18:04 -0800)]
Streamline btif/src/btif_hh::btif_hh_disconnect

And remove unused #defs

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I0842b2c97e08e1c29138f6c5cf9eecbd061a296b

3 years agoAdd le acceptlist size to dumpsys
Chris Manton [Sat, 27 Feb 2021 00:29:30 +0000 (16:29 -0800)]
Add le acceptlist size to dumpsys

Bug: 180781174
Test: cert
Tag: #refactor

Change-Id: I5473b335da078b21b8e9cebf06c21da150473dd2

3 years agoRemove unnecessary #def guard bta/hh/bta_hh_main::BTA_HH_DEBUG
Chris Manton [Fri, 26 Feb 2021 02:04:27 +0000 (18:04 -0800)]
Remove unnecessary #def guard bta/hh/bta_hh_main::BTA_HH_DEBUG

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I3c36cac4e582ff83e4ffe5a116c0dc0d750d3ea7

3 years agoExplicitly name stack/acl::tACL_CONN
Chris Manton [Fri, 26 Feb 2021 23:12:03 +0000 (15:12 -0800)]
Explicitly name stack/acl::tACL_CONN

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: Id7b934e9676e356d5f5580398c0268b42f557778

3 years agoEnum-ify stack/include/hiddefs::tHID_STATUS
Chris Manton [Fri, 26 Feb 2021 02:39:13 +0000 (18:39 -0800)]
Enum-ify stack/include/hiddefs::tHID_STATUS

Also add tHID_STATUS::_text and CASE_RETURN_TEXT cleanup

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I3f9189f01907ef9e6e7253a5d1b4a2a55534d05c

3 years agoShim Scanning: Update device property
Chienyuan [Tue, 2 Mar 2021 09:29:48 +0000 (17:29 +0800)]
Shim Scanning: Update device property

Tag: #gd-refactor
Bug: 181078056
Test: gd/cert/run
Test: manual, pair fitbit watch vai fitbit app

Change-Id: I4c5873bd0bf4727b9c455b11a0a4dca5d850288c

3 years agoBluetoothAudioHAL: Avoid deadlock for get Providers Factory 2.1
Grzegorz Kołodziejczyk [Thu, 25 Feb 2021 17:11:15 +0000 (17:11 +0000)]
BluetoothAudioHAL: Avoid deadlock for get Providers Factory 2.1

Single instance of mutex is used for getting all Providers Factories.
Calling GetProvidersFactory 2.0 but having 2.1 instance can cause dead
lock scenario.

Bug: 173538746
Tag: #feature
Test: start Bluetooth with set vinf ProvidersFactory set to 2.1
Sponsor: jpawlowski@
Change-Id: I642adb779391196296dfe8db2a352ebdcf711070

3 years agoPull up ACL_AcceptLeConnectionFrom stack
Chris Manton [Fri, 26 Feb 2021 20:43:12 +0000 (12:43 -0800)]
Pull up ACL_AcceptLeConnectionFrom stack

A more appropriate stack level for this conditional

Bug: 180781174
Test: cert
Tag: #refactor

Change-Id: I3dd5ad22d96a5ac785b63ce28351631c0b1a9537

3 years agoMerge "HFPClient: HF Indicators support" am: d546e7ef9d
Treehugger Robot [Tue, 2 Mar 2021 04:08:50 +0000 (04:08 +0000)]
Merge "HFPClient: HF Indicators support" am: d546e7ef9d

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1536315

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie87b5cb0bfcb6370020e9ef8b2bc49f24af3ee1e

3 years agoMerge "export async_fd_watcher" am: 96665b0602
Treehugger Robot [Tue, 2 Mar 2021 04:07:53 +0000 (04:07 +0000)]
Merge "export async_fd_watcher" am: 96665b0602

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1605335

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I36f6d5575c304402f35437679cf7a0ddc6760cd7

3 years agoMerge "HFPClient: HF Indicators support"
Treehugger Robot [Tue, 2 Mar 2021 03:56:14 +0000 (03:56 +0000)]
Merge "HFPClient: HF Indicators support"

3 years agoMerge "export async_fd_watcher"
Treehugger Robot [Tue, 2 Mar 2021 03:21:14 +0000 (03:21 +0000)]
Merge "export async_fd_watcher"

3 years agoAdd host support for btif/ am: 58accc1b51 am: c298c72189
Hansong Zhang [Tue, 2 Mar 2021 02:04:47 +0000 (02:04 +0000)]
Add host support for btif/ am: 58accc1b51 am: c298c72189

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1612599

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8c43e1ba62fe443193a17e7d42aed72c8591742f

3 years agoMerge "Merge RQ2A.210305.007 into stage." into stage-aosp-master
TreeHugger Robot [Tue, 2 Mar 2021 01:09:13 +0000 (01:09 +0000)]
Merge "Merge RQ2A.210305.007 into stage." into stage-aosp-master