r/LinuxOnAndroid • u/WahyuAK • 43m ago
uProot: Rootless Linux containers on Termux without ptrace or libc
I just released uProot— an experimental standalone userspace chroot and syscall virtualization runtime for Android/Termux
Instead of ptrace, it runs an in-process ELF loader + Tier-2 seccomp cBPF + AArch64 svc #0 fast-path with built-in userspace OverlayFS (--upper / --ephemeral). Hot I/O (read, write, futex, epoll, mmap) stays native in the kernel.
Quick try (zero compiler required):
curl -fsSL https://raw.githubusercontent.com/wahyuzero/uproot/main/install.sh | sh
uproot-distro install alpine
uproot-distro login alpine --ephemeral
Already using proot-distro? Boot your existing rootfs directly:
uproot-distro login debian --from-proot-distro
Benchmark on real phones (scripts/uproot-bench --with-proot):
Xiaomi Redmi 14C (mt6768, Android 14, Kernel 5.10.209, Alpine):
• VFS 1K: 346ms vs PRoot 2147ms
• Tree x3: 96.9ms vs PRoot 596ms
• --syscall uid 100K: 6.9ms vs PRoot 16300ms
• --syscall stat 16K: 96.5ms vs PRoot 4991ms
Samsung Galaxy Note10+ (Exynos 9825, Android 12, Kernel 4.14.113, Debian 13):
• VFS 1K: 433ms vs PRoot 2505ms
• Tree x3: 2837ms vs PRoot 22792ms
• --syscall uid 100K: 3.7ms vs PRoot 14216ms
• --syscall stat 16K: 101ms vs PRoot 5068ms
Reproduce on your own device:
curl -fsSL https://raw.githubusercontent.com/wahyuzero/uproot/main/scripts/uproot-bench | sh -s -- --with-proot
Repo: https://github.com/wahyuzero/uproot
If anyone here has an Android 15/16 device, Android <= 11, or armv7l phone and wants to test, feedback and issues are very welcome.
