Discover contacts' BT addresses from incoming connections.

This commit is contained in:
akwizgran
2020-04-28 17:45:17 +01:00
parent 84584d4d3c
commit 346bec94e8
8 changed files with 154 additions and 16 deletions

View File

@@ -10,6 +10,8 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import static org.briarproject.bramble.api.plugin.BluetoothConstants.PROP_ADDRESS;
@NotNullByDefault
class AndroidBluetoothTransportConnection
extends AbstractDuplexTransportConnection {
@@ -23,6 +25,7 @@ class AndroidBluetoothTransportConnection
super(plugin);
this.connectionManager = connectionManager;
this.socket = socket;
remote.put(PROP_ADDRESS, socket.getRemoteDevice().getAddress());
}
@Override