Kovax00/KerneX
About
Real Debian 12 & Kali Rolling Linux terminal for Android - Zero Root (PRoot) + Native Chroot, Offline RootFS, Split-Pane, Web Preview & 1-Click AI Coding Agents Hub.
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original

KerneX — Real Debian 12 & Kali Rolling Linux for Android
Boot a genuine, full-featured Debian 12 (Bookworm) or Kali GNU/Linux Rolling environment directly on Android — Zero Root required, offline-ready out of the box, with a built-in AI Coding Agents Hub.
Download APKs • Why KerneX vs Termux • AI Agents Hub • Architecture • Build from Source
Download Ready-to-Install APKs
Both editions ship with their complete Linux RootFS bundled inside the universal APK (arm64-v8a + x86_64) and use separate package IDs (com.debterm.app and com.kaliterm.app), so you can install both side-by-side on the same phone.
| Edition | Base Distro | Package ID | Size | Download |
|---|---|---|---|---|
| KerneX Debian | Debian GNU/Linux 12 (Bookworm) | com.debterm.app |
175.4 MB | Download v1.4.0 APK |
| KerneX Kali | Kali GNU/Linux Rolling | com.kaliterm.app |
210.0 MB | Download v1.4.0 APK |
Zero setup: Install the APK → open the app → you are immediately inside a real Linux shell with standard FHS (
/etc,/usr,/var,/home,/root,dpkg,bash) — no manualproot-distroscripts or downloads needed to boot.
Why KerneX vs Termux?
| Feature | KerneX (Debian & Kali) | Traditional Termux Setup |
|---|---|---|
True Linux FHS (/etc, /usr, /var) |
Instant on first boot | Non-FHS prefix ($PREFIX); requires manual proot-distro |
| Offline-Ready Bundled RootFS | Included in APK (arm64-v8a & x86_64) |
Requires online download & manual configuration |
Zero Root (PRoot) + Native Chroot (su) |
Both built-in (toggleable) | Manual scripts |
| 1-Click AI Coding Agents Hub | Gemini CLI, Claude Code, Codex, Aider, VS Code | Manual Node/Python setup |
| Split-Pane Dual Terminal | Built-in (◫) |
External tmux only |
Integrated localhost Web Preview |
Built-in (🌐) |
External browser only |
| Visual Package Manager & 1-Tap Stacks | Built-in GUI + searchable dpkg DB |
CLI only |
| Built-in File Explorer & Code Editor | Direct Linux & /sdcard editor |
External apps |
| Dynamic Live Reflow on Zoom | Pinch-to-zoom & A− / A+ |
Static wrap |
| Background Survival | Foreground Service + WakeLock + WifiLock + OEM guides | Often killed by OEM battery managers |
Key Features
1. Real Linux Environments (Zero Root or Native Chroot)
- KerneX Debian (
com.debterm.app): Full Debian 12 Bookworm with standard repositories,dpkg,bash, and one-tap developer stacks (Python 3,C/C++ GCC,Node.js,Git & SSH,Pro CLI,Net Tools). - KerneX Kali (
com.kaliterm.app): Full Kali GNU/Linux Rolling (http.kali.org/kali,kali-archive-keyring) preloaded with essential security utilities (nmap,dig,whois,netcat,openssh-client,curl,htop,jq,vim,nano,iproute2) plus 1-tap stacks (Kali Top 10,Web Recon,Net & Sniff,Passwords,Forensics). - Optional Native Chroot Mode: On rooted devices (Magisk / KernelSU), switch seamlessly from PRoot to native Linux Chroot for bare-metal syscall performance.
2. Built-in AI Coding Agents Hub
Turn your Android phone into a pocket AI workstation with 1-tap installation and an encrypted-in-rootfs local API key vault (GEMINI_API_KEY, ANTHROPIC_API_KEY, OPENAI_API_KEY, etc.):
- Gemini CLI, Claude Code, ChatGPT / Codex CLI, OpenCode, Qwen Code, Aider, ShellGPT, LLM CLI
- VS Code in Browser (
code-server) paired with KerneX's built-inlocalhostWeb Preview (🌐).
3. Custom Terminal Engine Written from Scratch (Kotlin + C++ NDK)
- Native C++ POSIX PTY Engine (
libdebterm_pty.so/libkaliterm_pty.so) withTIOCSWINSZresize propagation,IUTF8termios, and clean process-group lifecycle management. - Android-Patched PRoot + Static
talloc+ Standalone Loaders compiled from source with Android NDK r28 (--link2symlink,--sysvipc,--kill-on-exit, fake root-0, virtual/procbindings for Android 10–15 SELinux compatibility). - Full VT100 / xterm-256color / 24-bit TrueColor Emulator:
- 5,000-line O(1) ring-buffer scrollback + alternate screen buffer (
?1049h/?1049l) forvim,nano,htop,tmux,less,mc. - Streaming UTF-8 decoder, East Asian & emoji display widths, DEC Special Graphics box-drawing, OSC
0/2/7/52, bracketed paste (?2004h), DECCKM (?1h), and SGR mouse reporting (?1006h). - Hardware-accelerated
TerminalViewwith JetBrains Mono, pinch-to-zoom live reflow, free-form touch selection handles with auto-scroll, URL detection, and 6 curated themes (Debian Night, Dracula, Nord Polar, Gruvbox Dark, Solarized Dark, Matrix Neon).
- 5,000-line O(1) ring-buffer scrollback + alternate screen buffer (
4. Android ↔ Linux Authenticated IPC Bridge
Interact with Android directly from your Linux shell scripts:
debterm-info/kaliterm-info— Neofetch-style hardware & distro bannerdebterm-open <url>/kaliterm-open <url>— Open URLs in Android's browserdebterm-clip-set/debterm-clip-get(andkaliterm-*) — Pipe stdout/stdin directly to Android's clipboarddebterm-toast <msg>/kaliterm-toast <msg>— Trigger native Android toast notifications
Architecture
flowchart LR
UI["TerminalView + Split-Pane + Web Preview (Kotlin)"] --> EMU["VT100 / TrueColor Emulator"]
EMU --> PTY["Native C++ POSIX PTY (JNI / NDK r28)"]
PTY --> EXEC{"Execution Engine"}
EXEC -- "Zero Root" --> PROOT["Android-Patched PRoot + Static talloc"]
EXEC -- "Rooted (Magisk/KSU)" --> CHROOT["Native Linux Chroot"]
PROOT --> ROOTFS["Real Debian 12 / Kali Rolling RootFS"]
CHROOT --> ROOTFS
ROOTFS <--> IPC["Authenticated Local IPC Bridge (Clipboard / Browser / Toast)"]
Repository Layout
.
├── app/ # KerneX Debian (com.debterm.app) — Kotlin + C++ JNI
├── scripts/ # NDK PRoot builder, Debian 12 rootfs builder, deps fetcher
├── vKali/ # KerneX Kali (com.kaliterm.app) — standalone Gradle project
│ ├── app/ # Kali Rolling app, Chroot/PRoot engine, Kali stacks & UI
│ └── scripts/ # NDK PRoot builder & Kali Rolling rootfs builder
├── logo-kernex-debian.png # KerneX Debian artwork
└── RELEASE_NOTES.md # v1.4.0 changelog & SHA-256 verification
Building from Source
Prerequisites
- Android SDK (API 35) & Android NDK r28 (
28.2.13676358) - JDK 17 & Python 3
- Linux / WSL with
mmdebstrap(only if rebuilding the.tar.xzrootfs archives from scratch)
Build KerneX Debian
# 1. Fetch talloc & JetBrains Mono fonts (optional if already present)
bash scripts/fetch_deps.sh
# 2. Build PRoot + loaders for arm64-v8a & x86_64 with Android NDK
python scripts/build_proot_ndk.py
# 3. Generate Debian 12 Bookworm rootfs archives (WSL/Linux)
bash scripts/build_rootfs.sh
# 4. Run unit tests & build universal APKs
./gradlew testDebugUnitTest assembleDebug assembleRelease
Build KerneX Kali
cd vKali
bash scripts/build_kali_rootfs.sh
./gradlew testDebugUnitTest assembleRelease
Author & Credits
Created by Kovax00.
If you find KerneX useful, consider giving this repository a Star — it helps more developers and security researchers discover the project!
License
Released under the MIT License.
Explore related projects
Loading…