XJ-13

XiaoJi · Android 13 in a browser tab, on a user-mode ARM64 engine

Rev. 2026-11
Apache-2.0

No install · no VM · no server-side phone Sibling of xiaonux (Debian in a tab) Network: off in this build Chromium-based browsers · desktop first

Real Android 13, running in this tab.

1Description

An engine written in C and compiled to WebAssembly runs Android's own ARM64 programs and answers their Linux system calls itself: binder, futexes, files, input devices, the emulator's graphics pipe. OpenGL ES goes to WebGL2.

A booted snapshot restores straight to the home screen. Then open the app drawer, Settings, Files or Calculator.

2Features

XiaoJi
Android 13
Press Start Android
540 × 960
· 240 dpi
KEYBOARD → evdevClick the screen, then type

Figure 1. Typical application: the device, live.

Downloads the Android snapshot once

Session record

  1. Nothing yet. Each step lands here once, with its time from the press.

3Characteristics

ParameterMeasuredThis session1
Press to home screen2.8–4.2 snot measured yet
Open Settings, first time1.7–2.0 snot measured yet
Open Calculator, first time1.7–2.6 snot measured yet
App drawer, swipe up0.8–1.2 snot timed here2
Snapshot download142 MBnot measured yet

Test conditions: Apple M2, 8 GB, AC power; headless Chromium (SwiftShader WebGL2), localhost; 3 runs, range shown. App and drawer times are settled: from the input to the last frame that changed the picture.

1 Timed in this tab, from your press and your taps; fills in after a snapshot restore. 2 Not measured in the page: no event marks the drawer.

4Block diagram

This tab · Web WorkerJavaScript

postMessage · SharedArrayBuffer

XiaoJi engine · ARM64 → wasmC
Linux interface · binder · evdev · goldfishin the engine

syscalls · binder · ioctl

Android 13 user spaceARM64 user code, AOSP

5How it works

The engine

There is no virtual machine and no kernel. The engine runs Android's ARM64 user-space programs, translating hot code to WebAssembly, and implements the Linux interface they call: processes and threads, memory, files, futexes, binder, input devices and the goldfish graphics pipe.

The snapshot

Android was booted once to its home screen and its memory saved. Start Android downloads that snapshot and restores it, so the phone starts where the boot ended instead of booting for minutes. When the snapshot does not match this engine, the page boots Android instead and says so.

Chunks

The system image and the snapshot are cut into content-addressed chunks, packed in the order they are first read. The boot's chunks are kept in your browser's cache, and a chunk the phone needs later is read on demand.

GL to WebGL2

Android draws with OpenGL ES through the emulator's graphics pipe. The engine replays those calls on WebGL2 and SurfaceFlinger's composed frame is drawn on the page, 540 × 960 at 240 dpi.

Input

Pointer and keyboard events on the screen become Linux evdev events in a ring the engine reads, so Android sees a touchscreen and a keyboard. Back and Home send the phone's own keys.

6Known limits

Network
Off in this build: apps see no connection.
Audio
None: the audio HAL is a null device.
Browsers
Chromium-based browsers. The page needs cross-origin isolation, SharedArrayBuffer and WebGL2.
Devices
Desktop first. There is no on-screen keyboard yet; type with a physical one.
First start
A download of about 142 MB before the phone appears. When there is no snapshot for this engine, Android boots from the start, which takes minutes.

7Ordering information

Sourcegithub.com/rosdyana/xiaoji, Apache-2.0
Siblingxiaonux: Debian in a browser tab, full RISC-V machine emulation
NoticesNOTICE and LICENSE; fonts Archivo and Fragment Mono under the SIL Open Font License
AndroidAOSP components are not part of the repository and stay under their own licences