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

Skip to content
Commit 636011df authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Łukasz Rymanowski (xWF)
Browse files

RemoteDevice: Fix for race condition on adding device properties

There could be a case where addDeviceProperties is called multiple times
for the same device which leads to situation of having more than one
DeviceProperties for single device.
This could lead to undefined behavior when reading properties e.g. bond
state etc.

It can happen on Bluetooth startup when there is many bonded devices.
Bug: 374909756
Bug: 375158716
Test: atest RemoteDevicesTest
Flag: com.android.bluetooth.flags.fix_add_device_properties

Change-Id: I6292bbe3f68794b0b79f21f2f37e584fbceaec3a
parent 114d45c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment