Print anonymized address when new device found

Bug: 206676415
Test: manual
Change-Id: I2af0ed4645fbae621431ac709df3b1e6d540f271
This commit is contained in:
Chienyuan
2021-11-23 20:22:33 +08:00
parent f7a480d824
commit 40fc88e625

View File

@@ -307,7 +307,8 @@ public class BluetoothEventManager {
CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
if (cachedDevice == null) {
cachedDevice = mDeviceManager.addDevice(device);
Log.d(TAG, "DeviceFoundHandler created new CachedBluetoothDevice");
Log.d(TAG, "DeviceFoundHandler created new CachedBluetoothDevice "
+ cachedDevice.getDevice().getAnonymizedAddress());
} else if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED
&& !cachedDevice.getDevice().isConnected()) {
// Dispatch device add callback to show bonded but