Skip to content

Instantly share code, notes, and snippets.

@tazihad
Created June 24, 2022 22:12
Show Gist options
  • Save tazihad/a27a13a6f896c271c5fe6464d7bc86e3 to your computer and use it in GitHub Desktop.
Save tazihad/a27a13a6f896c271c5fe6464d7bc86e3 to your computer and use it in GitHub Desktop.

Waydroid Android 10 on Fedora 5.15+ Kernel

Enable waydroid repo from aleasto copr

sudo dnf copr enable aleasto/waydroid

Install waydroid

sudo dnf install waydroid

Waydroid initialize

For Vanilla : sudo waydroid init -c https://ota.waydro.id/system -v https://ota.waydro.id/vendor
For GAPPS   : sudo waydroid init -c https://ota.waydro.id/system -v https://ota.waydro.id/vendor -s GAPPS
For FOSS    : sudo waydroid init -c https://ota.waydro.id/system -v https://ota.waydro.id/vendor -s FOSS

sudo systemctl enable --now waydroid-container

Enjoy

waydroid show-full-ui

Troubleshooting

Waydroid not working, logs saying "permission denied"

sudo dnf install cronie cronie-anacron crontabs

echo '@reboot /sbin/sysctl --load=/etc/sysctl.d/*' | sudo tee -a /var/spool/cron/root

echo 'kernel.unprivileged_bpf_disabled=0' | sudo tee /etc/sysctl.d/10-waydroid-bpf.conf

I get the output 'Android user 0 ready'. But the screen does not coming.

echo "waydroid.active_apps=Waydroid" | sudo tee -a /var/lib/waydroid/waydroid_base.prop

Optional: Libhoudini and LibNDK Support

cd ~/Documents

git clone https://github.com/casualsnek/waydroid_script.git 

cd waydroid_script 

sudo dnf install python3-tqdm

sudo python3 waydroid_extras.py -l

sudo python3 waydroid_extras.py -n

Optional: Google Play Device Registration

cd ~/Documents

git clone https://github.com/casualsnek/waydroid_script.git 

cd waydroid_script 

sudo dnf install python3-tqdm

waydroid show-full-ui (and minimize to background)

sudo python3 waydroid_extras.py -i 

Optional: Ashmem support (Temporary Workaround)

sudo dnf install https://github.com/discover02/mycstrepo/raw/master/waydroid/akmod-ashmem-1.0.0-1.x86_64.rpm https://github.com/discover02/mycstrepo/raw/master/waydroid/ashmem-1.0.0-1.fc36.noarch.rpm https://github.com/discover02/mycstrepo/raw/master/waydroid/kmod-ashmem-1.0.0-1.x86_64.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment