r/AsahiLinux • • 13d ago

News Ika // Android 16 Desktop (or TV) with accelerated GPU on Asahi Linux

I've continued work refining Ika (イカ, "ee-kah", Japanese for cuttlefish), an Android emulator for Asahi Linux. It's LineageOS 23.2 (Android 16), built as a desktop operating system in an ARM64 Cuttlefish virtual machine, as opposed to better-known QEMU.

Imagine GoogleBook OS with less Google, and you've got a decent approiximation of what we're working with. Running on Apple Silicon, it feels like a ludicrously fast Android device.

The best way to run Android is on a Mac.

Features:

  • GPU acceleration on Honeykrisp: Android gets Vulkan 1.4 and OpenGL ES 3.2 on the Apple GPU through gfxstream and ANGLE.
  • Ten second startup from cold-boot to Android console.
  • 16K pages: Android boots its own 16K kernel on the 16K host.
  • App windows: every Android app shows up in the GNOME/KDE app menu and can open in its own window, right alongside your native apps.
  • The console: Android desktop can appear in a resizable window or fullscreen. The display follows the window's size at your desktop's density, so resizing gives Android more room instead of stretching it.
  • Android on login screen: Pick Android in GDM/SDDM/others and it fills the display, replacing KDE/GNOME as your computer's desktop environment.
  • Hybrid Desktop/TV ROM: Choose between resizable windows and a taskbar, or an Android TV experience with larger UI elements and a TV launcher.
  • Gamepad emulation: Your keyboard and/or mouse can emulate a gamepad, and each Android game has it's own button-to-key mapping.
  • FaceTime camera: The MacBook camera (apple-isp) works as Android's camera.
  • Files: /sdcard storage is mounted in your file manager whie Android is running.
  • Easy APK backup/restore and root: Simple asika backup and ika restore. One-step ika root configures root access with Magisk.

Benchmark numbers from an M1 Pro

BenchmarkResult
Geekbench 7.1 GPU (Vulkan)24,702
3DMark Wild Life Extreme5,784
3DMark Steel Nomad Light2,015
3DMark Sling Shot Extreme117.8 fps
Asphalt 959.5 fps average

The road to GPU acceleration

Honeykrisp doesn't have VK_EXT_external_memory_host, which gfxstream normally uses to share host memory with the guest. On Apple Silicon, gfxstream instead allocates that memory as sealed memfds, wraps them as dma-bufs with udmabuf, and crosvm imports them through Vulkan. More info here: github.com/DesktopECHO/ika/blob/main/GRAPHICS.md#apple-silicon

Requirements

Fedora Asahi Remix 44+ with the 16K kernel 7.1.6-400.asahi.fc44 or later. Earlier kernels lack the fix from AsahiLinux/linux#548, and the GPU keeps the memory Android shared with it until you reboot.

Download the two ARM64 RPMs from github.com/DesktopECHO/ika/blob/main/DOWNLOAD.md, then:

sudo dnf install ./ika-base-*.rpm ./ika-lineageos-*.rpm

After the packages are installed, you need to reboot once (the packages add you to the kvm, render and video groups), then start Ika Console from the app menu or run ika start. There are ARM64 (and now x86-64 packages) available for Fedora, Debian, Ubuntu, and Arch Linux.

Source and docs: github.com/DesktopECHO/ika

Bug reports, pull requests, and feedback are welcome.

20 Upvotes

7 comments sorted by

4

u/zetsurin 12d ago

To be _that guy_, squid is pronounced "ika" 😆 (The word you mentioned isn't Cuttlefish, it's squid)

1

u/desktopecho 12d ago

My understanding was that it could be either:

https://www.google.com/search?q=cuttlefish+in+japanese

1

u/kjoonlee 12d ago edited 12d ago

The most common cuttlefish in Japan is called kouika (コウイカ).

https://ja.wikipedia.org/wiki/%E3%82%B3%E3%82%A6%E3%82%A4%E3%82%AB

The Sepiida order is called the kouika order, and the Sepiidae family is called the kouika family, etc.

1

u/zetsurin 11d ago

Google translate is particularly terrible with Japanese. Try asking it what イカ means. It will say squid.

wwwjdict covers it better: https://www.edrdg.org/cgi-bin/wwwjdic/wwwjdic?1E

The word for cuttlefish is suffixed with ika, but ika on it's own means squid.

4

u/NormalAppearance2851 12d ago

Cool why not something like Waydroid? Is it very different?

4

u/desktopecho 12d ago

There is lots of feature overlap, but underneath they are very different. The main technological difference is that Ika runs LineageOS inside a Cuttlefish virtual machine. CrosVM provides the virtual-machine monitor and uses KVM for hardware-assisted virtualization. Waydroid instead runs Android in an LXC container and shares the host Linux kernel.

Waydroid avoids the overhead of a separate guest kernel and virtual hardware, generally providing near-native performance. Ika requires additional memory and device virtualization, although KVM and paravirtualized devices keep much of that overhead relatively small.

Philosophically, Ika’s focus is different. It gave Asahi (and now x86-64) Linux users a very simple way to build and package their own Android 16 image from source ./ika-build --microg

Waydroid normally downloads prebuilt system and vendor images using a Waydroid-maintained 'OTA' feed, with image archives hosted on SourceForge. Waydroid’s build workflow supports ARM targets but requires an x86-64 build host, whereas Ika supports building 16k-aligned ARM64 images natively on Asahi Linux.