r/mobilelinux • u/SprinklesOk1458 • 21d ago
Apps 100% Native Android Ubuntu Terminal(No Proot,Root,Chroot,QEMU)
Hello everyone! I'd like to introduce a project I've been working on, which is also completely open-source. The project is called "Cortex." It is an Android terminal application that runs Ubuntu 24.04 using a 100% pure, native Linux kernel—without relying on virtualization or isolation methods like PRoot or Chroot. It does not require root access, though it can also be used with root privileges. You can find the GitHub repository here: https://github.com/ssfuisu/cortex. I encourage you to take a look and give it a try; it includes many features, and I am actively developing it. Most importantly, this is a one-of-a-kind project in the ecosystem—I am the one who conceived this idea. I would also appreciate it if you could star the repository!
1
u/bi4key 20d ago
Differents from Termux? To run server, RAM usage and CPU usage?
3
u/SprinklesOk1458 20d ago
Termux builds its own packages for Android, so you get what's in their repo. Cortex runs the actual Ubuntu 24.04 packages from Ubuntu's archive with apt and glibc, so anything that has an arm64 .deb or a prebuilt glibc binary just works. Compared to Termux + proot-distro there's no ptrace stop on every syscall, which is what makes proot slow with apt, git or compiling
RAM and CPU wise there's no VM or emulator, it's just the processes you start, same as Termux. The only extra is that small path redirect library which costs a fraction of a microsecond per file call
1
u/AgitatedEquivalent54 20d ago
"One that currently has no equivalent " Lmao
3
u/SprinklesOk1458 20d ago
Yeah fair, that line was overhyped, my bad. The LD_PRELOAD trick itself is old, fakechroot has been doing it for ages. What I meant is I haven't seen an Android app that runs stock Ubuntu packages this way out of the box. If you know one I'd honestly like to check it out
1
1
u/ashraf45645612 20d ago
What about GUI ?
1
u/SprinklesOk1458 20d ago
No GUI yet, it's terminal only for now, there's no X11 or Wayland server in it. It's something I'd like to add later but I don't want to promise a date. For now people mostly use it for dev stuff, servers and CLI tools, and if you run a web app like a dev server Cortex shows a notification to open it in your browser
1
u/SigmaxAlpha 20d ago
Hay version para arm32?
1
u/SprinklesOk1458 20d ago
Sí, en la página de releases está Cortex-armeabi-v7a-signed.apk para arm32 (armv7). Funciona desde Android 7 en adelante https://github.com/ssfuisu/cortex/releases/latest
1
u/ShadowDXS 20d ago
1
u/SprinklesOk1458 20d ago
Yeah that's a fair way to put it, it's the same idea as fakechroot/fakeroot, an LD_PRELOAD library in userspace. "No chroot" meant there's no actual chroot call and no root needed for it, not that there's nothing doing the path mapping. The work was mostly getting that approach to hold up on Android: seccomp blocking some syscalls, static Go binaries that skip glibc, hard links on app storage, that kind of stuff

13
u/Either-Goat2382 21d ago
I dont understand the point of all of these weird AI generated attempts to run a different operating system on android "natively".
Assuming claude made something that actually works, this is kind of neat I guess. But running a compatibility layer that translates linux calls to android is NOT zero overhead and its going to be so much buggier than just using AVM. Potentially even dangerous since the apps wont understand the system that theyre running in.
I dont even know why you would WANT to have linux apps run on android with zero isolation. Thats a great way to brick a device you cant reimage. And for what? 2kb less memory usage?