| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| |
| |
| |
| |
| |
| | |
https://android.googlesource.com/platform/packages/modules/Bluetooth into t13.0
Android 13.0.0 Release 52 (TQ3A.230605.012)
Change-Id: I379845946815b7c623f83a1d33036ae615f090fb
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Bug: 274037299
Test: presubmit tests
(cherry picked from https://android-review.googlesource.com/q/commit:6e179238dc3b3eaa5f8e26c9eff0d891decae5ea)
Merged-In: I993505cd6656d67362eeefd6bd3abd411e8f59ff
Change-Id: I993505cd6656d67362eeefd6bd3abd411e8f59ff
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Dirty cherry-pick to not expose new API on T
Bug: 269363672
Bug: 263323082
Test: atest BluetoothInstrumentationTests
Tag: #feature
(cherry picked from commit 2bf529b70fb558f1ed08dd028d7fa4d3ee13f405)
Merged-In: Ib0ef1fdc3a9dd03f89b9d67d6b490d9f287b5828
Change-Id: I1ab2aa93646795f90177b2e0f234c317801865e3
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Enable framework logs
- Add Bluetooth socket event log into dumpsys
Bug: 263323082
Bug: 248162762
Test: atest BluetoothInstrumentationTests
Change-Id: I0cbb18f1c221eaa7353b3867629affc09f1eb0a8
(cherry picked from commit 63c3fa677e15f1224e43dda1aee9d0d262aaab69)
(cherry picked from commit b6dc15a708a03a5095523161911fc6a4f68772d9)
Merged-In: I0cbb18f1c221eaa7353b3867629affc09f1eb0a8
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch allows to store CCCD values for GMCS and GTBS
characteristics. After re-connection stored values will be set to latest
state (possible only enable notification).
Tag: #feature
Bug: 229037130
Test: atest com.android.bluetooth.btservice.storage.DatabaseManagerTest#testDatabaseMigration_116_117
Change-Id: I55ddf87f2680246f1a60dfa67bd005ccc20d20af
Merged-In: I55ddf87f2680246f1a60dfa67bd005ccc20d20af
(cherry picked from commit e13984ab9da3b3391a3af5860df3b01eabdf53bc)
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
HFP android specific command protocol to implement android features.
Used this protocol to support the Audio Policy feature from the HFP
protocol. BluetoothDevice is the endpoint to invoke the feature and
later BLE Audio will also support it.
Cherry picked from wear OS
Dirty because of conflict + hide the API
Bug: 263323082
Bug: 235541516
Bug: 253059988
Test: atest BluetoothInstrumentationTests
Tag: #feature
Merged-In: I5fd6c7959a85104f2bb5e31809a0e250c2dd13d0
(cherry picked from commit cb85f8cb0da7680b9251bbbca7ce12e78008037d)
Change-Id: I5d2d8f4ab71c8ed4f2f2997a7e16fc6b863bc5ae
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- A paired device is recognized as a companion device if its
METADATA_SOFTWARE_VERSION is set to primary or secondary
- Only can have one companion device at a time.
- Remove bond does not remove companion device.
- Reset connectivity settings removes the companion device.
- Companion device has individual GATT connection parameters.
Includes CLs from rvc-wear-dev:
Iff18bf4e22b5bb03bb81203d664bbfa7a69b7bda
Ic4ea700af5b43a62f7f497d4f91ed00a87c6f3ca
I0b27e80f1647c321afa5c15b2c4156c859c9d9c9
I899f027f59d51afae8e9ef819dba3e1661dad3a3
I899f027f59d51afae8e9ef819dba3e1661dad3a3
Tag: #compatibility
Bug: 263323082
Bug: 238442684
Test: atest BluetoothInstrumentationTests
(cherry picked from commit 285a78bc3883bd64bd0b7eae9112d4ee68915011)
Merged-In: Ibed855b4e9a6abfa154732a12861303cd6dc1332
Merged-In: I4eacb6c8acc724d023c4288d2f385ba703231b4c
Change-Id: I222b5297a87db2cdd1dce7db064e43e8ebc65b99
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The certificate was not needed as we don't share
the uid of Bluetooth
Test: TreeHugger
Bug: 265213364
Ignore-AOSP-First: Will cherry-pick to AOSP
Change-Id: I7399254ad435b171de4539189690e98796a27ee1
Merged-In: I7399254ad435b171de4539189690e98796a27ee1
(cherry picked from commit d95b5e1e47006593603032ecd0e8f39b04fac5bd)
|
| |\|
| |
| |
| |
| |
| | |
Android 13.0.0 release 35
Change-Id: Ia1d05dce3dc3cefcf9ae72a724e7967d11061093
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Bug: 237467631
Test: atest BluetoothAudioConfigTest
Change-Id: Ie224c8040732c3b6000e8f1e330d16ab5c03b92e
(cherry picked from commit 309d178c71ac5b30ad511a59c6a0f4ab295f33d5)
Merged-In: Ie224c8040732c3b6000e8f1e330d16ab5c03b92e
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Bug: 237467631
Test: atest BluetoothActivityEnergyInfoTest
Change-Id: I2f0379b1fcc30fe3e63809a91b3c418dfcec7d84
(cherry picked from commit 1eb6b0ae4a320954ec93c2ee2cae10a45c2e4876)
Merged-In: I2f0379b1fcc30fe3e63809a91b3c418dfcec7d84
|
| | |\
| | |
| | |
| | | |
tm-qpr-dev
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We are currently binding the profile services in framework/
BluetoothProfileConnector, except for BluetoothHeadset
and BluetoothLeCallControl that are bound in BMS.
The issue with binding the profiles in framework/ is that
calling apps don't always have the required permission
(BLUETOOTH_PRIVILEGED) to check if the service is enabled
or not (BluetoothAdapter#getSupportedProfiles), so we are
trying to bind the service even if the profile is disabled.
This change will unify the profiles service binding by
moving the bind process in BluetoothProfileConnector in
BluetoothManagerService and making BluetoothHeadset and
BluetoothLeCallControl use BluetoothProfileConnector.
Bug: 241827236
Bug: 236399693
Test: atest CtsBluetoothTestCases
Test: atest BluetoothInstrumentationTests
Tag: #feature
Ignore-AOSP-First: Cherry-pick
Change-Id: I925b4415c023ff9e43a8ff947ae7ca5456babe64
Merged-In: I925b4415c023ff9e43a8ff947ae7ca5456babe64
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 237467631
Test: atest SdpSapsRecordTest
Change-Id: I03fd3bae22f3b04e86fc9323f9c6a92626ed2e0b
(cherry picked from commit d7eca365eacab20b882d9dd8d679542181bef222)
Merged-In: I03fd3bae22f3b04e86fc9323f9c6a92626ed2e0b
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 237467631
Test: atest SdpRecordTest
Change-Id: I50442625bfca966cccb7c0e9aa7281f43b820b4a
(cherry picked from commit b99eeb5de2810fcbf51fea67e1f10e0a825c1ba2)
Merged-In: I50442625bfca966cccb7c0e9aa7281f43b820b4a
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 237467631
Test: atest SdpOppOpsRecordTest
Change-Id: Id6694355a2dae8db95f1f3e8a8df743745b5aefd
(cherry picked from commit 1161ca67d8bc26ae0c73deb15d28cbb3d5187d59)
Merged-In: Id6694355a2dae8db95f1f3e8a8df743745b5aefd
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 237467631
Test: atest SdpDipRecordTest
Change-Id: Iede73c2bf612b148471bd9bc1d11b70552100f84
(cherry picked from commit 3503b292f6a74ba771a5ce62ba8a7b1efaedc61b)
Merged-In: Iede73c2bf612b148471bd9bc1d11b70552100f84
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 237467631
Test: atest SdpPseRecordTest
Change-Id: Ie47b5f2d7ebc4de9f357a1aae732c107ea1c32e7
(cherry picked from commit 86a11bc9fcd224800306a9a71c97e6d6196de9f5)
Merged-In: Ie47b5f2d7ebc4de9f357a1aae732c107ea1c32e7
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 237467631
Test: atest SdpMnsRecordTest
Change-Id: I3c06eb71d76548b78dbd0f35b4bcd2bdbb216572
(cherry picked from commit a23b61bb3bb360f83cb91bf96841d17c3d246caf)
Merged-In: I3c06eb71d76548b78dbd0f35b4bcd2bdbb216572
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The Google Bluetooth apex package name as been renamed
to com.google.android.btservices so allow tests to run on
mts against that package as well
Bug: 258943608
Test: None
Ignore-AOSP-First: Will cherry-pick to AOSP
Change-Id: I9dcacbb031456223937ffc118683706338d5330a
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 237467631
Test: atest SdpMasRecordTest
Change-Id: I186b40a0e9c0c3f5bbfa24f36c9cf5d24e504bbd
(cherry picked from commit 2bb4ecbe0c7508c11639d242bc8080c1b38caf73)
Merged-In: I186b40a0e9c0c3f5bbfa24f36c9cf5d24e504bbd
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 237467631
Test: atest SdpMasRecordTest
Change-Id: Ie8475890073b4007b9a67014138b54f1e26f83dc
(cherry picked from commit cb96ba36e8566443ba9740f0f5cff695e73884a1)
Merged-In: Ie8475890073b4007b9a67014138b54f1e26f83dc
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This will be used to communicate LE Audio capabilities from Fast Pair to
BT Stack.
Test: compilation
Bug: 258651822
Merged-In: Id1e912dbdb8f44f73a4638c7606e2ef330bf6979
Change-Id: Id1e912dbdb8f44f73a4638c7606e2ef330bf6979
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
into tm-qpr-dev
* changes:
Load legacy Bluetooth user data at start
Follow error prone recommendation
floss: Migration should only occur on Android
Make the btservices apex updatable.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
```
ObexServerSockets.java:228: warning:
BluetoothSocket is final and does not override Object.toString
Log.d(mTag, "onConnect() socket: " + conSocket);
^
BluetoothPbapService.java:767: warning:
BluetoothSocket is final and does not override Object.toString
+ " socket=" + socket);
^
AvrcpCoverArtService.java:256: warning:
BluetoothSocket is final and does not override Object.toString
debug("onConnect() - device=" + device + ", socket=" + socket);
^
PbapClientConnectionHandler.java:377: warning:
BluetoothSocket is final and does not override Object.toString
Log.d(TAG, "Closing socket" + mSocket);
^
[...]
(see https://errorprone.info/bugpattern/ObjectToString)
```
Bug: 236759221
Test: m RUN_ERROR_PRONE=true Bluetooth
Ignore-AOSP-First: Cherry-pick of aosp/2133706 to solve merge conflict
Merged-In: I6a49a8ef8c6b380547cbb817468fa33bf89347a3
Change-Id: I6a49a8ef8c6b380547cbb817468fa33bf89347a3
(cherry picked from commit 6134f7c0682cbf72a4caeeb2bdc9661aeab9b9f3)
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Also, use the new name "com.android.btservices"
Bug: 237556594
Test: TH
Ignore-AOSP-First: LSC
Merged-In: If2443eadfc457da6e040ea3425ed1d5b6f73177a
Change-Id: If2443eadfc457da6e040ea3425ed1d5b6f73177a
(cherry picked from commit 4c187daf61c768f53eeb2f0666dd9cf663518647)
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This way, we can prevent an infinite loop made by apps calling
BluetoothAdapter.getProfileProxy() in the onServiceDisconnected.
Tag: #refactor
Bug: 249213217
Test: atest CtsBluetoothTestCases
Change-Id: I7342befd9a8fc69c778d20140558afb148a4232e
(cherry picked from commit e07b56b412fc4fb78a8721d8240722a175ef905a)
Merged-In: I7342befd9a8fc69c778d20140558afb148a4232e
|
| | |
| |
| |
| | |
Change-Id: I426ff8b51f68147fdbf645cab8b6f9eec3a70dde
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Revert "Add tests for BluetoothProfile.close"
Revert submission 19938469-BluetoothProfile_close
Reason for revert: Creating a revert CL only for QPR1
Reverted Changes:
I51ad4e0ec:Make onServiceDisconnected be called
Ic5188c62e:Add tests for BluetoothProfile.close
Bug: 249213217
Change-Id: Id180e12f1dc6da48f68797a70c3095e6bf444a21
(cherry picked from commit b773c175d566085f4bdf2a0e629882535131c50e)
Merged-In: Id180e12f1dc6da48f68797a70c3095e6bf444a21
|
| |\
| |
| |
| |
| |
| | |
* changes:
LeAudioTestApp: Fix printing broadcast code
Fix array-related errorprone warnings
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.
Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Ie9d62731bef7e282d0909697963fce681c356d05
Merged-In: Ie9d62731bef7e282d0909697963fce681c356d05
(cherry picked from commit 760b18105998d241f3b1132227ea07088a5120c4)
|
| |/
|
|
|
|
|
|
|
|
|
| |
FYI, ServiceConnection.onServiceDisconnected is not called when
Context.unbindService is called.
Bug: 233690300
Tag: #refactor
Test: atest CtsBluetoothTestCases DeviceHealthChecks
Change-Id: I51ad4e0ecf6b81bce32ccc7e8b4b9550e3695e9c
(cherry picked from commit f314930e3dd229f6e5f64036ea8bc8887536d0ba)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Both BluetoothDevice and BluetoothAdapter maintain a reference to a
IBluetooth proxy object (sService) and each class uses a lock object
to serialize access to their own reference. These references are updated
by BluetoothManagerService with registered callbacks (IBlueoothManagerCallback).
In the current implentaion, when an app thread uses BluetoothDevice#getService
to access its reference to service proxy, with the BluetoothManager updating it
at the same time, as the order of taking the locks is different, deadlock is possible
under certain circumstances (triggered in bug 241212710).
This patch fixes the deadlock issue by removing the reference to service
proxy object in BluetoothDevice class, and accesses are via
the reference in BluetoothAdapter class instead.
Test: existing unit tests
Bug: 241212710
Tag: #stability
Change-Id: I15cd2707acf5caa04d97c6ede3bd5bedd6475c65
(cherry picked from commit 83c6281b616f597ceacdcf84e20d14368e190875)
Merged-In: I15cd2707acf5caa04d97c6ede3bd5bedd6475c65
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous value and naming is dismatch with the publiched assigned
number, and the stack definition as well.
The patch includes the following modification
1. Correct the context type value
2. Align the naming and comment
3. Change the order based on the context type value
Bug: 240145498
Test: PTS test case and check the context type picker is the same
between bt stack and framework
Change-Id: Ib18d07a64a323791786ad60aa00bcfc0af712552
Merged-In: Ib18d07a64a323791786ad60aa00bcfc0af712552
(cherry picked from commit 56069e28133b031bb5d0e6753490f11788c48b51)
|
| |\
| |
| |
| |
| |
| |
| | |
* changes:
Add support for Opus over A2DP
Add support for Opus in BT Audio HAL
Add support for Opus in BT Java Service
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This CL adds Opus to the BluetoothCodecConfig, and sets the codec as the
default low latency codec.
Bug: 226441860
Test: A2dpCodecConfigTest BluetoothCodecConfigTest A2dpStateMachineTest
Tag: #feature
Ignore-AOSP-First: TM QPR1 Feature
Change-Id: Id94a7f8fab1a7f5e0199d757a70ff19010694fff
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
Pandora need to call some hidden api from bluetooth
Tested after cherry-picking the aosp/2151894 CL
Test: atest pts-bot:HFP/AG/DIS/BV-01-I -v
Ignore-AOSP-First: framework-bluetooth.impl is only on internal for now
Bug: 237447510
Bug: 241962982
Merged-In: Ie558fb21b56018297bcf24c40dae0825e81f26f3
Change-Id: Ie558fb21b56018297bcf24c40dae0825e81f26f3
|
| |\
| |
| |
| | |
tm-qpr-dev
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bluetooth/service and Bluetooth/framework test suites were
broken after the migration of the files from frameworks.
The Bluetooth/framework test suite is split between stress
tests that require a physical Bluetooth device to run and
the unit tests that test the framework hidden APIs.
Both framework unit tests and service tests are signed
and can be added to the MTS.
Test: atest GoogleFrameworkBluetoothTests
Test: atest GoogleServiceBluetoothTests
Bug: 232577476
Tag: #feature
Ignore-AOSP-First: Module only
Change-Id: Ibdb20c650db2483c4569d979da5e024e0e95284c
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bug: 196233989
Ignore-AOSP-First: These tests (and the methods they're testing) are not
in AOSP yet.
Test: atest AdvertisingSetCallbackHelperTest AdvertisingSetHelperTest
Test: atest CarServiceTest CarServiceUnitTest
Test: make -j
Change-Id: I0682b3b7379b1d0a8956a2b07bdc746772925ecd
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit 448c2830336794d350b1c7c4f62c3e406b172e32.
Reason for revert: b/238847789
Test: Clean revert of CL
Change-Id: I30941e8b9344e9dbaacaec5ca2c2046d149ed839
|
| |/
|
|
|
|
|
|
|
|
|
| |
returns the mAddress field of the device instead of null when the
identity address is not known.
Tag: #feature
Bug: 238353063
Test: atest AdapterServiceTest#testAddressConsolidate
Ignore-AOSP-First: Change needs to land in TM release
Change-Id: I577843c9e2cc279915d0632ff25bde66aa949e94
|
| |
|
|
|
|
|
|
| |
Bug: 217366135
Tag: #feature
Test: manual
Ignore-AOSP-First: to be chery-picked
Change-Id: If8ae530a284151888a3f89a51d2c58f2a5cd3644
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
getUuids was wrongly returning an empty array of Uuids when
fetchUuidsWithSdp had not been called. It now returns null
again.
Test: atest CtsBluetoothTestCases
Bug: 235456437
Tag: #feature
Ignore-AOSP-First: will be cherry-picked
Change-Id: If8aafc1b0ab4e253fdacc827726d76825b3bd1e4
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
BluetoothAdapter#listenUsingInsecureRfcommWithServiceRecord
description was stating user should call
BluetoothDevice#createRfcommSocketToServiceRecord to
connect, but user should use
BluetoothDevice#createInsecureRfcommSocketToServiceRecord
instead.
Tag: #feature
Test: build
Bug: 235047894
Ignore-AOSP-First: cherry-pick
Change-Id: I6469862134d398bba8e9c738eaba081dc3ee6d65
Merged-In: I770a00dd99abab967590d100607a8b1292dc0492
|
| |/
|
|
|
|
|
|
|
|
| |
byte order
Tag: #feature
Bug: 233217148
Test: Manual (docs change)
Ignore-AOSP-First: Android T docs change
Change-Id: I5cab17003c22329744341235bb053cb55b4f7989
|
| |
|
|
|
|
|
|
|
|
| |
endian.
Tag: #feature
Bug: 233217148
Test: Manual (docs change)
Ignore-AOSP-First: Android T docs change
Change-Id: Iee36345088c886d5b43120bb10d8ddf52133de07
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* SettingsLib will use APIs getDeviceSideInternal() and
getDeviceModeInternal() to improve hearing aids experience and change
to formal call in next bluetooth release.
Bug: 224323976
Ignore-AOSP-First: AOSP will be updated later
Test: add private APIs only
Tag: #feature
Change-Id: I7ccb399cfe9b4e1fbf37d752dacbdceeb09f5b8d
|