HeadlinesBriefing favicon HeadlinesBriefing.com

GitHub – wmww/tawc: Android Wayland Compositor

Hacker News •
×

tawc runs CLI and graphical Linux programs on Android without root. Graphical apps receive hardware acceleration via the phone's native graphics stack. The project comprises tawcroot (a fast alternative to PRoot), a Wayland compositor, and a UI that ties everything together. It embeds Termux's widget for a familiar terminal UI (the Termux app itself is not required). When apps are installed they can be launched from tawc's menu, added to the home screen, and appear alongside Android apps in the app switcher. XWayland is included for hardware‑accelerated X11 support, and a built‑in task manager lets you view and kill Linux processes.

High‑level design: a stock distro such as Arch Linux ARM or Debian is downloaded and extracted. Programs run “inside” the distro’s rootfs using tawcroot, which emulates chroot and other syscalls to overcome rootless Android limitations. A Smithay‑based compositor provides Android integrations, and libhybris allows glibc Linux programs to load Android graphics drivers. The forked libhybris works on stjórn, but native desktop GL is not supported.

Limitations: no sandbox beyond Android’s mechanisms; tawcroot can be escaped due to its single‑process design; only arm64 official builds are available; requires Android 10 or newer. Contributions are welcome via issues, and LLM‑written content must be clearly marked.

TL;DR: good: Issue title: program foo crashes on Pixel 10; bad: PR title: [CLAUDESLOP] Code. Licensing is MIT for app code, GPLv3 for vendored dependencies.