Backends: QEMU, AVF & UML
Podroid has two main VM engines behind one setting, plus an experimental third. The default uses QEMU with software CPU emulation and works on any device. On Pixel 8/9/10 and similar devices that ship pKVM, the AVF backend runs the guest on real CPU cores for near-native speed. The opt-in UML backend runs the guest kernel as an ordinary Android process.
Choosing a backend
Go to Settings → Advanced → Backend. The options are:
- Auto (default) - Podroid probes the device at startup and uses AVF if the feature, both permissions, and non-protected VM support are all present; otherwise it falls back to QEMU. This is the right choice for most users.
- AVF (KVM) - always use AVF. On a device that cannot run it, the VM runs on QEMU instead, and the app states why: a notice on Home, a suffix on the Status screen, and a caption under the AVF chip in Settings.
- QEMU (TCG) - always use software emulation, even on a device that supports AVF.
- UML (experimental) - run the guest kernel as a plain Android process. Opt-in only: Auto never chooses it. See UML (experimental) below.
Changing the backend setting takes effect at the next VM start. The VM must be stopped before you switch.
QEMU (TCG)
The QEMU backend is the default and works on any ARM64 Android 8+ device with no setup beyond installing the app. The guest CPU is emulated in software via TCG (Tiny Code Generator). See Performance & why it's slow for a full explanation of where the overhead comes from and what Podroid does to reduce it. The short version: simple workloads are 2-5x slower than native; JIT-heavy workloads (Node, JVM, compilers) are slower still because of double-JIT and cold-cache process-spawn costs.
QEMU supports both TCP and UDP port forwarding. Rules you configure in the Port Forwarding screen work for both protocols.
AVF (pKVM)
The Android Virtualization Framework (AVF) is a system hypervisor shipped on some Android devices. On devices that include pKVM (protected Kernel-based Virtual Machine), Podroid can run the guest directly on physical CPU cores - no TCG translation, no double-JIT, no cold-cache overhead. CPU-bound tasks that crawl on QEMU run at near-native speed on AVF.
AVF is currently available on Pixel 8, Pixel 8a, Pixel 9, Pixel 9 Pro, Pixel 9 Pro XL, and Pixel 10 series devices (and any other Android device your manufacturer ships with pKVM). Two development-mode permissions must be granted once before Podroid can open a VM.
Setting up AVF
Step 1 - Confirm the device supports AVF. Run the following in a terminal with ADB access to the device:
$ adb shell pm list features | grep virtualization_framework
If the command prints a line containing android.software.virtualization_framework, the device supports AVF. If the command prints nothing, the device does not have pKVM and AVF is not available.
Step 2 - Grant the two permissions. These are development-mode permissions not exposed in the system UI. Grant them over ADB:
$ adb shell pm grant com.excp.podroid android.permission.MANAGE_VIRTUAL_MACHINE
$ adb shell pm grant com.excp.podroid android.permission.USE_CUSTOM_VIRTUAL_MACHINE
If you do not have a computer handy, install Shizuku and start it (over ADB or wireless debugging). Then open Shizuku's rish shell and run the same two pm grant lines above, replacing adb shell with just the pm grant ... command directly inside rish.
Step 3 - Run the AVF diagnostic. In Podroid, go to Settings → About → "AVF (pKVM) diagnostic". This runs a probe and a smoke test that checks: the virtualization_framework feature flag, both permissions, the presence of /apex/com.android.virt, the AVF system service, and the hypervisor capabilities reported by the kernel. If it reports success on all points, you are ready. Set Backend to Auto (or AVF if you want to force it) and start the VM.
Permission lifetime
The two pm grant permissions persist across reboots and in-place app updates. You do not need to re-grant them after an OTA or a Podroid update installed over the existing app. However, they are lost on uninstall: if you uninstall and reinstall Podroid, run the two pm grant commands again before using AVF.
UML (experimental)
User-Mode Linux (UML) runs the guest Linux kernel as an ordinary Android process. Guest code therefore runs natively on the CPU instead of being emulated instruction by instruction as on QEMU. It needs no special permission and no root, and works on any ARM64 Android 8+ device. In short: AVF (hardware virtualization) is the fastest but only exists on devices that support it and needs a one-time permission grant; QEMU works everywhere and is the default where AVF is unavailable; UML is an experimental option that is faster than QEMU for many workloads on devices without AVF.
On the device used for the measurements, UML booted and ran CPU-heavy work 2-4x faster than QEMU. These are single-device numbers and results vary; see Performance for the table. UML is not as fast as AVF, so on a device that supports AVF, use AVF.
Turning it on
Go to Settings → Advanced → Backend (turn on Show advanced if the section is hidden) and pick UML (experimental). Auto never selects it, so you have to choose it yourself. The VM must be stopped first; the change applies at the next start. The Home and Status screens show which backend is active.
Compatibility test and automatic fallback
The first time you start the VM with UML selected, Podroid runs a short compatibility test (a few seconds, at most about a minute). The test includes a DNS lookup, so it needs a working network connection: if the phone is offline, the test fails.
If the test fails, or UML later crashes or does not finish booting within 120 seconds, Podroid switches UML off for that device and starts the VM on the backend Auto would pick (AVF if usable, otherwise QEMU), with a notification. Your data lives on the same disk on every backend, so nothing is lost by the switch.
After a fallback, Settings shows the reason and a Try UML again button. The VM must be stopped to use it. The failure record is also cleared automatically after an app or Android update.
What is different on UML
- No USB passthrough. USB devices need the QEMU backend.
- Every guest process is an Android process. This includes every container process. On Android 12 and later the system limits how many child processes background apps may have (the phantom-process limit), so container-heavy workloads can have processes killed. See Limitations & troubleshooting for how to lift the limit; on Android 14 and later, the Developer options switch Disable child process restrictions does the same.
- Not a security sandbox. The Downloads folder share works on UML and is restricted to the Downloads folder, but the guest kernel runs with the app's own privileges. Do not run untrusted code in it expecting VM-grade isolation.
- Slower shutdown. A clean guest shutdown takes about 15 to 30 seconds, longer than on QEMU.
- Different kernel build and interface name. The guest kernel is a different build from the QEMU/AVF one (
uname -rdiffers), and the network interface is namedvec0instead ofeth0. Networking otherwise behaves like QEMU: the same 10.0.2.15 address, and port forwards and SSH on 9922 work the same way. - Limited testing. UML has not yet been tested on devices with 16 KB memory pages or on very old Android kernels, which is part of why it is marked experimental.
How Auto-selection works
When the backend is set to Auto, Podroid checks four conditions at startup: (1) the android.software.virtualization_framework feature is present, (2) MANAGE_VIRTUAL_MACHINE is granted, (3) USE_CUSTOM_VIRTUAL_MACHINE is granted, and (4) the device advertises support for non-protected VMs. All four must pass. If any fails, Podroid falls back to QEMU and the VM starts with software emulation - announced in the same places as a forced-AVF fallback: a Home notice, a Status suffix, and a caption under the AVF chip in Settings.
Condition (4) is the non-obvious one. pKVM can operate in two modes: protected (guest memory is encrypted and the host cannot inspect it) and non-protected. Podroid's guest image is a standard Alpine Linux squashfs - it does not meet the signing and measurement requirements for protected VMs. A device that only advertises protected VM support cannot run Podroid's image under AVF, so Auto falls back to QEMU on such devices.
If your device only supports protected VMs, AVF cannot run Podroid's custom kernel and there is no app-side workaround: the protected-VM firmware (pvmfw) only boots payloads that carry a signed, verified boot image, which a general-purpose Linux kernel does not. The only remaining route to hardware virtualization is to open the hypervisor device node (/dev/kvm, or /dev/gunyah on Qualcomm SoCs) directly, which requires root. Podroid is deliberately no-root, so it uses QEMU on these devices. If you are rooted and on a recent Qualcomm Snapdragon device (8 Gen 3 / SM8650 or newer with Gunyah enabled), a separate, unaffiliated project, DroidVM, runs VMs through the Gunyah hypervisor or KVM for near-native speed.
Differences between backends
| Feature | QEMU (TCG) | AVF (pKVM) |
|---|---|---|
| Device requirement | Any ARM64 Android 8+ | Device must ship pKVM (recent Pixels and select others) |
| Setup required | None | Two pm grant commands (once) |
| CPU speed | Software emulation (2-5x+ overhead) | Near-native (hardware VMs, no TCG) |
| Port forwarding protocols | TCP and UDP | TCP and UDP |
| vCPU count | Configurable (1 to device core count) | 1 vCPU = one core; >1 = all host cores, with automatic fallback to fewer if a device can't boot them all |
| Terminal console | hvc0 via QEMU virtio-console | hvc0 (same guest view, different host path) |
| Downloads folder sharing | Supported (virtio-9p) | Supported (in-process 9p2000.L server over vsock) |
| USB device passthrough | Supported (opt-in; adds a USB controller at boot) | Not available - there is no QMP channel to stream device handles to the VM |
| Verbose logging toggle | Not applicable | "Verbose AVF logging" in Settings → Advanced (useful for bug reports) |
On some units (notably Tensor G3/G4 Pixels - 8 / 8a / 8 Pro and the 9 series) the all-cores topology trips secondary-CPU bringup early in boot, before any console output appears. As of v1.2.5 this is handled automatically: AVF starts with the cores you chose, and if the VM resets during boot Podroid retries with fewer cores and remembers the highest count that boots on your device - no action needed. The manual Use 1 core and Switch to QEMU options remain as fallbacks, and QEMU (TCG) is reliable on all devices. See Limitations & troubleshooting.
Podroid is free software (GPL). Docs for v1.3.0. Found something inaccurate? Open an issue.