Freitag, 31. Oktober 2025

Run Android apps in Ubuntu Linux

Although Andoid and Linux desktop share the same Linux kernel, the runtime and the UI are very different. In case the Linux system uses Wayland, there is an option to run Android apps with hardware acceleration within the Linux system. 

check whether Wayland is used:

echo $XDG_SESSION_TYPE

If the answer is "wayland", then you can proceed with Waydroid. In case the answer is "x11" either switch to Wayland or install another solution like Anbox or go with Android-x86.

run these commands in bash

sudo apt install curl ca-certificates -y
curl https://repo.waydro.id | sudo bash
sudo apt install waydroid -y

install waydroid image with google apps, no google use: sudo
sudo waydroid init -s gapps -c https://ota.waydro.id/system -v https://ota.waydro.id/vendor -f

start Waydroid manually - otherwise restart the system

sudo systemctl start waydroid-container
waydroid session start
waydroid show-full-ui


analyze any problems

waydroid log 

uninstall and clean up

sudo waydroid session stop
sudo waydroid container stop
sudo apt remove waydroid
sudo rm -rf /var/lib/waydroid /home/.waydroid ~/waydroid ~/.share/waydroid ~/.local/share/applications/*aydroid* ~/.local/share/waydroid


Keine Kommentare:

Kommentar veröffentlichen