Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enable Bluetooth for Androidx86 8.1rc2 VM in Virtual Box running on Ubuntu 18

I'm trying to enable Bluetooth on my Android VM using the following

  • Ubuntu 18.04.1
  • Virtual Box 6.0.2 r128162 with Extension Pack 6.0.2 r128162
  • Android-x86 8.1rc2
  • Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

I've added my user to the vboxusers group as mentioned here which allowed me to see the Bluetooth dongle in the VMs list of USB devices. I added a filter and tried booting the device with and without the dongle connected and neither allowed me to toggle bluetooth on.

Terminal Emulator on Android

Running hcitool dev Devices: return no devices.

hciconfig -a
enter image description here

Running hciconfig hci0 up enter image description here

Can't init device hci0: Operation not permitted(1)

Any help appreciated.

like image 200
asenec4 Avatar asked Nov 06 '22 21:11

asenec4


1 Answers

You may enable Bluetooth only if you have root access. Use su before running hciconfig hci0 up:

No root access:

enter image description here

Wit root access:

enter image description here

like image 102
JohnyCash Avatar answered Nov 14 '22 02:11

JohnyCash