| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
This is a short term fix while a better solution is developped
Test: build
Bug: 265386284
Change-Id: I1a09b6709526452e796c503caa4b3295e2a9d589
(cherry picked from commit 1514ea4478203408a8f222437645529a8c2c1f8f)
Merged-In: I1a09b6709526452e796c503caa4b3295e2a9d589
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since BluetoothProfileConnector is used for all profiles, the
BluetoothManagerService is calling the serviceDisconnected of the
BluetoothProfileConnector, that will call it's unbind, that will be
performed back in the BluetoothManagerService...
We are using an async but it does not prevent against re-entrant call
Fix: 263757880
Test: manual test of turn on off the bluetooth
Change-Id: I673244b2110b09135d82d2985a33c6f4c3739d03
(cherry picked from commit 66ec07e64499d5c529965415a182fe0b9dc7c7f4)
Merged-In: I673244b2110b09135d82d2985a33c6f4c3739d03
|
| |\
| |
| |
| |
| |
| |
| |
| | |
"cherrypicker-L95100000958232375:N14700001329291186" into tm-qpr-dev
* changes:
Unregister callback on unregisterAppUid.
Fix BT Query Routing Issue
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
During BREDR_TIMEOUT, we accidentally skip the BLE_ON state which is
important for broadcasting intent to external apps. This patch fixes
this issue.
Cherry picked from wear to reduce code divergence
Refactor fix to not be stuck in BLE_ON
Initial change Id was I8fd6c2f54b2bdae9b8a587c144424a976b6201d5
Bug: 263323082
Bug: 191828729
Tag: #refactor
Test: Manual
Change-Id: I8e35a574e8da7936bd1bf5073abfc5ed17b10bf9
(cherry picked from commit f18221f5f2fed98b9a0b3f38f6a899f051836ab9)
Merged-In: I8e35a574e8da7936bd1bf5073abfc5ed17b10bf9
|
| |/
|
|
|
|
|
|
|
|
|
|
|
| |
Repro step:
* switch to second user (guest)
* enable adb as root
* `adb shell cmd bluetooth_manager enable` -> fail
Bug: 263554371
Test: Manual
Change-Id: I3a479fbd3e2fe21b1a1b872a15aa6df4ad286356
(cherry picked from commit 145626e4098e3beb201ea4b9a6ddbfa086656532)
Merged-In: I3a479fbd3e2fe21b1a1b872a15aa6df4ad286356
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Disable and enable are async shell command.
This is creating flakyness in test that expect the bluetooth to be
already enabled / disabled.
Test: atest BluetoothInstrumentationTests
Test: atest BluetoothShellCommandTest
Test: atest 'BluetoothTest#AdapterEnableDisable' // net_test_bluetooth
Fix: 261772749
Tag: #refactor
Change-Id: I3ca29dde23a5182ede28eceaf1ac97e4668ab5d5
(cherry picked from commit ca23daa448294ebea1b5cfd421732e85440fe4b9)
Merged-In: I3ca29dde23a5182ede28eceaf1ac97e4668ab5d5
|
| |
|
|
|
|
|
|
|
|
| |
Also fixes the test directory correctly.
Bug: 237467631
Test: atest BluetoothShellCommandTest
Change-Id: I5528a39b41c40bcf5418b9d2171f04c8350cdc7e
(cherry picked from commit 4d280a0219eae8f2c7062698f80edecaf3020193)
Merged-In: I5528a39b41c40bcf5418b9d2171f04c8350cdc7e
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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: 247470852
Test: statsd_testdrive 521
Ignore-AOSP-First: already merged in AOSP
Change-Id: Ie9d27426578e0605965b8f35eed4a51c9a7e2196
Merged-In: Ie9d27426578e0605965b8f35eed4a51c9a7e2196
|
| |
|
|
|
|
|
| |
Bug: 244224847
Test: manual
Ignore-AOSP-First: merge internal first
Change-Id: I04195ef1e1c8d7eb629c9e68bb12e91267be922a
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Bug: 242963176
Tag: #feature
Test: manual
Ignore-AOSP-First: cherry-pick
Merged-In: I5954d22647dca07d5bfd55aea263a79d70ad0f7c
Change-Id: I5954d22647dca07d5bfd55aea263a79d70ad0f7c
|
| |/
|
|
|
|
|
|
|
|
| |
Update Settings.Global flags with Device Config flag values on
initialization
Bug: 239983569
Test: manual
Ignore-AOSP-First: merge conflicts in AOSP
Change-Id: I777582ae8b21c3dc93142c7681a2e9b21e19cd8a
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BluetoothOppLauncherActivity & BluetoothOppBtEnableActivity
'enabled' state should be updated wether Bluetooth is ON or
OFF. Previously, the state of these Activities was set with
resource config, but since Bluetooth started replacing them
by sysprops, we had to enable / disable these Activities in
BluetoothOppService. However, the bt sharing tile should be
available even when Bluetooth is OFF, and as their state is
already updated in BluetoothManagerService when there is an
user change, we can use that instead but with the condition
that BluetoothOppBtEnableActivity is enabled too. All other
Bluetooth OPP Activities enabled / disabled state are still
handled in BluetoothOppService as they require Bluetooth to
be ON to work anyway, and don't impact UI tiles. This fixes
both an issue where the bt sharing tile doesn't appear when
Bluetooth has been turned OFF, and an issue where Bluetooth
would crash if it hadn't been turned ON before using the bt
sharing tile.
Test: manual
Tag: #feature
Bug: 242963176
Ignore-AOSP-First: change not fully in AOSP yet
Change-Id: I67840dbd9f4cfc42026a14a1fc467fc95aa3a587
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Otherwise we keep restarting it randomly, especially for dogfooders, and
not everything likes it when Bluetooth restarts (especially if they're
doing LE stuff in the background).
Test: atest BluetoothDeviceConfigChangeTrackerTest and manually changing
flags with adb
Tag: #stability
Bug: 243706442
Change-Id: Ia955e5ed92c51ec65e0ac0dc42e0998b9c9845ae
(cherry picked from commit fe25b8054a707855057e1c3282cdf0ff9f67588b)
Merged-In: Ia955e5ed92c51ec65e0ac0dc42e0998b9c9845ae
|
| |
|
|
|
|
|
| |
Bug: 239983569
Test: atest ServiceBluetoothTests
Ignore-AOSP-First: merge to internal first
Change-Id: Ia01b3b88a56a528484d6cb8dc0f217c3f400258e
|
| |
|
|
|
|
|
|
|
| |
Bug: 239983569
Test: atest ServiceBluetoothTests
Ignore-AOSP-First: resolve merge conflict on internal first
Change-Id: Id16cb1e0a89d66d9d5cb250ca5de987ef558e447
Merged-In: Id16cb1e0a89d66d9d5cb250ca5de987ef558e447
|
| |
|
|
|
|
|
| |
Bug: 239983569
Test: manual
Ignore-AOSP-First: merge conflicts in AOSP
Change-Id: I2092880e047a1a9d50a47e4724e5fb2815d04f2d
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes the bluetooth package detection functionality in the case
when *all* components are disabled. This occurs in the CTS test, but did
not occur in manual testing of ag/19219300.
Also did manual testing to make sure we don't regress (toggled the no_bluetooth_sharing option, verified that it appeared/disappeared)
Bug: 239372439
Test: atest CtsDevicePolicyManagerTestCases:DeviceOwnerTest
Tag: #stability
Ignore-AOSP-First: depends on a ton of changes that are only in tm-dev
Change-Id: Ib9530a8829a946ea00a21111e459d697086f2ef8
|
| |\
| |
| |
| |
| |
| |
| |
| |
| | |
c001bc5f22
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/19219300
Change-Id: Ic0beb31a5db2deaab49826a0bb4a93fdc6baba0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is an extremely partial fix for a mostly-broken feature. For
fully-managed devices, this fixes the toggle for the file sharing
option, by detecting which Bluetooth package should be used rather than
just guessing.
However, on work profiles, the file sharing option does not really work
anyway, it just infinitely loads. In addition, it is not correctly
disabled when Bluetooth stops, so the icon just remains but doesn't
do anything.
A full fix would add the enable/disable sequence for *work* UserHandles
to BluetoothOppManager, so the LAUNCHER_ACTIVITY is properly enabled and
disabled. In addition, it would fix the issue described in the linked
bug to prevent infinite loading (dedicated bug: b/112625123).
Tag: #stability
Ignore-AOSP-First: For T?
Bug: 237389774
Test: Manual, verifying the *badged* BT file sharing icon appears/disappears as needed
Change-Id: I070987bc884947246c372c65691c4866ebd1e7c7
|
| |\ \
| |/
|/|
| | |
system property" into tm-d1-dev
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
property
The value of system property will not be overridden if user enable
the LE Audio related service via developer option. Checks the service
is enabled or not by the supported list instead of the system property.
Bug: 236553729
Tag: #refactor
Test: manual
Ignore-AOSP-First: will be cherry-picked
Change-Id: I6c40123a390513bf905f3dd531cabd5609064fdd
|
| |/
|
|
|
|
|
|
| |
Bug: 237175319
Tag: #refactor
Test: build
Change-Id: I7d7ef16387756a53115701c461fa735f214c3f25
(cherry picked from commit aed442ee917a0e050744ea7008a65d8043604e83)
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Bug: 217366135
Tag: #feature
Test: manual
Ignore-AOSP-First: to be chery-picked
Change-Id: If8ae530a284151888a3f89a51d2c58f2a5cd3644
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
TbsService and HeadsetService were missing one check
before BluetoothManagerService would try to bond to them.
Bug: 236196227
Tag: #feature
Test: manual
Ignore-AOSP-First: will be cherry-picked
Change-Id: Iceb6c437216092a7dccc238f396f4d95e341af1d
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Bug: 235495968
Tag: #refactor
Test: manual
Change-Id: Icfe55340b26c40111df0b2babbdfc40bf026dac0
(cherry picked from commit 00294a7805ec1ad337d331929370d464b2b6deaa)
|
| |/
|
|
|
|
|
|
| |
Bug: 228849846
Test: atest ManagedProfileTest
Tag: #feature
Ignore-AOSP-First: cherry-pick
Change-Id: I010cf384a8b18a776d8052e87551b8af6fb348cb
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
If bluetooth is started too early, it will need to be restarted to
change its gid.
By delaying the bluetooth start after the OnUserStarting we ensure the
permissions are already set
Fix: 232740613
Test: build & flash with wipe. Check log at first startup
Tag: #refactor
Ignore-AOSP-First: will be push on aosp next
Change-Id: Ifde1348baad5802276679ecc24bc8ae458d02fe6
|
| |
|
|
|
|
|
|
|
|
|
|
| |
updateOppLauncherComponentState was using the old Bluetooth
package name, now we call PackageManager to get it
at runtime.
Bug: 227078439
Test: atest testOppDisabledWhenRestrictionSet
Tag: #stability
Ignore-AOSP-First: rename in internal only
Change-Id: I79c100673e98d4eb64652881428435f0ac6ba501
|
| |
|
|
|
|
|
|
|
|
| |
instead of using the SystemService#onUserSwitching method
Tag: #feature
Bug: 228920751
Test: Manual
Ignore-AOSP-First: Change only present in tm-dev
Change-Id: Ic8c32c29662389bd62fa1684de9679c369545874
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
handler on"
This reverts commit eda5120b133e6f55951287b1dd85b4bd290a60e7.
Reason for revert: The issue in the bug is still reproducible after this change was landed
Tag: #feature
Bug: 228920751
Test: Manual
Ignore-AOSP-First: Change only present in tm-dev
Change-Id: I8d818370bcd6694b17c77545538f25fa2bbe2e34
|
| |
|
|
|
|
|
|
|
|
| |
user switches
Tag: #feature
Bug: 228920751
Test: Manual
Ignore-AOSP-First: Code only present in tm-dev
Change-Id: Ic7d3c94880832f240f9d85b850cf2ce9936e3622
|
| |\
| |
| |
| |
| |
| |
| |
| |
| | |
am: 64ae5b73cd
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2046765
Change-Id: I648f6daf5192dad68f542f01cc0f57d346cdbed2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | | |
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2046765
Change-Id: I86946412d8e374fad119ca913e71790a53ade2b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If BLE enable is called when airplane mode is set, it may prevent BT from turning OFF completely.
Bug: 208950823
Test: act.py -c test_config.json -tc BtStressTest:test_toggle_bluetooth; Or continuously toggle BT in airplane mode.
Change-Id: Id2c9f8cbc49d455d133afe3b251b781ba925741e
|
| | |\|
| | |
| | |
| | |
| | |
| | | |
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2032224
Change-Id: Ide192bd17ce20476f0838b80ce2e695e00f4ac93
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Tag: #feature
Bug: 207521630
Test: reboot device in BLE_ON state, check log
Change-Id: Ia51355ae88919d81108a619e789c6d3415962231
Merged-In: I6330d2f94fe7a5ca582df83c9fa32c5c6cba5186
|
| | |\|
| | |
| | |
| | |
| | |
| | | |
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2032223
Change-Id: Iba175a3044fa9a0090bc33a4efa818849dee2d66
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Tag: #feature
Bug: 207521630
Test: reboot device and check log
Change-Id: I9dc8a561fd63545d75a1080402b972cd989c99a6
Merged-In: Ib30a5000ff1be24c276e673d096f67acb64136d6
|
| | |\|
| | |
| | |
| | |
| | |
| | | |
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1997211
Change-Id: I8ca12f3bec19f3d04fb25b5b7e6b3c2af6d189c5
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is deprecating the svc command for mainline
Fix: 216233593
Tag: #refactor
Test: manual: adb shell cmd bluetooth_manager enable
Test: manual: adb shell cmd bluetooth_manager disable
Merged-In: I19f71fbf689d8551b20359f577fbffd999806273
Change-Id: I19f71fbf689d8551b20359f577fbffd999806273
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
callback
Tag: #feature
Bug: 226404651
Test: Manual
Ignore-AOSP-First: Resolving merge conflict
Change-Id: I78e6ead277785dff4cbbf8fc218dc68dccdc28a5
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
BUG: 226403247
Test: TH
Change-Id: I060dd05cf722a4185f85f4f1e231b63ae1508cb4
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Tag: #feature
Bug: 207521630
Test: reboot device in BLE_ON state, check log
Ignore-AOSP-First: Conflict with internal
Change-Id: I6330d2f94fe7a5ca582df83c9fa32c5c6cba5186
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Tag: #feature
Bug: 207521630
Test: reboot device and check log
Ignore-AOSP-First: Conflict with internal
Change-Id: Ib30a5000ff1be24c276e673d096f67acb64136d6
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 222662836
Test: atest
Tag: #feature
Ignore-AOSP-First: Restriction only in internal for now
Change-Id: Ib46ce38699ab5795b23ace594a5ad19efd66ecbc
|