I would like to make a script to start the Waydroid Android container (LineageOS).
Currently, I can start a LineageOS virtual phone without issues with:
sudo systemctl start waydroid-container
weston
And then, inside the weston-terminal:
waydroid session start
waydroid show-full-ui
Note that Waydroid only works in a Wayland session manager, and the Weston compositor is a simple way to run it with your ordinary X windows manager.
I do not know how should I insert the last two lines in the Bash launcher script. I tried to export
XDG_SESSION_TYPE=wayland
but, while the Waydroid session starts, I am clueless on how to push the phone GUI to the Weston compositor.
There are of course X11 solutions, such as Anbox but Waydroid shines in comparison.