- Primary Tool:
proot-distro - Function: Manages installation of rootfs (root file systems) for distros like Ubuntu, Debian, Arch.
- Why PRoot? Unlike
chroot, PRoot does not require root access. It hooks file system calls to simulate/at a specific directory (e.g.,.../files/usr/var/lib/proot-distro/installed/ubuntu).
- Primary Tool: Native
chrootcommand (via Busybox). - Architecture:
- Uses Magisk or KernelSU to grant root privileges.
- Uses Busybox to create a standard Linux file hierarchy and mount necessary pseudo-filesystems (
mount -t proc,mount -t sysfs,mount --bind /dev).
- Why Chroot?
- Performance: ZERO overhead. Applications run directly on the kernel without
ptraceinterception. Essential for compiling large codebases or heavy gaming. - Partition Support: Can mount an external SD card partition or a loop device image (
.img) as the root filesystem, bypassing Android's internal storage fuse overhead.
- Performance: ZERO overhead. Applications run directly on the kernel without
- Trade-off: strictly requires a rooted device.
- Implementation Note: We will detect root availability. If Rooted -> Offer "Chroot Mode" (Faster). If Not -> Default to "PRoot Mode" (Compatible).
- Primary Tool:
termux-x11 - Architecture:
- Android Side: An app (
com.termux.x11) that acts as the display output. - Linux Side: An X server (
Xwayland) that sends pixels to the Android app via shared memory (fast) or socket.
- Android Side: An app (
- Performance: Significantly faster than VNC (Virtual Network Computing) used by older solutions. It supports hardware acceleration forwarding.
To run games or heavy DEs smoothly, we must bypass software rendering (llvmpipe).
- Virgl (Universal):
virglrenderercreates a virtual GPU that translates OpenGL commands from the container to the Host Android's OpenGL drivers. - Turnip + Zink (Adreno chips only): Implementing the open-source Vulkan driver (Turnip) to run OpenGL over Vulkan (Zink). This provides near-native GPU performance on Snapdragon devices.
To run PC apps (Steam, Wine, classic games) on ARM phones.
- Box64 / Box86: Userspace emulators that translate x86_64 instructions to ARM64 on the fly.
- Wine: Translates Windows API calls to Linux.
- Chain: Windows App -> Wine -> Box64 -> Linux Kernel (Android).
- Termux App: github.com/termux/termux-app
- Proot Distro: github.com/termux/proot-distro
- Termux X11: github.com/termux/termux-x11
- Busybox NDK (Chroot): github.com/Magisk-Modules-Repo/busybox-ndk
- Chroot Distro Module: github.com/Magisk-Modules-Alt-Repo/chroot-distro
- Adreno (Turnip/Zink): github.com/K11MCH1/AdrenoToolsDrivers/releases
- Mali (Bionic Vulkan): github.com/leegao/bionic-vulkan-wrapper/releases
- Virgl Renderer: gitlab.freedesktop.org/virgl/virglrenderer
- Pipetto Crypto Vulkan Wrapper: pipetto-crypto-vulkan-wrapper-android_25.0.0-1_aarch64.deb
- HW Acceleration Guide: enable-hw-acceleration
- Box64 (Userspace): github.com/ptitSeb/box64
- FEX-Emu (High Perf): github.com/FEX-Emu/FEX
- Wine (Windows Compatibility): gitlab.winehq.org/wine/wine/-/wikis/Download
- XFCE Desktop: www.xfce.org
- Termux Desktop Scripts: github.com/sabamdarif/termux-desktop
- Termux Desktops Collection: github.com/LinuxDroidMaster/Termux-Desktops
- AnLinux (Reference): github.com/EXALAB/AnLinux-App
- General Linux Setup: github.com/abhay-byte/Linux_Setup