Waydroid
Install and configure Waydroid
Waydroid is available in the Community repository. If you have enabled this repository you can install it by using this command:
|
|
or for Google Apps (GApps) support:
|
|
Configure GRUB
We need to pass some arguments to the GRUB bootloader. Edit /etc/default/grub with your preferred text editor (e.g., sudo nano /etc/default/grub) and find GRUB_CMDLINE_LINUX and add:
|
|
After editing this file, regenerate the grub config file:
|
|
Enable Waydroid container
Enable and start the waydroid systemd service
|
|
Initialize Waydroid
For vanilla Android:
|
|
For Android with Gapps:
|
|
To apply GRUB changes and bring up binderfs we have to restart the system.
AppArmor (optional)
Waydroid will run without AppArmor, but enabling it adds an extra layer of sandboxing for Android processes. Since it is installed as a dependency of lxc, you might as well enable it.
Enable the apparmor service:
|
|
Enable required boot parameters. Edit /etc/default/grub with your preferred text editor (e.g., sudo nano /etc/default/grub) and find GRUB_CMDLINE_LINUX and append apparmor=1 security=apparmor parameters.
|
|
After editing this file, regenerate the grub config file:
|
|
Now restart the system.