RootX IDE & Terminal Manual
Complete A-to-Z technical documentation for RootX. Learn about the native ARM64 compilation engine, PRoot Linux container architecture, code editor preferences, OTG keyboard shortcuts, package manager runtimes, and deep troubleshooting steps.
1. Core Architecture & Overview
RootX is an ultra-modern, high-performance integrated development environment (IDE) and terminal emulator engineered for real code compilation and execution directly on Android. Rather than relying on cloud simulation, RootX executes code at native speeds on your mobile hardware.
A. Native Compilation Engine (NDK / JNI Direct Bridge)
Languages such as Node.js, Python 3, PHP, and Go are pre-compiled specifically for the Android NDK (Native Development Kit) ARM64 target. RootX bridges system command calls directly to process binaries without virtualization overhead, achieving full native CPU performance.
B. PRoot Environment (User-Space Linux Container on Android)
PRoot is a user-space implementation of chroot, mount, and binfmt_misc using the ptrace() system call tracing mechanism.
When a program makes a standard Linux file system call, PRoot captures it and redirects it to local sandbox directories. This allows running full Linux distributions like Ubuntu 24.04 LTS (ARM64) and Alpine Linux (ARM64) with complete root privileges without requiring Android root access.
Visual Identity Systems
• Aurix UI: AMOLED-optimized pitch black (#000000) canvas for night coding & extreme battery saving.
• Glass UI: Translucent glassmorphism Apple-inspired layout with micro-borders and soft glows.
Zero Cloud & Privacy
• 100% Local Sandboxing: Files, DB queries, and compile chains stay on device.
• Encrypted Google Drive: Backup/restore build projects securely.
• Encrypted Secrets: API keys and GitHub tokens stored safely in device memory.
2. Workspace & Project Management
2.1 Creating a New Project
Method A — Graphical UI Wizard
- Tap the "+" Floating Action Button or "New Project".
- Enter your project name and choose directory path.
- Tap "Create" to generate workspace and launch editor.
Method B — Terminal Shell Command
Open RootX Terminal and execute:
2.2 Dashboard & Search
- All active projects appear as cards on the Home Screen.
- Top Bar Search icon filters projects by name instantly.
- Tap any card to load into the Multi-Tab Code Editor.
2.3 Project Card Menu Options
- Open Project: Load active workspace.
- Rename Project: Update folder name & metadata.
- Export as ZIP: Save compressed archive to Downloads.
- Delete Project: Permanently remove project folder.
- Push to GitHub: Sync code directly to GitHub.
2.4 User Profile & License Status
Tap profile icon at top left to view Account Type (Free vs. PRO) and GitHub authentication state. Entering a valid RootX PRO License Key unlocks PRoot Linux Containers and advanced multi-distro tools.
3. Code Editor & Live Preview
3.1 File Explorer & Navigation
Swipe left edge or tap Navigation Drawer icon. Manage files with + File or + Folder. Long-press files for rename, delete, duplicate, or path copying.
3.2 Editor Features (VS-Code Style)
3.3 Live Web & Script Preview
Tap "Play / Preview" or press Ctrl + P. Launches internal WebView browser rendering HTML/CSS/JS with a built-in console logger capturing console.log and network logs.
4. OTG Shortcuts & Safe Interrupt Signals
RootX features zero-lag physical desktop keyboard shortcut support for USB OTG and Bluetooth devices.
Global & Editor Shortcuts
Terminal Shortcuts
Pressing Ctrl + C or clicking the STOP button in UI dispatches ASCII byte signal value 3 directly into native process stream buffers. This gracefully interrupts running tasks without freezing the app or locking files.
5. Dual Terminal Engines & Linux Distros
5.1 rx 12.0.6 E (Native Android Shell)
Fast native Android shell environment (12.0.6v) for lightweight Node, Python, and PHP scripts.
5.2 rx v14 Linux (PRoot Container Engine)
Full Linux system mount with root privileges (root@ubuntu) and real package managers (apt, apk).
5.3 Distribution Management Commands
6. Integrated Package Manager (`rx` / `pkg`) & Runtimes
Install development packages using rx install <package> or pkg install <package>.
Package Removal
Version Verification
7. Built-In Shell Commands & Storage Navigation
7.1 File System Operations
7.2 Language Execution Commands
7.3 MariaDB / MySQL Server Commands
7.4 Task & Process Control (`rx task`)
7.5 Storage Navigation Modes
8. App Settings & Theme Parameters (A to Z)
Configure RootX via the Settings gear icon. Settings are serialized automatically inside the AppSettings state:
Complete AppSettings Parameters
themeName: Default "ONE_DARK" syntax palette.appTheme: Default "Aurix UI" (AMOLED vs. Glass UI).fontSize: Scalable from 8sp to 32sp (Default 14).showLineNumbers: Toggle gutter line numbers (Default true).tabSize: Indentation spaces count (2, 4, 8; Default 4).wordWrap: Soft line wrapping toggle (Default false).autoSave: Background auto-save files (Default true).autoCloseBrackets: Auto pair (), , [], "", '' (Default true).hapticFeedback: Keyboard vibration feedback (Default true).previewAutoRefresh: Auto refresh preview on save (Default true).maxConsoleLines: Web console output limit (Default 200).autoFormatOnSave: Prettier & Python beautifier (Default true).showMinimap: Right preview scrollbar minimap (Default false).selectedAiModel: Default "openai/gpt-4o-mini" model.Supported Editor Syntax Themes (11 Palettes)
OpenRouter AI Integration
Connect your OpenRouter API key to switch between Gemini 1.5 Pro, Claude 3.5 Sonnet, GPT-4o, and Llama 3 70B. Custom system prompts allow tuning AI code generators.
GitHub PAT & Sync
Store Personal Access Tokens (PAT) securely for private repo cloning, branch targeting (main/master), and auto Git push synchronization.
9. Deep System Diagnostics & Troubleshooting
Real technical diagnostics and step-by-step solutions for common mobile development issues:
Problem 1: "Command not found" inside Standard Shell on running Python, NPM, or PHP packages.
Root Cause: Standard Android shell runs standalone static binaries without native glibc architecture bindings for complex packages.
1. Switch to PRoot Linux environment:
v14 linux2. Install OS container:
install ubuntu3. Execute package commands inside PRoot container using standard package managers (
apt install python3-pip, apt install nodejs).Problem 2: Terminal process freezes, ports blocked ("Address already in use"), or background server hangs.
Root Cause: Web servers (Vite, Express, Python SimpleHTTP) run endless TCP listening loops that can stay alive in background thread cycles when hiding session tabs.
1. Check active servers & process PIDs:
rx task2. Kill target process by PID:
rx task -<PID> kill (e.g. rx task -4532 kill)3. Or reset all server processes:
rx task all killProblem 3: Application crashes or freezes when clicking Ctrl+C / STOP button.
Root Cause: Brutally killing thread processes causes file locks and unmounting errors in native OS containers.
Ctrl+C writes ASCII byte signal 3 directly to streams, allowing child processes to shut down gracefully without crashing.Problem 4: "WebView called on background thread" crash
Resolution: Wrapped UI elements and terminal session tasks inside Android Main Looper dispatchers (activity.runOnUiThread), preventing concurrency crashes.
Problem 5: Permission Denied in SD Card path
Resolution: Run rx ~sdcard to trigger permission popup, or use isolated Internal Application storage (rx -i) for high performance.
