Package Details: waydroid 1.2.0-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://github.com/waydroid
Licenses: GPL
Submitter: Danct12
Maintainer: Danct12
Last Packager: Danct12
Votes: 21
Popularity: 6.20
First Submitted: 2021-09-12 03:33
Last Updated: 2021-10-19 11:37

Pinned Comments

Danct12 commented on 2021-09-21 06:23

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

nightranger73 commented on 2021-09-17 14:13

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

Saim commented on 2021-09-17 08:39

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

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

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

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

yochananmarqos commented on 2021-09-14 17:21

Could you add an install file? Something like this, perhaps:

post_install() {
  echo "Download and extract Waydroid system & vendor images:"
  echo "sudo waydroid init"
  echo ""
  echo "Start the container service:"
  echo "systemctl start waydroid-container"
}

pre_upgrade() {
   waydroid session stop
   systemctl stop waydroid-container
}

post_upgrade() {
  systemctl daemon-reload
  systemctl start waydroid-container
}

pre_remove() {
  pre_upgrade
}

post_remove() {
  echo "Optionally remove Waydroid data & images:"
  echo "sudo rm -rf /var/lib/waydroid /home/.waydroid ~/waydroid"
}

grdgkjrpdihe commented on 2021-09-14 11:56

python-gobject is required for IUserMonitor.py

yochananmarqos commented on 2021-09-12 15:27

It seems the clipboard service requires PyClip, see cliboard_manager.py.

skan commented on 2021-09-12 14:01

seems git commit hash in the current PKGBUILD is lost on GitHub, please update it to another hash. Also, there was ongoing issue with zen kernel and some modules - https://github.com/waydroid/waydroid/issues/13