Repository navigation
Cortex Release v1.29.2
Fixed
./script.sh, gcc, a venv's python and bundled JDKs failed with "Permission denied"
(#84). Android reaches the app's storage as both
/data/user/0/…and/data/data/…, and the kernel answersgetcwd(),/proc/self/cwdand
realpath()with either. A rootfs path spelled the other way was taken for one of Android's: it was
not mapped and was started without the exec runner, which Android 10+ refuses for the app's storage
since 1.29.0 (bash: ./start.sh: /bin/bash: bad interpreter: Permission denied,
gcc: fatal error: cannot execute '…/usr/bin/../libexec/gcc/…/cc1': execv: Permission denied,
python3 -m venvthenv/bin/pip). Both spellings now mean the rootfs, in the hook and in the code
added to Go programs.tar -xfailed with "Cannot open: Function not implemented" on kernels before 5.6
(#84). GNU tar 1.35 opens every file it extracts
withopenat2(RESOLVE_BENEATH)and has no fallback; where the kernel has noopenat2(or Android's
seccomp filter refuses it) the hook now walks the path one component at a time with the same
guarantees (checked against the kernel's ownopenat2in the tests).- nano, stty, tty, mc and Python's termios: "Permission denied" / "not a tty"
(#85). glibc 2.42+ reads and sets a terminal's
attributes only with theTCGETS2/TCSETS2ioctls, which the SELinux policy of apps refuses for a
pty.tcgetattr,tcsetattr,isattyandttynamefall back to the oldTCGETS/TCSETS*the
way glibc 2.43 would use them. - Go: "SIGSYS: bad system call" in
go runand "cannot find GOROOT"
(#85). Go 1.26'sos/exec.LookPathcalls
faccessat2, which Android's seccomp filter can refuse; system calls newer than Linux 5.1 now
answerENOSYSin Go programs (Go falls back from it), as they already did in static C programs.
A program started through the exec runner saw the runner as/proc/self/exe; Go programs now see
their own path, sogofinds its GOROOT withoutexport GOROOT=…. - Every command after
apt install build-essentialdied with "Illegal instruction" on older
ARM cores (and on the emulator). Ubuntu 26.04's build-essential depends on
coreutils-from-uutils, which replaced GNU coreutils with the Rust uutils, built with ARMv8.1
instructions.rust-coreutilsandsudo-rsare now pinned away, and an empty stand-in for
coreutils-from-uutilskeeps build-essential installable next to GNU coreutils. The nightly package
test of 1.29.1 failed 32 of 34 packages because of this and the first item. - rsync: "change_dir#2 … failed: No such file or directory" for every local copy.
getcwd()
answered the directory's Android path whilerealpath(".")and/proc/self/cwdgave the Ubuntu
one; rsync's receiver walks the directory from "/" and looked fordata/data/…in the rootfs.
getcwd()now gives the Ubuntu path (/tmp/x) too. fexecve()andexecveat()of a program in the rootfs (sudo can start the command this way)
go through the same path asexecve()instead of being refused by Android.
Changed
- README, store text and website: the desktop is XFCE with Firefox (Openbox was removed in 1.29.1).
- The package test fetches with
wget --triesandcurl --retryfrom debian.org: ubuntu.com refuses some of the CI
machines' connections.
Downloads
Cortex-arm64-v8a-signed.apk: 64-bit ARM (almost all current phones)Cortex-armeabi-v7a-signed.apk: 32-bit ARM
SHA256SUMS.txt has the checksums. Each APK also has a build attestation: gh attestation verify Cortex-arm64-v8a-signed.apk --repo ssfuisu/cortex shows it was built by this repository's workflow from the tagged source.
How to verify a download: signing/README.md. All versions: CHANGELOG.md.