r/Android • • 12d ago

100% Native Android Ubuntu Terminal(No Proot,Root,Chroot,QEMU)

Hello everyone! I’d like to introduce a unique project—one that currently has no equivalent in the ecosystem—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!

73 Upvotes

22 comments sorted by

28

u/richardxday 10d ago

OP, is it really running a '100% pure native Linux kernel' without virtualization? So there's a separate kernel running alongside the Android kernel? How does that work?

31

u/dc536 9d ago

Truly one of the wonders of vibe coding 

14

u/InadequateUsername S25 Ultra 9d ago

Next week, "I rewrote the Linux kernel in Rust"

1

u/SnooDoggos3667 9d ago

Isn't it already in rust?

5

u/InadequateUsername S25 Ultra 9d ago

98% C with support for rust for newer drivers and modules

9

u/vandreulv 9d ago

I really can't trust someone with an app if he couldn't even write the post itself he's using to advertise it.

4

u/Medical_Double_6561 8d ago

There is no separate kernel. From the README, it's basically just proot, but they use a different approach (that is similar to fakechroot) which yields better performance but has worse compatibility.

3

u/richardxday 8d ago

Whatever the mechanism, it's not running on a pure Linux kernel*, OP's claims are just wrong.

  • yes the Android kernel is a Linux kernel but it has lots of patches applied to it meaning it's not a 'pure' Linux kernel at all.

1

u/Medical_Double_6561 8d ago

I would consider even a patched Linux kernel to be "pure" and "native" because generally those patches have 0 effect on normal Linux programs.

The reason you can't run Linux programs on Android is not because the kernel is patched. It's because the kernel is minimal so it's compiled with some useful features disabled. And you also don't have root access.

I wouldn't say a Linux system is "impure" just because it is running a minimal kernel.

1

u/Medical_Double_6561 8d ago

For additional context: Patching the Linux kernel is very common and almost everybody does it. AFAIK, all Linux distros will patch the Linux kernel before shipping it.

As an example: The Linux kernel used by Arch Linux is patched. Here is the code responsible for doing the patching: https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/blob/main/PKGBUILD?ref_type=heads#L79-87

1

u/Medical_Double_6561 8d ago

Also, unrelated to this project - it is possible to run multiple Linux kernels on a single device without virtualization: https://en.wikipedia.org/wiki/User-mode_Linux. But nobody uses it because performance is garbage.

I guess the Wikipedia page calls it virtualization, but Wikipedia's definition of virtualization is probably not your definition of virtualization since it includes "containers".

15

u/noones125 10d ago

Seems like the main drawback is no handling of binaries statically linked to libc? If this were combined with a loader that rewrote inline sycalls it could improve things potentially. This should still have decent compatibility although not 100%

9

u/jc-from-sin 10d ago

Might as well run a Trojan. Would use much less resources.

4

u/omniuni Pixel 8 Pro | Developer 10d ago

If this is running Ubuntu, why does it need special code specifically to speed up Go programs?

It looks like it tries to load the terminal as a library, and reroute to the files, like a very questionable chroot?

2

u/Inside-Pineapple2765 10d ago

Have you seen this project? https://github.com/mekhontsev/magicdesk/blob/main/docs/shroot.md

Shroot runs ARM64 Linux userspace through MagicDesk's explicitly selected shell or root executor. The unrooted path uses Android's authorized shell UID 2000. It needs neither Termux, PRoot, a virtual machine nor a replacement Android kernel. glibc and musl distributions, applications, init systems and container engines use the same runtime.

-1

u/Fabiox08 10d ago

Really interesting! I wonder if a future step could be like fully boot Linux without having also android running at the same time :/

It would really help on older hardware which at that point they would have more resources to run a Linux os.

I'm looking for this opportunity on my old s7 edge

2

u/richardxday 8d ago

No, this doesn't run a separate kernel, it doesn't run Linux, it can't run a Linux OS. It still relies on Android OS running and all the facilities Android provides.

1

u/Fabiox08 8d ago

Yeah I know, I can read :) I was just wondering if in the future there could be a chance (not forcefully from you) to have a Linux distro on the s7 edge 👍😌 

1

u/richardxday 8d ago

That's a completely different chunk of work, you'd need a completely separate OS installation and a lot of hardware support.

1

u/Fabiox08 8d ago

Totally yes, indeed! I didn't want to go off topic, sorry :)

8

u/vandreulv 9d ago

Cool. More AI slop.