waydroid / waydroid

Waydroid uses a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu.
https://waydro.id
GNU General Public License v3.0
7.68k stars 316 forks source link

We need the ability to use a Bluetooth dongle #1041

Open promeneur opened 1 year ago

promeneur commented 1 year ago

We need the ability to use a Bluetooth dongle

My PC is my main tool in my life, along the day. It's more handy to answer to a phone call with my PC.

Another reason : some Wi-Fi connected devices need for their setup a Bluetooth connection, as Ring or Nuki ones.

The only way is to use, till now, a QEMU VM with a dedicated Bluetooth dongle with android-x86 for Ring or Nuki app.

I know well QEMU but for Mr. Jo Waydroid is a good solution, only require using the package manager.

A fast way, even if it's not a perfect solution, is what I do :

In the host
. add the "user" in the group "kvm"
. use udev rules to attach the Bluetooth dongle to "kvm" [1]

in the QEMU invocation [2] :
. add a xhci hub
. attach the dongle to this ehci hub

[1] for openSUSE add a 50.qemu.rules file in /etc/udev/udev.d/ with the contents :

ASUSTek Computer, Inc. ASUS USB-BT500

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="190e", GROUP="kvm", MODE:="0666"

[2] ...... -device qemu-xhci,p2=6,p3=6,id=xhci \ .... -device usb-host,bus=xhci.0,port=1,vendorid=0x0b05,productid=0x190e \

If you already get a ehci hub you must use ",bus=xhci.0,port=1" to attach the Bluetooth dongle to the xhci hub. If not, QEMU tries to attach it to the ehci hub, and you get an error message when executing the QEMU command.

Thanks

Quackdoc commented 1 year ago

duplicate of #155

mikealanni commented 1 year ago

I have arm single boards Khadas VIM2 with built-in Bluetooth with Ubuntu Linux, I was able tun waydroid on it to run one app only but the app uses Bluetooth and it doesn't work. is there any work around for this

promeneur commented 1 year ago

@mikealanni

Today the solution is to install, in a QEMU VM, android x86_64 8.1 r6 from android-x86.org.

Then you install your app using Bluetooth.

warning :

mikealanni commented 1 year ago

Appreciate the fast reply, VIM2 it's in my Tesla car, and I'm trying to Run scan my Tesla to get ODBIi data and store it. VIM2 is ARM64 and looks I'm out of options here. Thanks

Quackdoc commented 1 year ago

Today the solution is to install, in a QEMU VM, android x86_64 8.1 r6 from android-x86.org. Then you install your app using Bluetooth.

why wouldn't you just use bliss?

Appreciate the fast reply, VIM2 it's in my Tesla car, and I'm trying to Run scan my Tesla to get ODBIi data and store it. VIM2 is ARM64 and looks I'm out of options here. Thanks

you can try passing the appropriate device to the waydroid container, but I doubt it would work.

@electrikjesus Maybe we could set up some kind of toggle via waydroid gui application to enable passing through bluetooth properly?

ChrysoliteAzalea commented 1 year ago
  • today you can't install some apps in android 8.1

I may not know exactly, since I don't use it, but doesn't BlissOS project provide newer versions of Android for desktop?

promeneur commented 1 year ago

@Quackdoc @ChrysoliteAzalea

I checked Bliss 14.10 with Plugable Bluetooth 4 and Asus BT500 dongle:

I checked Bliss 15.8.6 :

hmtheboy154 commented 8 months ago

I checked Bliss 14.10 with Plugable Bluetooth 4 and Asus BT500 dongle:

  • Bluetooth does not work.
  • Battery level is 0 % then some app for example opencamera refuses to record a video, whatsapp warns you that there will be a problem during a conversation with a contact.

I checked Bliss 15.8.6 :

  • Desktop mode gui works badly
  • Battery level is 0 % then some app for example opencamera refuses to record a video, whatsapp warns you that there will be a problem during a conversation with your contact.
  • Bluetooth works
  • webcam image is green and very weird

test latest iso

https://sourceforge.net/projects/blissos-x86/files/Official/

promeneur commented 7 months ago

I checked Bliss 16.9.4 in a QEMU VM (dos boot partition, grub) with default grub menu option "Bliss-OS 16.9.4 2024-01-15" Webcam Logitech C310

promeneur commented 7 months ago

I need to change the screen size. in grub folder there is no more menu.lst then i can't add

GRUB_GFXMODE=1280x800x32
GRUB_GFXPAYLOAD_LINUX=keep