Hello everyone, I recently put together a very small guide on getting Waydroid to work on Ubuntu Touch, even with unofficially supported devices (Anbox supports very few devices so Waydroid is a great alternative) and I wanted to share it because I ran into many issues during the installation so I had to do some research by myself since apparently no one had the same issues as me.
To install Waydroid, run these commands in a terminal
sudo -s
sudo mount -o remount,rw /
apt update
apt install waydroid -y
waydroid init
Restart your device, then:
sudo waydroid container start
(this command may hang or output
WayDroid container is RUNNING, both should be fine. Just open another terminal tab. This applies every other time you're gonna be executing this command)
waydroid session start
First time should work (Note: you can close the terminal app but I recommend keeping it open, or it may crash. Let it be, it doesn't cause any issues). After you're done messing around Waydroid, open terminal and type:
sudo waydroid container stop
waydroid container stop
to close it. Alternatively, use the recent apps thing.
I recommend rebooting but it's optional.
Next time you want to use Waydroid, open the app drawer and click its icon. If it crashes, open the Terminal app (I recommend keeping it open) and type:
sudo waydroid container start
waydroid session start
Next, click on the Waydroid icon in the app drawer if nothing happens after the second command. If it crashes, check the terminal tab where you ran sudo waydroid container start for any errors. If you see any umount errors, run:
umount /var/lib/waydroid/rootfs
(most commonly, if not adjust the command to what you need)
Now, run
sudo waydroid container start
waydroid session start
If when you run waydroid session start you see
/dev/anbox_binder appeared
or something similar, that means you've successfully started Waydroid. If not, repeat the last step.
If you tap the Waydroid icon in the app drawer and it crashes, just wait for a bit. It's just starting, and after a while you should hear a notification sound and a couple of seconds later the LineageOS UI
I've taken the first part from this comment under another topic, however I had to figure out the last part for myself. I tried this on two Redmi Note 8T's through an unofficial port from TheKit and an OnePlus 5 from a friend. The only issue I've encountered (on the Note 8T) is that while Android works, it's kind of jittery, almost like there's no HW acceleration (most noticeable when pulling down the notification center). The system responds to the inputs but is laggy, so if anyone could help me fix that, I'd appreciate it, although it's not an officially supported device so I don't really know.