Based on Anland 5.11: https://github.com/superturtlee/anland/releases/tag/5.11
Installation
-
[Required] Android:
AnlandTermux-5.11.0.apk -
[Required] Termux:
pkg install ./anland_5.11.0_aarch64.deb
-
[Optional] Ubuntu 26.04 / Debian 13 PRoot / Chroot / LXC container:
Please install the patched Freedreno driver first: https://github.com/lfdevs/mesa-for-android-container/actions/runs/28445603884?pr=81#artifacts
# Ubuntu 26.04 sudo apt install ./xwayland_24.1.10-90_arm64.deb unzip kwin_anland-5.8-4_6.6.4-0ubuntu92.zip -d kwin-debs-install/ # Debian 13 sudo apt install ./xwayland_24.1.6-90_arm64.deb unzip kwin_anland-5.8-debian-4_6.3.6-92.zip -d kwin-debs-install/ sudo apt install kwin-debs-install/*.deb rm -rf kwin-debs-install/ sudo apt-mark hold xwayland kwin-common kwin-data kwin-wayland libkwin6 libegl-mesa0 libgbm1 libgl1-mesa-dri libglx-mesa0 mesa-libgallium mesa-vulkan-drivers
-
[Optional] Termux native:
Please install the patched Freedreno driver first: https://github.com/termux/termux-packages/actions/runs/28760600710#artifacts
Specifically, look for files in the Artifacts section that start with
debs, such asdebs-aarch64-xxxxxx. After downloading and extracting it, you’ll obtainmesa_26.2.0_aarch64.debandmesa-vulkan-icd-freedreno_26.2.0_aarch64.deb.pkg install plasma-desktop konsole dolphin pkg install ./xwayland_24.1.12-1_aarch64.deb ./kwin-anland_6.7.2_aarch64.deb apt-mark hold xwayland mesa mesa-vulkan-icd-freedreno
Usage
- [Required] On Termux:
killall anland > /dev/null 2>&1
anland > /dev/null 2>&1 &- [Optional] Inside PRoot / Chroot / LXC containers (requires sharing
TMPDIR):
Note
Please note the comments in the following commands. Do not copy them directly, but choose according to your actual situation.
sudo chmod -R 777 /tmp/anland
killall plasmashell > /dev/null 2>&1; killall kwin_wayland > /dev/null 2>&1; killall startplasma > /dev/null 2>&1;
unset DISPLAY
export QT_QPA_PLATFORM=wayland XDG_CURRENT_DESKTOP=KDE XDG_SESSION_DESKTOP=KDE
export ANLAND_SOCKET=/tmp/anland/display_daemon.sock ANLAND=1
# For PRoot container:
export ANLAND_NO_DRM_DEVICE=1 EGL_PLATFORM=surfaceless
# For Chroot/LXC container:
export ANLAND_DRM_DEVICE=/dev/dri/renderD128
# Enable Freedreno (KGSL) driver for devices with Adreno GPU
export MESA_LOADER_DRIVER_OVERRIDE=kgsl TURNIP_KMD=kgsl GALLIUM_DRIVER=freedreno FD_FORCE_KGSL=1
export XDG_RUNTIME_DIR=/run/user/$(id -u)
sudo mkdir -p /run/user/$(id -u)
sudo chown $USER:$USER /run/user/$(id -u)
chmod 700 /run/user/$(id -u)
rm -f $XDG_RUNTIME_DIR/wayland-* > /dev/null 2>&1
sudo mkdir -p /tmp/.X11-unix
sudo chmod 1777 /tmp/.X11-unix
dbus-run-session startplasma-wayland > /dev/null 2>&1- [Optional] On Termux native:
#!/data/data/com.termux/files/usr/bin/bash
mkdir -p $TMPDIR/run
chown -R $USER:$USER $TMPDIR/run
chmod -R 700 $TMPDIR/run
mkdir -p $TMPDIR/.X11-unix
chmod 1777 $TMPDIR/.X11-unix
killall anland > /dev/null 2>&1
anland > /dev/null 2>&1 &
killall plasmashell > /dev/null 2>&1; killall kwin_wayland > /dev/null 2>&1; killall startplasma > /dev/null 2>&1;
unset DISPLAY
unset PULSE_SERVER
export XDG_RUNTIME_DIR=$TMPDIR/run
export QT_QPA_PLATFORM=wayland XDG_CURRENT_DESKTOP=KDE XDG_SESSION_DESKTOP=KDE
export ANLAND_SOCKET=$TMPDIR/anland/display_daemon.sock ANLAND=1 ANLAND_NO_DRM_DEVICE=1 EGL_PLATFORM=surfaceless
# Enable Freedreno (KGSL) driver for devices with Adreno GPU
export MESA_LOADER_DRIVER_OVERRIDE=kgsl TURNIP_KMD=kgsl GALLIUM_DRIVER=freedreno FD_FORCE_KGSL=1
rm -f $XDG_RUNTIME_DIR/wayland-* > /dev/null 2>&1
# Start the full KDE Plasma desktop
dbus-run-session startplasma-wayland > /dev/null 2>&1
# If startplasma-wayland cannot enter the desktop normally, you can use plasmashell
dbus-run-session -- bash -lc '
kwin_wayland plasmashell > /dev/null 2>&1 &
sleep 2
konsole
wait
'Note
Because the current version of XWayland relies on the /dev/dri/renderD128 node when using hardware acceleration, running applications that do not support Wayland in non-root environments (Termux native & PRoot) can only use software rendering:
env -u EGL_PLATFORM -u MESA_LOADER_DRIVER_OVERRIDE -u GALLIUM_DRIVER -u FD_FORCE_KGSL -u TURNIP_KMD DISPLAY=:0 LIBGL_ALWAYS_SOFTWARE=1 x11-app