Skip to content

Cortex Release v1.29.2

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 22:11
adc824a

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 answers getcwd(), /proc/self/cwd and
    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 venv then v/bin/pip). Both spellings now mean the rootfs, in the hook and in the code
    added to Go programs.
  • tar -x failed with "Cannot open: Function not implemented" on kernels before 5.6
    (#84). GNU tar 1.35 opens every file it extracts
    with openat2(RESOLVE_BENEATH) and has no fallback; where the kernel has no openat2 (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 own openat2 in 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 the TCGETS2/TCSETS2 ioctls, which the SELinux policy of apps refuses for a
    pty. tcgetattr, tcsetattr, isatty and ttyname fall back to the old TCGETS/TCSETS* the
    way glibc 2.43 would use them.
  • Go: "SIGSYS: bad system call" in go run and "cannot find GOROOT"
    (#85). Go 1.26's os/exec.LookPath calls
    faccessat2, which Android's seccomp filter can refuse; system calls newer than Linux 5.1 now
    answer ENOSYS in 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, so go finds its GOROOT without export GOROOT=….
  • Every command after apt install build-essential died 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-coreutils and sudo-rs are now pinned away, and an empty stand-in for
    coreutils-from-uutils keeps 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 while realpath(".") and /proc/self/cwd gave the Ubuntu
    one; rsync's receiver walks the directory from "/" and looked for data/data/… in the rootfs.
    getcwd() now gives the Ubuntu path (/tmp/x) too.
  • fexecve() and execveat() of a program in the rootfs (sudo can start the command this way)
    go through the same path as execve() 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 --tries and curl --retry from 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.