Ultimate Guide to install Waydroid in any Arch-based distro(especially Garuda)

File: ~/.local/share/applications/Waydroid_Rooted.desktop

[Desktop Entry]
Type=Application
Name=Waydroid_Rooted
Exec=bash -c "~/Apps\&Scripts/Waydroid_Rooted.sh"
Categories=X-WayDroid-App;
X-Purism-FormFactor=Workstation;Mobile;
Icon=waydroid
File: ~/Apps&Scripts/Waydroid_Rooted.sh
#!/bin/bash

# Check the status of Waydroid session
waydroid_status=$(waydroid status | grep -E 'Session:')

if grep -q "RUNNING" <<< "$waydroid_status"; then
    waydroid show-full-ui
elif grep -q "STOPPED" <<< "$waydroid_status"; then
    waydroid show-full-ui &  # Start Waydroid environment in the background
    notify-send "Waydroid is starting"
    sleep 10
    pkexec waydroid shell sh /storage/emulated/0/Android/data/moe.shizuku.privileged.api/start.sh
else
    notify-send "Waydroid status is unknown or not found"
fi

Cheers

1 Like