Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 73e5f173 authored by hughchen's avatar hughchen
Browse files

Fix deadlock in CachedBluetoothDeviceManager

Following deadlock exist in previous code:

1. Main thread:
Device.refresh() -> Device.dispatchCallback() -> Lock callback
-> (handle callback in systemui) -> DeviceManager.getDevicesCopy()
-> try lock deviceManager

2. Bg thread:
DeviceManager.onActiveDeviceChanged() -> Lock deviceManager ->
Device.dispatchCallback() -> try lock callback

This CL remove sychnorized method in DeviceManager to unblock this
deadlock.

Fixes: 143373496
Test: Manual
Change-Id: Ib17d99a8d797e4e514e965541a04a520f89edad5
parent ff671494
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment