Skip to content

About

Reproducible research environment for running, debugging, and testing Android apps on Linux with GPU acceleration, ARM translation, and network inspection.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DroidForge

A reproducible research and engineering environment for running, debugging, and testing Android applications on Linux with native GPU acceleration, ARM binary translation, and HTTPS network inspection.

Platform Waydroid Mesa DRI Libhoudini Inspection License


📑 Quick Navigation


🔬 Technical Stack

Layer Component Details / Responsibility
Host OS Modern Linux Ubuntu, Debian, Fedora, Arch Linux, openSUSE
Container Virtualization Waydroid Native Linux container (LXC) architecture running LineageOS
Graphics Pipeline Mesa 3D Direct Rendering Infrastructure (/dev/dri/renderD128) hardware acceleration
ARM Translation Libhoudini Dynamic ARM (arm64-v8a / armeabi-v7a) to x86_64 binary translation
Helper Tooling Waydroid Helper Automated lifecycle management for extensions, translation, and keymaps
Network Interception mitmproxy System CA certificate overlay injection for HTTPS interception
Runtime Tracing Frida Dynamic instrumentation for inspecting in-memory network calls
Input Mapping Integrated Helper / Phantom Touchscreen to mouse/keyboard event translation

🚀 Why Waydroid Helper?

Modifying container root partitions manually can lead to filesystem corruption and broken OTA updates. Using Waydroid Helper (waydroid_script) is strongly recommended:

  1. Overlay Architecture: Libhoudini translation libraries and configurations reside in /var/lib/waydroid/overlay/system, keeping the base container image pristine.
  2. Persistence Across Updates: Upstream container updates do not overwrite your ARM translation libraries or configuration files.
  3. Integrated Controller Mapping: Built-in support for mapping mouse aiming, WASD movement, and hotkeys directly to touchscreen coordinates.

🔒 Native System Certificate Injection

DroidForge leverages Waydroid's native overlay architecture for trusted CA certificates:

  • Placing the hashed certificate (<hash>.0) inside /var/lib/waydroid/overlay/system/etc/security/cacerts/ mounts it directly into the system trust store on container boot.
  • No root modules (such as Magisk) are required. The host kernel manages the overlay cleanly.

📚 Documentation Index

Guide Description
01 - Host Installation & Setup Package installation across Linux distributions and container initialization.
02 - ARM Translation with Waydroid Helper Deploying Libhoudini for running ARM and ARM64 applications on x86_64.
03 - Network Traffic Inspection & CA Certificates Converting CA certificates, overlay staging, and global proxy configuration.
04 - Input Mapping & Graphics Acceleration Mesa DRI hardware rendering verification and desktop keymapping controls.
05 - Advanced Network Analysis & Troubleshooting Diagnosing proxy bypass, QUIC / HTTP/3 blocking, and transparent NAT redirection.
06 - Runtime Traffic Analysis with Frida In-process network call tracing for pinned or custom native network engines.

🧰 Included Helper Scripts

All scripts are located in the scripts/ directory and are pre-configured with executable permissions:

Script Purpose
scripts/cert-convert.sh Converts PEM certificates to <hash>.0 and installs to the Waydroid overlay
scripts/proxy-toggle.sh Sets, checks, or clears the Android global HTTP proxy via ADB
scripts/verify-env.sh Diagnostic verifier for Linux host session, render nodes, and ADB connectivity
scripts/capture-traffic.sh Captures raw .pcap packets on the waydroid0 virtual bridge for Wireshark
scripts/block-quic.sh Blocks outbound UDP 443 to force apps from QUIC/HTTP/3 to fall back to TCP
scripts/transparent-proxy.sh Configures host iptables PREROUTING rules for apps bypassing system proxy
scripts/setup-frida-server.sh Auto-detects container ABI, downloads, pushes, and launches frida-server

📄 License

This project is licensed under the MIT License.

About

Reproducible research environment for running, debugging, and testing Android apps on Linux with GPU acceleration, ARM translation, and network inspection.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages