Cortex Release v1.29.3
Fixed
- The desktop stayed black. Ubuntu 26.04's GTK loads every icon and picture through glycin,
which first asks bubblewrap (bwrap) for a sandbox. Android gives apps no namespaces, and bwrap
failed with "Can't read /proc/sys/kernel/overflowuid: Permission denied", an answer glycin did not
know: it took the sandbox for available, no icon could be loaded, and XFCE's session, panel and
desktop ended at once ("Bail out! … Failed to load …image-missing.svg: Loader process exited").
Cortex'sbwrapnow answers with bubblewrap's own message for a system without user namespaces,
and glycin loads images without the sandbox. The desktop, its panel and programs (Firefox, the
terminal, Mousepad, Thunar) start again. - Character set conversions other than UTF-8 failed in every C program: glibc loads its
converters (/usr/lib/<arch>/gconv) with its own internal calls, which the hook does not see. iconv
said "conversion fromISO-8859-1' is not supported", GTK could not take text from the desktop's clipboard ("Error converting selection from STRING"), and vim, git and PHP's iconv failed with Latin-1 or Windows-1254 (Turkish) text. The hook now setsGCONV_PATH` to the rootfs's converters of
its own architecture. - uptime, vmstat, ps, top and Node's
os.cpus(): Android keeps/proc/uptime,/proc/stat,
/proc/loadavg,/proc/vmstatand most of/proc/sysfrom apps.uptimefailed ("Cannot get
system uptime"),vmstattoo ("Unable to create vmstat structure"),pssaid "Unable to get system
boot time" and showed wrong start times,topshowed no CPU use, andos.cpus()was empty in
Node, so build tools that start one worker per processor started none. Where the kernel refuses
them, the hook now makes these files from what an app may ask for (the clocks,sysinfo(), the
number of processors,uname()), as it did for/proc/version. What each processor did is not
known to an app: it is counted as idle. - Node's
os.networkInterfaces()threw "Permission denied", and with it development servers
that print their network address (Vite, webpack's, Next.js); Python'ssocket.if_nameindex()and
hostname -Ifailed too. glibc'sgetifaddrs()andif_nameindex()bind a netlink socket and ask
for the links, which Android 11+ refuses apps. Where they fail, the hook asks the way Android's own
libc does: the addresses (which apps may read) and each interface's name and flags. Hardware
addresses stay hidden, as Android hides them from apps. - Names added to
/etc/hostswere never found, and service names were unknown: glibc reads
/etc/hosts,/etc/resolv.confand/etc/servicesfrom inside itself, where the hook does not
reach, so it read Android's/etc(no resolv.conf, no services).getservbyname("https")failed,
getaddrinfo(host, "ssh")was refused or gave port 80, andgethostbyname()failed for every name
("Host name lookup failure" in Python'ssocket.gethostbyname_ex(),getent hosts, Perl, PHP).
getaddrinfo()now looks in Cortex's/etc/hostsfirst and takes service names from its
/etc/services;getservbyname(),getservbyport(),getprotobyname()(Python's
socket.getprotobyname("tcp")failed too) and thegethostbyname()family answer from them,
Cortex's/etc/protocolsand the DNS fallback where glibc finds nothing. chshcalled every shell invalid,/bin/bashtoo, and refused a new one to a user:
getusershell()read Android's/etc/shells(there is none) and gave glibc's built-in two. It
reads Cortex's now.
Tests
- The emulator test checks iconv (also with an empty environment), bwrap's answer and the made
files of /proc, the network interfaces, /etc/hosts and /etc/services. - The package test starts and asks MariaDB as root (
sudo mariadb), its administrator on Ubuntu: as
the app's user it was refused ("Access denied for user 'cortex'"), as on any Ubuntu.
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.