Waydroid uses a rootful LXC container. A rootful toolbox may work, but the easy way is installing to the system.
Note that because it is a rootful container (without even needing to be one) and because it is still using Android 11, Waydroid is poorly really insecure.
On the positive side though, SELinux Distros are the only ones where you can run Waydroid securely! So no, not Ubuntu touch and not PostmarketOS (where people use it to make their phone be a phone), as Android uses SELinux as a core component of its app and process sandbox.
I would assume a systemd-nspawn container would also work but i can’t try it right now. Which would also open the door to setting your own SELinux context for the directory to live in and relabel everything inside
I have little knowledge on containers and they may need LXC, may not. Anything rootless would be a huge improvement as far as I understand, may not work.
@myycx why would you want to access a shell if the process cant run in a toolbox?
convenience, i run pretty much all my cli-related stuff from a single tmux session on a toolbox container. i was wondering if i could run that one too.
The thing is, it’s already a container. That’s kind of what the link I have shows as well. You could use the image, but again not what you are expecting because you want to run it inside of a Monolithic Toolbox. Not it’s intended ( maybe not even possible ) use case.