Package Details: waydroid 1.4.3-1

Git Clone URL: https://aur.archlinux.org/waydroid.git (read-only, click to copy)
Package Base: waydroid
Description: A container-based approach to boot a full Android system on a regular Linux system
Upstream URL: https://waydro.id/
Licenses: GPL
Submitter: Danct12
Maintainer: Danct12
Last Packager: Danct12
Votes: 120
Popularity: 3.12
First Submitted: 2021-09-12 03:33 (UTC)
Last Updated: 2024-08-11 12:51 (UTC)

Pinned Comments

Danct12 commented on 2021-09-21 06:23 (UTC) (edited on 2021-10-08 16:06 (UTC) by Danct12)

Before install Waydroid, make sure that your kernel supports binder and ashmem module (currently only linux-zen does)

Keep in mind that Waydroid only works with Wayland compositors. It also does not work yet with proprietary NVIDIA driver.

After install waydroid and waydroid-image, run this command to initialize the container:

# waydroid init

Then the container can be started via waydroid-container.service. The official project group/channel can be found on:

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

Danct12 commented on 2021-09-24 05:37 (UTC) (edited on 2021-09-24 05:37 (UTC) by Danct12)

You can try to run this command to grep for kernel options required

zcat /proc/config.gz| grep 'ANDROID_BINDER_DEVICES\|ASHMEM'

If it return blank (or your kernel does not support one of the option) then your kernel doesn't work with Waydroid.

Anyway, core/linux (what you're using now) doesn't support Android options.

rado84 commented on 2021-09-23 12:39 (UTC)

How do I found out if the kernel supports binder? It's 5.14.6-arch1-1.

I did what robxu9 said about boot cmdline, rebooted but it keeps returning this eror: Module binder_linux not found I searched the repos for binder_linux but couldn't find any package with that specific name.

robxu9 commented on 2021-09-23 02:47 (UTC)

If you have binderfs (via linux-zen), it usually initialises empty. It looks like waydroid is currently not calling binder-control to automatically set up the devices, so if you're running into:

ERROR: Binder node "binder" for waydroid not found

Append the following to your boot cmdline and restart:

binder.devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder

Danct12 commented on 2021-09-21 06:23 (UTC) (edited on 2021-10-08 16:06 (UTC) by Danct12)

Before install Waydroid, make sure that your kernel supports binder and ashmem module (currently only linux-zen does)

Keep in mind that Waydroid only works with Wayland compositors. It also does not work yet with proprietary NVIDIA driver.

After install waydroid and waydroid-image, run this command to initialize the container:

# waydroid init

Then the container can be started via waydroid-container.service. The official project group/channel can be found on:

nightranger73 commented on 2021-09-17 14:13 (UTC) (edited on 2021-09-17 14:13 (UTC) by nightranger73)

Always getting WARNING: Service manager /dev/binder has died

Saim commented on 2021-09-17 08:39 (UTC)

Container does'nt start

Failed to setup waydroid-net.
(003483) [14:30:35] % sudo waydroid-sensord /dev/hwbinder
(003483) [14:30:35] run: ['sudo', 'waydroid-sensord', '/dev/hwbinder']
(003483) [14:30:35] New background process: pid=3527, output=background
(003483) [14:30:35] % sudo umount /var/lib/waydroid/rootfs/vendor/waydroid.prop
(003483) [14:30:35] run: ['sudo', 'umount', '/var/lib/waydroid/rootfs/vendor/waydroid.prop']
sudo: waydroid-sensord: command not found
(003483) [14:30:35] % sudo umount /var/lib/waydroid/rootfs/vendor
(003483) [14:30:35] run: ['sudo', 'umount', '/var/lib/waydroid/rootfs/vendor']
(003483) [14:30:35] % sudo umount /var/lib/waydroid/rootfs
(003483) [14:30:35] run: ['sudo', 'umount', '/var/lib/waydroid/rootfs']
(003483) [14:30:35] % sudo mount /usr/share/waydroid-extra/images/system.img /var/lib/waydroid/rootfs
(003483) [14:30:35] run: ['sudo', 'mount', '/usr/share/waydroid-extra/images/system.img', '/var/lib/waydroid/rootfs']
(003483) [14:30:35] % sudo mount -o remount,ro /usr/share/waydroid-extra/images/system.img /var/lib/waydroid/rootfs
(003483) [14:30:35] run: ['sudo', 'mount', '-o', 'remount,ro', '/usr/share/waydroid-extra/images/system.img', '/var/lib/waydroid/rootfs']
(003483) [14:30:35] % sudo mount /usr/share/waydroid-extra/images/vendor.img /var/lib/waydroid/rootfs/vendor
(003483) [14:30:35] run: ['sudo', 'mount', '/usr/share/waydroid-extra/images/vendor.img', '/var/lib/waydroid/rootfs/vendor']
(003483) [14:30:35] % sudo mount -o remount,ro /usr/share/waydroid-extra/images/vendor.img /var/lib/waydroid/rootfs/vendor
(003483) [14:30:35] run: ['sudo', 'mount', '-o', 'remount,ro', '/usr/share/waydroid-extra/images/vendor.img', '/var/lib/waydroid/rootfs/vendor']
(003483) [14:30:35] % sudo mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(003483) [14:30:35] run: ['sudo', 'mount', '-o', 'bind', '/var/lib/waydroid/waydroid.prop', '/var/lib/waydroid/rootfs/vendor/waydroid.prop']
(003483) [14:30:35] % sudo chmod 777 -R /dev/ashmem
(003483) [14:30:35] run: ['sudo', 'chmod', '777', '-R', '/dev/ashmem']
(003483) [14:30:35] % sudo chmod 777 -R /dev/dri
(003483) [14:30:35] run: ['sudo', 'chmod', '777', '-R', '/dev/dri']
(003483) [14:30:35] % sudo chmod 777 -R /dev/fb0
(003483) [14:30:35] run: ['sudo', 'chmod', '777', '-R', '/dev/fb0']
(003483) [14:30:35] % sudo lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
(003483) [14:30:35] run: ['sudo', 'lxc-start', '-P', '/var/lib/waydroid/lxc', '-F', '-n', 'waydroid', '--', '/init']
(003483) [14:30:35] New background process: pid=3563, output=background
lxc-start: waydroid: network.c: netdev_configure_server_veth: 708 No such file or directory - Failed to attach "vethhkqo7M" to bridge "waydroid0", bridge interface doesn't exist
lxc-start: waydroid: network.c: lxc_create_network_priv: 3419 No such file or directory - Failed to create network device
lxc-start: waydroid: start.c: lxc_spawn: 1826 Failed to create the network
lxc-start: waydroid: start.c: __lxc_start: 2053 Failed to spawn container "waydroid"
lxc-start: waydroid: conf.c: run_buffer: 323 Script exited with status 126
lxc-start: waydroid: start.c: lxc_end: 996 Failed to run lxc.hook.post-stop for container "waydroid"
lxc-start: waydroid: tools/lxc_start.c: main: 308 The container failed to start
lxc-start: waydroid: tools/lxc_start.c: main: 313 Additional information can be obtained by setting the --logfile and --logpriority options
(003483) [14:30:36] waiting 10 seconds for container to start...
(003483) [14:30:37] waiting 9 seconds for container to start...
(003483) [14:30:38] waiting 8 seconds for container to start...
(003483) [14:30:39] waiting 7 seconds for container to start...
(003483) [14:30:40] waiting 6 seconds for container to start...
(003483) [14:30:41] waiting 5 seconds for container to start...
(003483) [14:30:42] waiting 4 seconds for container to start...
(003483) [14:30:43] waiting 3 seconds for container to start...
(003483) [14:30:44] waiting 2 seconds for container to start...
(003608) [14:30:44] WayDroid container is STOPPED
(003483) [14:30:45] waiting 1 seconds for container to start...
(003483) [14:30:46] ERROR: container failed to start
(003483) [14:30:46] See also: <https://github.com/waydroid>

On gnome40 wayland, if relevant.

NyaomiDEV commented on 2021-09-15 23:39 (UTC)

Waydroid will not start without the binder and ashmem kernel modules. This has to be notified to the user.

On Linux Zen those modules are present and they can be loaded, however only recent versions of Waydroid support it; therefore, please always use upstream Git until the WayDroid devs do tagged releases.

grdgkjrpdihe commented on 2021-09-15 13:02 (UTC) (edited on 2021-09-15 13:02 (UTC) by grdgkjrpdihe)

some notes:
1. log of android container can be found at journalctl
2. init may failed to start lkmd, add psi=1 to kernel parameter to resolve this.

grdgkjrpdihe commented on 2021-09-15 12:55 (UTC)

dnsmasq and nft are also needed by waydroid-net.sh