mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Merge branch '2407-bluetooth-permission' into 'master'
Always check Bluetooth permission when trying to get own address Closes #2407 See merge request briar/briar!1753
This commit is contained in:
@@ -310,14 +310,12 @@ class BriarReportCollector {
|
||||
btLeAdvertise);
|
||||
}
|
||||
|
||||
if (hasBtConnectPermission(ctx)) {
|
||||
Pair<String, String> p = getBluetoothAddressAndMethod(ctx, bt);
|
||||
String address = p.getFirst();
|
||||
String method = p.getSecond();
|
||||
connectivityInfo.add("BluetoothAddress",
|
||||
scrubMacAddress(address));
|
||||
connectivityInfo.add("BluetoothAddressMethod", method);
|
||||
}
|
||||
Pair<String, String> p = getBluetoothAddressAndMethod(ctx, bt);
|
||||
String address = p.getFirst();
|
||||
String method = p.getSecond();
|
||||
connectivityInfo.add("BluetoothAddress",
|
||||
scrubMacAddress(address));
|
||||
connectivityInfo.add("BluetoothAddressMethod", method);
|
||||
}
|
||||
return new ReportItem("Connectivity", R.string.dev_report_connectivity,
|
||||
connectivityInfo);
|
||||
|
||||
Reference in New Issue
Block a user