1. Setting up compatible Kernel, Headers, and Modules:
yay -S --needed linux-xanmod-anbox linux-xanmod-anbox-headers
sudo gedit /etc/default/grub
(Save and exit)
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo gedit /etc/modules-load.d/anbox.conf
(Save and exit)
sudo modprobe -a binder-linux ashmem-linux
sudo gedit /etc/tmpfiles.d/anbox.conf
(Save and exit)
sudo gedit /etc/fstab
(Save and exit)
2. Setting up Anbox:
yay -S anbox-git
(Select one of the options. If you are not sure, you can pick anbox-image-gapps-magisk-xposed)
sudo systemctl enable --now systemd-networkd
sudo systemctl enable --now anbox-container-manager.service
sudo systemctl --user enable --now anbox-session-manager.service