By using a package known as waydroid we can make an Android environement in Arch Linux
Important
Commands are based on arch-linux, however packages should be the same for other distros.
Caution
Make sure you have an internet connection and an user with sudo perms. Make sure you have an AUR helper setup such as yay
To install, execute the following commands:
sudo pacman -Syuyay -S waydroidpacman -Q | grep '^linux'If you recive any output with mention of zen, you are good to go. If not, run the following command to install zen-kernal:
sudo pacman -Syu linux-zen linux-zen-headersAfterwards Update Grub:
sudo grub-mkconfig -o /boot/grub/grub.cfgRestart your system for changes to apply
waydroid init -s GAPPSAlternatively you can also use the waydroid GUI
To lauch the waydroid session:
waydroid session start To lauch the GUI:
waydroid show-full-uiTo stop the waydroid session:
waydroid session stopOn first boot the google apps will not be supported, In order to run google apps on waydroid session follow the below steps:
Lauch a Waydroid Shell:
waydroid shellType the following and note the number string output:
ANDROID_RUNTIME_ROOT=/apex/com.android.runtime ANDROID_DATA=/data ANDROID_TZDATA_ROOT=/apex/com.android.tzdata ANDROID_I18N_ROOT=/apex/com.android.i18n sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"Go to https://www.google.com/android/uncertified and use the output number string to register your waydroid image.