RootX IDE & Linux Terminal Manual
Everything you need to compile, build, run, and debug native code on Android. From JNI hardware bridges and PRoot Linux containers to OTG shortcut maps, package management, and system diagnostics.
Core Architecture & Execution Engines
RootX is engineered as an on-device integrated development environment and terminal emulator. Unlike cloud-streamed IDEs that require persistent low-latency internet, RootX compiles and executes code directly on your mobile device’s native ARM64 CPU.
Languages such as Node.js v22, Python 3, PHP 8, and Go are pre-compiled for the Android NDK (ARM64-v8a). System calls dispatch through JNI directly to native process streams without virtualization overhead, unlocking raw processor speed.
PRoot intercepts Linux syscalls using the kernel ptrace() mechanism, emulating chroot and bind mounts entirely in user space. This allows running full Ubuntu 24.04 and Kali Linux rootfs environments with simulated root authority without unlocking or rooting your device.
All compile artifacts, database tables, and source files remain inside isolated application storage (/data/user/0/aurix.root.x/files). No code or telemetry is uploaded to external servers unless you explicitly sync with your private GitHub or Google Drive backups.
Workspace & Project Management
RootX organizes your workflows into isolated project workspaces. You can initiate workspaces via the graphical user interface or automate generation using command-line shell utilities.
Method 1: Interactive GUI Wizard
Tap the + Floating Action Button on the home dashboard.
Provide project name, choose root directory, and pick initial template.
Tap Create to spawn the workspace folder and mount in the editor.
Method 2: Command-Line Generator
Generate project directories instantly from any active terminal shell session:
Workspace Actions Reference
| Action | Target Operation | Output / Destination |
|---|---|---|
| Open Project | Mounts workspace directory into the multi-tab editor | Editor Interface |
| Export as ZIP | Compresses project directory including assets | /storage/emulated/0/Download/ |
| Push to GitHub | Synchronizes workspace with linked remote repository | git remote origin main |
| Delete Project | Permanently wipes workspace folder and local history | Irreversible Action |
Code Editor & Live Browser Preview
RootX features a desktop-grade code editor tailored for touchscreens and physical keyboards. It includes syntax lexers for 30+ languages, smart bracket pairing, auto-formatting, and an integrated sandboxed browser preview.
Multi-Language Syntax Highlighting
Optimized tokenizers for JavaScript, TypeScript, Python, HTML/CSS, Go, Kotlin, Java, PHP, C/C++, Rust, SQL, JSON, and Bash.
Intelligent Code Formatting
Instant formatting on save or shortcut with built-in Prettier rules for Web and Black/Autopep8 rules for Python scripts.
Real-Time Script & Web Preview Engine
Press Ctrl + P or tap the Play button in the editor toolbar. RootX starts an internal local server serving HTML/CSS/JS with a real-time console capture overlay capturing standard output, runtime exceptions, and network calls.
OTG & Bluetooth Keyboard Shortcuts
RootX supports desktop-grade key combinations with low latency over USB OTG adapters and Bluetooth keyboards.
| Key Combination | Assigned Action |
|---|---|
| Ctrl + S | Save active file to local disk |
| Ctrl + P | Launch Live Browser Preview / Script Run |
| Ctrl + T | Toggle Terminal bottom drawer pane |
| Ctrl + M | Toggle File Explorer drawer slider |
| Ctrl + F | Format active code with Prettier / Black |
| Ctrl + Shift + F | Open global Search & Replace dialog |
| Ctrl + N | Create new file in active workspace |
| Ctrl + W | Close current editor tab |
| Ctrl + R | Run current file via default runtime |
Unlike standard Android terminal wrappers that hard-kill background worker threads (causing database locks, corrupt socket descriptors, or frozen UI threads), RootX dispatches raw ASCII byte 0x03 directly into the native PTY stream. This triggers a graceful SIGINT inside Node, Python, and Linux processes.
Dual Terminal Engines & Linux Distros
RootX provides dual terminal architectures to balance ultra-lightweight execution with complete desktop Linux environment capabilities.
Alpine Linux Subsystem
Lightweight Alpine 3.24 container (~3.5 MB rootfs) powered by apk. Optimized for ultra-fast startup, low RAM consumption, and instant Node.js/Python script execution.
Ubuntu & Kali Linux RootFS
Full Ubuntu 24.04 LTS and official Kali Linux security container environments. Features complete apt package manager, systemd emulation, and simulated root privileges.
Distribution Management CLI Reference
Integrated Package Manager (`rx` / `pkg`)
RootX includes a dedicated native package manager. Install and link language runtimes without configuring complex build flags or environment paths manually.
| Package | Runtime / Version | Installation CLI |
|---|---|---|
| Node.js | Node.js v22.0.0 & NPM v10.8.2 | $ rx install nodejs |
| Python 3 | Python 3.11+ Interpreter & PIP | $ rx install python |
| PHP | PHP 8.2 CLI Engine & Web Server | $ rx install php |
| Go (Golang) | Go v1.22.5 ARM64 Toolchain | $ rx install golang |
| Java & Kotlin | ECJ Compiler, Kotlinc & DexExecutor | $ rx install java |
| MariaDB (MySQL) | MariaDB 10.11 Server Daemon & Client | $ rx install mysql |
Package Removal
Version Verification
Shell Operations & Background Task Control
RootX provides a full POSIX-compliant shell environment. Standard utilities for file management, process handling, and background task management are pre-configured.
File System & Navigation Commands
Direct Script Execution
Background Server & PID Task Control
When servers run in background threads (such as Vite, Express, or Django), manage them using the built-in rx task manager:
Instant Storage Navigation Flags
/data/user/0/...)/sdcard/ or Download folder)AppSettings Parameters & Visual Themes
RootX exposes fine-grained customization parameters stored in persistent app state. Fine-tune your typography, indentation, and AI companion endpoints.
AppSettings Configuration Matrix
| Parameter Key | Default Value | Description |
|---|---|---|
| themeName | "ONE_DARK" | Active syntax highlighting color scheme for editor |
| appTheme | "Aurix UI" | Application layout theme (AMOLED Dark vs Glass UI) |
| fontSize | 14 | Editor font size (adjustable between 8sp and 32sp) |
| tabSize | 4 | Indentation spaces count (2, 4, or 8) |
| autoFormatOnSave | true | Automatically formats code on file save |
| autoCloseBrackets | true | Auto-pairs brackets (), [], and quote marks |
| selectedAiModel | "gpt-4o-mini" | Connected OpenRouter AI model for assistance |
Supported Syntax Color Themes (11 Handcrafted Palettes)
Insert your custom OpenRouter API token in Settings > AI Configuration to unlock multi-model switching between Claude 3.5 Sonnet, GPT-4o, Gemini 1.5 Pro, and open-source Llama 3 models for automated bug fixing and code generation.
System Diagnostics & Troubleshooting
Engineered step-by-step diagnostic procedures for common edge cases, port collisions, and Android sandbox limitations.
"Command not found" when running complex NPM, Pip, or native C++ modules
Underlying Cause: The standard standalone Android shell relies on Bionic libc instead of GNU C Library (glibc). Complex binaries compiled for standard Linux fail to resolve dynamic linker bindings.
v14 linuxinstall ubuntu or distro switch ubuntuapt install python3-pip.Port blocked ("EADDRINUSE: address already in use") or background server hangs
Underlying Cause: Vite, Express, or Django servers started in previous terminal tabs keep TCP sockets bound in background daemon threads.
$ rx task$ rx task -<PID> kill$ rx task all killPermission Denied on SD Card path (/storage/emulated/0)
Android 11+ Scoped Storage restricts write access to root external storage.
$ rx -i to operate in unrestricted high-performance internal app storage.Terminal UI crash during intense compile loops
Main looper threads can choke if continuous stdout writes occur without throttling.
