Loading
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