[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [CONTRIBUTE] [DONATE]

Waydroid and whonix

Hi
I’m trying to run Way-droid on Whonix but having some issues since dnsmasq is not giving dhcp to the lxc container.

Any help would be great, I think a guide on running android inside whonix would be a great addition to the wiki since many operations require phone apps.

These are the step i took so far

  1. Adding the repo
export DISTRO="bullseye" && \
sudo scurl -Sf https://repo.waydro.id/waydroid.gpg --output /usr/share/keyrings/waydroid.gpg && \
echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] tor+https://repo.waydro.id/ $DISTRO main" > ~/waydroid.list && \
sudo mv ~/waydroid.list /etc/apt/sources.list.d/waydroid.list && \
sudo apt update
  1. Installing

sudo apt install waydroid -y

  1. Starting the init process and downloading images.

sudo waydroid init

  1. Editing conf files for vm support

nano /var/lib/waydroid/waydroid_base.prop

change these

ro.hardware.gralloc=default
ro.hardware.egl=swiftshader
  1. Start

sudo systemctl start waydroid-container

or manually with


sudo waydroid container start
  1. Xfce is using x11 so we have to use a wayland compositor
sudo apt install weston
setsid weston &
  1. Adjust the window size and then enter this in the terminal

XDG_SESSION_TYPE=wayland waydroid show-full-ui

This should start android with a full ui

Currently I I’m not recieving dhcp from dnsmasq.

I tried to restart the script installed at

/usr/lib/waydroid/data/scripts/waydroid-net.sh

the bridge interface is created but when I enter the console I do not receive any dhcp

sudo wayland shell
ip a

That would be good.

Just a guess: There’s no DHCP server installed in Whonix-Workstation. Therefore the container might not get an internal IP from DHCP.

Another guess:
Whonix-Workstation Firewall - Whonix might interfere. Try either:

Allowing UDP fixed the issue, I can now download apps from F-Droid after installing it with sudo waydroid app install <downloaded fdroid apk >

1 Like
[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Contributors] [Investors] [Priority Support] [Professional Support]