commit | 9b7fea5eeedbe29f62cfa5097a5b84cd142cccdb | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Mon Apr 01 16:35:24 2024 +0900 |
committer | Remi NGUYEN VAN <reminv@google.com> | Mon Apr 01 16:35:24 2024 +0900 |
tree | 777710ae1674e1523f8567a683e26e95767fbfb5 | |
parent | 80383822b196974578dbc5eecb43b6b87ce38048 [diff] |
Obtain BluetoothAdapter through BluetoothManager BluetoothAdapter.getDefaultAdapter is deprecated and should be replaced with BluetoothManager. The AttributionSource is not necessarily set properly with BluetoothAdapter.getDefaultAdapter, and may depend on which package is returned first by PackageManager.getPackagesForUid. This has been causing some flaky failures in presubmit. Fixes: 332225348 Test: atest Change-Id: I2f066f1a90a3c6fed7885f4bbee870abf96f664d