DroidVM

An Android virtual machine manager with support for multiple hypervisors, including Qualcomm Gunyah, MediaTek GenieZone, and Linux KVM.
Supported hypervisors:
- Qualcomm Gunyah (
/dev/gunyah) - MediaTek GenieZone (
/dev/gzvm) - Linux KVM (
/dev/kvm)
Create and manage lightweight VMs directly on your device with near-native performance.
Resources
Features
- Multiple VM backend support: crosvm and QEMU
- UEFI boot for Linux or Windows
- GPU acceleration: VirGL, GfxStream, and 2D software rendering
- Built-in VNC client for graphical display access
- External display casting: cast VM display to an external screen (USB Type-C, Miracast, etc.) via Android Presentation API, with the phone acting as a touchpad controller
- Terminal console with full ANSI/xterm emulation (via Termux terminal libraries)
- Create and edit disk images in multiple formats: raw, qcow2, and more
- Disk operations: resize, convert, clone, optimize, and delete
- Disk/CD-ROM download and LXC image import support
- Virtual bridge networks with NAT, DHCP, STP, and IPv4/IPv6 support
- Shared directories between host and guest via VirtFS (9p)
- Windows support with modified VirtIO drivers
- Linux agent operations: change password, etc.
Requirements
- Android 13 (API 33) or newer
- Root access (Magisk, KernelSU, APatch, or similar)
- A supported ARM64 device with hardware virtualization enabled by firmware and kernel:
- Qualcomm: Snapdragon 8 Gen 3 (SM8650) or newer SoC, Snapdragon 8 Elite (SM8750) recommended, with Gunyah enabled
- MediaTek: Dimensity 9000 or newer SoC with GenieZone enabled
- Other ARM64 devices: booted with EL2 and Linux KVM enabled
- An available virtualization device node:
/dev/gunyah,/dev/gzvm, or/dev/kvm
Building
Prerequisites
- Android Studio, or the Android SDK command-line tools, with:
- SDK Platform 37
- SDK Build-Tools 34.0.0: its
aidlgenerates droidvmd's Binder and audio services, and no other version can stand in. The Android Gradle Plugin installs only its own default Build-Tools, so install this one with the SDK Manager (sdkmanager "build-tools;34.0.0"). - NDK and CMake 3.22.1 (the Android Gradle Plugin can install both on demand)
- JDK 17 or newer (CI uses JDK 21)
- Node.js 24 with npm 10 or newer, to build the WebUI that the APK embeds. The build runs
npm ci --engine-strict, which rejects every other Node major version;webui/.node-versionnames the expected one. - Python 3.9 or newer, to download and verify the pinned libwebsockets source
Gradle runs node, npm and python3 (npm.cmd and python on Windows) from PATH. To use others, set the Gradle properties webuiNode, webuiNpm and webuiPython, for example -PwebuiNode=/opt/node-24/bin/node. The first build needs network access for the npm packages and the libwebsockets source.
The JVM unit tests need none of the native or WebUI tools:
./gradlew :app:testDebugUnitTest
Steps
git clone https://github.com/Droid-VM/DroidVM.git
cd DroidVM
git submodule update --init --recursive
./gradlew assembleRelease
The built APK will be located at app/build/outputs/apk/release/.
License
This project is licensed under the GNU General Public License v3.0. See LICENSE.txt for details.
