Bluetooth on Android x86 on Virtualbox

I am trying to get Bluetooth to work on Android x86 in virtualbox. I tried both Virtualbox on Linux and Windows, with the latest android x86 iso, but the problem is the same: the Bluetooth adapter of my laptop Thinkpad-laptop (which fully works) is not recognized.

I found similar discussions:

How to test a Bluetooth-based application on Androidx86 on top of VirtualBox with built-in bluetooth for a laptop

how to test bluetooth application on emulators in android

Unfortunately, the same steps do not solve my problem.

Should I try other virtualization software and / or other android x86 iso?

+6
source share
2 answers

VirtualBox is able to share USB devices. Your Bluetooth dongle may or may not be internally connected via USB. I have two Thinkpads, both with bluetooth inside, and only one of them has it on USB.

The trick mentioned in many versions of “I want to test Android Bluetooth applications” assumes that your Bluetooth device uses USB, as it will not work if it does not work.

+2
source

I had a similar problem a few months ago - it turned out that these steps are necessary to make it work:

  • # poweroff
  • → USB → Alt + Ins, it popped up “Unknown device 0A12: 0001 [0134]”, I clicked on it, I saw the device selected under the Filters USB device
  • Click OK.
  • Select the guest OS, that is, Ubuntu 10.04, click the "Start" button.
  • using a USB dongle (insert - delete - insert a Bluetooth dongle).

Now he launched the message box “Failed to set Bluetooth power, Reported error: connection timeout”

  • # gedit / etc / bluetooth / main.conf
  • Replace the "RememberPowered" parameter from "true" to "false" (of course, outside the quotation marks).
  • Save and close.
  • # reboot

After shutting down the system ... 10. # hciconfig -a output this shows me the device
11. # hictool scan can see mobile phones that have activated their bluetooth

More details here: https://forums.virtualbox.org/viewtopic.php?f=6&t=34867

+1
source

Source: https://habr.com/ru/post/950065/


All Articles