AIToday
AI Coding AssistantsZenn AI/MLPublished: Nov 13, 2026, 16:00 JST

Shelly drops proot for bionic ELF to run Codex CLI on Android

Send on LINE
Shelly drops proot for bionic ELF to run Codex CLI on Android

3 Key Points

  1. What happened

    In commit 6ba1419a5 (2026-04-17), Shelly stopped routing around the ET_EXEC upstream codex binary via proot and instead ships codex-termux's bionic-linked Android binary, downloaded as libcodex_exec.so from v0.121.0-termux.

  2. Why it matters

    Swapping in a bionic-linked binary skirts the execution failure that the proot approach was meant to solve, so Shelly's Android app can run Codex without the proot workaround.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

Shelly had originally addressed the Android execution problem by bundling proot and libtalloc into jniLibs in an earlier commit (9c68f866c on 2026-04-11), along with a modified codex.js and a proot wrapper under ~/bin to maintain compatibility. That setup aimed to run the upstream ET_EXEC binary as-is, but the later commit 6ba1419a5 documents that this proot method failed.

The direct-execution method presented in 6ba1419a5 replaces the upstream binary with a bionic-linked ET_DYN binary from codex-termux, downloaded during CI and placed as libcodex_exec.so. On the device, a LibExtractor step unfolds this file, and a sed rewrite swaps the upstream binaryPath for a linker64 plus codex_exec combination. This sidesteps the need to run an ET_EXEC binary under SELinux on Android 14+.

The body also notes that the fork retains compatibility patches for Android PTY and locking behavior, and that the fork follows upstream at meaningful feature milestones rather than every patch release. These constraints suggest the direct-execution approach still carries some residual compatibility work, though the commit indicates it is the chosen path over proot.

FAQ
What was the problem with the upstream codex binary on Android?
The upstream codex binary was ET_EXEC (musl, static), and SELinux prevented it from executing on Android 14+.
What binary does Shelly use instead of the upstream one?
Shelly uses codex-termux's Android-native binary, which is ET_DYN and bionic-linked, downloaded as libcodex_exec.so from v0.121.0-termux.
Why did Shelly move away from proot?
The proot approach was recorded as having failed in commit 6ba1419a5, so Shelly replaced it with direct execution of the bionic binary.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleLooping NVIDIA's Dory 4B boosts no-CoT reasoning most