Is there an Android emulator for Linux that can use the GPU with both proprietary NVIDIA drivers and AMD or Mesa drivers? I want to avoid falling back to software rendering for apps and games.
Can I run Android apps on Linux with hardware GPU acceleration?
Answers
Ika is one option to look at. The project claims hardware accelerated OpenGL ES and Vulkan on proprietary NVIDIA and Mesa drivers. It runs Android in a KVM virtual machine and uses gfxstream with virtio-gpu to connect guest graphics to the host.
That is virtualized graphics, not necessarily direct PCI GPU passthrough. The distinction matters if you are comparing it with a setup that dedicates a physical GPU to a VM. Check that your own apps are actually using hardware rendering rather than assuming every configuration will work the same way.
Reply to this answer
For desktop use, Ika claims two modes: a full Android desktop session and individual app windows on the Linux desktop. It also supports Xorg and Wayland, so the windowing setup is worth considering alongside GPU support.
Reply to this answer
If games are the goal, GPU acceleration is only part of the picture. The project describes gamepad, mouse and keyboard input, plus a touch input mode for games designed around a touchscreen. That sounds useful, but it does not guarantee every game will play nicely.
Reply to this answer
The KVM approach may appeal if you want to avoid installing extra Android-related kernel modules on the Linux host. Ika says it does not require host modules such as binder, although you still need a working KVM setup for the virtual machine.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions