What's new in v1.26.31
Compiling works
apt install build-essential(andg++,libtool,python3-dev,zlib1g-dev,libsqlite3-dev,clang,gfortran,rustcand every other-devpackage) failed with "held broken packages", andgcccould not compile anything because the C library headers were missing. The patched glibc that Cortex pins keeps Ubuntu'slibc6-devout, so the app now bringslibc6-dev,libc-dev-bin,libcrypt-dev,linux-libc-devandrpcsvc-protoitself (stock Ubuntu packages, recorded in dpkg's database). They are unpacked at the first start, on a fresh install and on an existing one (about 17 MB; the APK grows by about 4 MB).makecrashed with "Bad system call" as soon as it ran a recipe (it asksposix_spawn()to reset the user ids, which Android's seccomp filter kills). Fixed in the preloaded library.make -j4builds Lua 5.4.7 in 8 s.- The
libc6*pin also blocked about 200libc6-*-crosspackages; it now nameslibc6,libc6-devandlibc6-dbgonly, socrossbuild-essential-armhfinstalls too.libc6andlibc-binstay at the version Cortex ships, andapt upgradeleaves them alone. - Checked on a phone:
apt install build-essentialworks; C, C++17 (threads, regex),make, shared libraries withdlopen, cmake + ninja, autotools, OpenSSL/zlib via pkg-config, Python C extensions. Of 50 common packages 35 could be installed before and 45 can now, none got worse. - Limits: statically linked programs (
gcc -static) are killed at start by Android's seccomp filter, so link dynamically.localesstill cannot be installed (its locale archive is not readable through the preloaded library) andvalgrindneedslibc6-dbg. The 32-bit (armeabi-v7a) build is compiled and its packages are checked in CI but not run on a device.
Also in this release, from v1.26.30 (a pre-release as well): cheaper file-path calls and program starts (stat() +18% -> +3% over a call without Cortex, fopen +12% -> +3%, a missing command in PATH +140% -> +8%), terminal output that scrolls about 3x faster in a test of the emulator, scripts and Android programs started with posix_spawn no longer crash, ls -l prints no stray errors, xz -T2 and up honours the compression level, #! loops fail with ELOOP instead of crashing. Details in the README's Performance section.
Signing and updating: the first releases signed with the rotated key (see signing/README.md). Android 13 and newer take the new key, Android 12 and older keep seeing the original one. Checked: both APKs verify (v2, v3, v3.1); clean installs on an Android 12 phone start, unpack the runtime and the C development packages. Not yet tried on a device: updating an installed copy in place, and any update on Android 13 or newer. That is why this is a pre-release for now; the in-app updater does not offer it.
Cortex Release v1.26.31
Cortex turns your Android device into a complete, native development powerhouse powered by Ubuntu 24.04 LTS (Noble Numbat) and Glibc 2.39 — with ZERO virtualization, ZERO PRoot, and ZERO containers.
Features & Assets:
- Ultra-compact APK size with genuine Glibc 2.39 & Ubuntu 24.04 runtime.
- Native OpenCode, Meta Muse Code, and OpenJDK 17 support.
- High-speed native terminal emulator with hardware acceleration.
Included Packages & Assets:
Cortex-arm64-v8a-signed.apk(64-bit ARM)Cortex-armeabi-v7a-signed.apk(32-bit ARM)