You are not logged in.
Hi.
I'm trying to attach/passthru usb things like ID card reader, usb memory, usb camera or usb-bluetooth adapter directly to waydroid but it does not work.
BTW I tested this:
waydroid prop set persist.waydroid.udev true
waydroid prop set persist.waydroid.uevent true
But still doesnt work.
Bluetooth support directly form host would perfect, if not possible, usb passthu from host to waydroid will be good.
Last edited by predacon (2025-03-17 01:05:55)
Offline
Actually found a solution here
https://zenn.dev/nyarla/scraps/2463d15a5f02c8
Steps to make usb work on waydroid:
1. First install e2fsck and resize2fs
2. Stop the active Waydroid container with
$ systemctl stop waydroid-container
3. Change directory to waydroid images, in my case was on
/var/lib/waydroid/images/
and run
$ e2fsck -y -f vendor.img
and
$ e2fsck -y -f system.img
then, we can resize these two files increasing their size, in my case doing
$ resize2fs system.img 4G
and
$ resize2fs vendor.img 600M
With this first part done now we are ready to modify these two files.
4. Make a directory in a safe place, for exaple
$ mkdir -p /home/testway
then, mount vendor.img with
$ mount /usr/share/waydroid-extra/images/vendor.img /home/testway/
now we need to create a new xml file into monuted image with
$ nano /home/testway/etc/permissions/android.hardware.usb.host.xml
and write this it into it:
<permissions><feature name="android.hardware.usb.host"/></permissions>
save it, close nano and umount vendor.img with
$ umount /home/testway/
5. It's turn to modify system.img so we start mounting it with
$ mount /usr/share/waydroid-extra/images/system.img /home/testway/
and edit ueventd.rc with
$ nano /home/testway/system/etc/ueventd.rc
then, we must comment these lines like that
#subsystem input
# devname uevent_devpath
# dirname /dev/input
5. For the last point do
$ waydroid init -f
followed by a restart, and thats all.
At this point usb devices will work on waydroid. Unfortunately not bluetooth dongles.
Last edited by predacon (2025-03-17 01:04:04)
Offline