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

Commit 55d7f4bb authored by Charlie Boutier's avatar Charlie Boutier
Browse files

Gatt: Add the address type on the scanResult

Add the addressType when creating the device.

Bug: 267223848
Test: avatar_runner example.py config.yml -- --tests "test_le_connect(1,
0)" "test_le_connect(1, 1)"

Change-Id: Iae0b01d57c8daef28b764bd1cd91834d4e9b1847
parent bda91ae8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1869,7 +1869,8 @@ public class GattService extends ProfileService {
                continue;
            }

            BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address);
            BluetoothDevice device =
                BluetoothAdapter.getDefaultAdapter().getRemoteLeDevice(address, addressType);

            ScanSettings settings = client.settings;
            byte[] scanRecordData;