Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2
-
None
-
-
8
-
b865d41be6 (qt/qtconnectivity/dev) 9cc19b3c4a (qt/qtconnectivity/6.3) 9cc19b3c4a (qt/tqtc-qtconnectivity/6.3) b865d41be6 (qt/tqtc-qtconnectivity/dev) e043bb633f (qt/tqtc-qtconnectivity/5.15) e043bb633f (qt/tqtc-qtconnectivity/5.15.10)
-
Team A Foundation Sprint 56
Description
QBluetoothLocalDevice provides a "setHostMode()" method to change the bluetooth host mode.
According to code comments it is not possible on Android to go directly from Discoverable hostmode to Connectable hostmode, but the bluetooth device needs to be switched OFF first, for which there is a logic implemented in the qbluetoohlocaldevice_android.cpp.
However at least on an Android-10 device this does not seem to work. While the code switches from Discoverable => PoweredOff, the code call to "BluetoothAdapter::enable()" does not change the hostmode to "Connectable" (nor switch the bluetooth ON).
This can be seen by the failing tst_qbluetoothlocaldevice::tst_hostmodes