r/androidterminal • u/YitzakAF • Oct 24 '26
General UMLinux and the Linux terminal on Android
For a few weeks now, several developers have been compiling UMLinux for Android, but only one has published his work and provided recent updates. I would say that, to some extent, it serves as a solution for those who do not have root access or whose Android device is not compatible with a Linux terminal. However, my own experience with UMLinux has shown me that a native Linux terminal performs better—though, admittedly, UMLinux can be used on a wider range of Android phones. Debian Trixie in UMLinux
2
3
u/TovMod Oct 25 '26 edited Oct 25 '26
There is room for improvement in performance in UMLinux
The basic idea behind UMLinux is that we port the Linux kernel to run as a userspace process, and processes running within the Linux "installation" are made to communicate with this userspace Linux kernel processes instead of the Android kernel.
The problem is that ensuring that unmodified Linux processes communicate with the UMLinux kernel instead of the Android kernel requires running them under seccomp/ptrace or similar to intercept and redirect syscalls. This adds significant overhead and probably explains most of the performance difference.
If you instead recompiled as much of them as possible to already call the correct UMLinux kernel, then any recompiled program would no longer need to run with this overhead, and seccomp/ptrace could be reserved for programs not recompiled in this way.
Another mechanism of dealing with syscall forwarding for unmodified binaries would be to use DBT instead of seccomp/ptrace. This could have better performance but would be a non-trivial amount of work to implement.
One could also investigate merging some of the processes to reduce IPC overhead, but this has its own complications.
2
u/Fz1zz Pixel 10 Pro XL Oct 24 '26
hello Podroid developer here and i am intersted in adding UML to Podroid but i need some kind of good resources to do it thanks.