commit | fdddc978fa2e910431bf49eb87dcbdf573aae3f3 | [log] [tgz] |
---|---|---|
author | Devarshi Bhatt <devarshimb@google.com> | Tue Feb 06 04:52:56 2024 +0000 |
committer | Devarshi Bhatt <devarshimb@google.com> | Tue Feb 13 05:30:02 2024 +0000 |
tree | ed34d5dbcb3bcdd8126ff66ac3c757b2ab863fb6 | |
parent | 3e8e34d7d87f3e4e6dd8781b7b6abd4b1c36c087 [diff] |
Fetch bluetooth cached device name outside synchronized block. mConnectedDevices is being accessed from both main and background thread in BluetoothControllerImpl. This is leading to an ANR in cases where the resource is being used in the background thread, and the main thread is trying to update it in a synchronized block. Bug: 323995015 Test: local CPU profiling Flag: NONE Change-Id: I72d1a0b61038b29a273c1b712461837e5e065e5e