A6K Emulator runs the unmodified firmware of an a6000-series mirrorless camera (system software 3.21) on an Apple Silicon Mac. A QEMU machine model emulates the camera's SoC, sub-microcontroller and image pipeline. The camera's own Linux and real-time software boot, draw the LCD, take pictures and run Android camera apps. A native SwiftUI app shows a clickable camera body around the live LCD.
No sensor exists, so the "scene" is a photo you choose, or colour bars without one. Everything else, from the menus to the JPEG on the memory card, is produced by the camera's own code.
Everything except firmware is here: the Mac app, the emulator engine and the full QEMU source it builds on. No camera firmware or camera data is included. You need a camera you own, a dump of its NAND and the official 3.21 updater. See Building.
The workbench with the camera on its shooting screen: tools dock on the left, live CPU and GPU readings on the right, the camera's root shell below.
DoomCam (Freedoom) running as an Android camera app on the emulated LCD. The GPU readings on the right show the emulated GPU at work.
The same session with the SD card browser and the app's own log lines in the Logcat tab.
The Top view, with the shutter, power lever, mode dial and control dial.
| Area | Status |
|---|---|
| Boot, shooting screen, all menus, Fn menu, power off and on | Works |
| Every button, the control wheel, the top control dial and the mode dial | Works |
| Half-press live view (from your photo) and full-press capture to the SD card: 6000×4000 JPEG with Exif, preview and thumbnail, plus ARW in RAW & JPEG | Works |
| Continuous shooting, self-timer | Works |
| Sweep Panorama | Shoots its sequence, then the camera reports it could not stitch (the virtual camera cannot be swept) |
| Playback: single view, index with thumbnails, histogram, zoom, delete, folders | Works |
| Android camera apps (installed over the emulated USB cable), e.g. DoomCam with Freedoom at about 28 fps | Works |
| Developer workbench: root shell, logcat, QEMU monitor, CPU and GPU telemetry, GDB, app and storage tools | Works; see Developer workbench for the limits |
| Movie recording | Not emulated (the MOVIE button shows a notice) |
| Camera speaker: beeps such as the self-timer countdown (Setup › Audio signals), played on the Mac | Works |
| Movie sound, lens, sensor image, Wi-Fi, NFC | Not emulated |
- An Apple Silicon Mac with macOS 14 or later, Xcode or its command line tools (Swift), Python 3 and Homebrew.
- An a6000 camera you own, and a full dump of its NAND. The emulator needs the per-unit data written at the factory (settings store, calibration, boot tables), which the official updater does not contain. Never use or share someone else's dump: it holds that owner's serial number, Wi-Fi settings and other personal data.
- The official system software update 3.21 for that camera.
Everything builds from this repository. Only the camera data in step 2 comes from you.
- Clone the repository.
git clone https://github.com/Kagander/a6k-emulator.git cd a6k-emulator - Prepare the camera data. Follow
a6000-qemu/data/README.md: unpack the 3.21 updater with fwtool.py, extract the warm-boot data, dump your camera's NAND and provision the emulated NAND. Then keep an untouched copy, which becomes the app's first-run seed:Provisioning builds a small ARM helper,cd a6000-qemu ./provision.sh dumps/<your dump> cp -c state/a6000.nand state/a6000.nand.pristine cd ..
provision/a6kcopy, with an ARM bare-metal compiler (arm-none-eabi-gcc, for example the Arm GNU Toolchain). The command is at the top ofa6000-qemu/provision/a6kcopy.c. All of these files stay on your Mac; Git ignores them. - Build the engine. The QEMU source and the libraries it normally downloads during configure are included, so this works offline:
brew install ninja pkgconf glib pixman sdl2 libslirp libusb mkdir -p a6000-qemu/qemu/build (cd a6000-qemu/qemu/build && ../configure --target-list=arm-softmmu --enable-sdl --enable-slirp --disable-gtk --disable-docs && ninja qemu-system-arm)
- Build the app.
python3 Standalone/build.py open "A6K Emulator.app"
A6K Emulator.app contains the firmware and your camera's NAND. Keep it on your Mac; don't upload or share it.
a6000-qemu/ started as voxivoid/a6000-qemu (forked at 3a039c5), a QEMU 10.1.0 machine model of the camera that boots the firmware to its menus. A6K Emulator changed it substantially to make the camera usable end to end:
- Taking pictures: the sub-microcontroller's capture handshake (with the message-length fix that stopped random hangs after a shot), an event-driven link model, the image front end and its DMA, exposure statistics, the still-pipeline units, and the JPEG codec commands with a baseline encoder and decoder. Continuous shooting and Sweep Panorama no longer hang.
- Playback: decoding and resizing photos into the display buffers, packed YUV display layers, the histogram and zoom views, and index thumbnails (a shader-emulation fix).
- Input: the top control dial as its own counter, one control-wheel step per click, and edge-triggered pin interrupts so key presses and releases are no longer lost.
- GPU: command-list sub-calls of any length, which made Android camera apps visible, and a much faster GPU model: rendering on its own thread outside the emulator's global lock, multi-threaded shading, and a leaner shader interpreter.
- Power-on goes to the shooting screen again after a Playback boot.
a6000-qemu/qemu/ is upstream QEMU 10.1.0 with the camera machine applied (qemu-overlay/ and patches/). The meson subprojects it needs (berkeley-softfloat-3, berkeley-testfloat-3, dtc, keycodemapdb) are included. Upstream's own documentation is in a6000-qemu/README.md, and the A6K Emulator notes are in AGENTS.md.
Click the controls on the rendered body, or use the keyboard. ? shows each key on the camera, and Help → Keyboard Shortcuts lists them all.
| Key | Control | Key | Control |
|---|---|---|---|
| O | Power | M / F | MENU / Fn |
| S (hold) | Shutter half press | A / C | AEL / C1 |
| Space | Shutter full press | P | Playback |
| Arrows, Return | Control wheel, centre button | ⌫ | Delete / C2 |
| [ / ] | Turn the control wheel | , / . | Turn the top control dial |
| Page Up / Down | Mode dial | V | Viewfinder-only display |
| ⌘1 ⌘2 ⌘3 | Rear, Top, LCD view | ⌘S | Save an LCD screenshot |
- Without a lens the camera only releases the shutter when Release w/o Lens is Enable and AF w/ shutter is Off (MENU → Custom Settings, page 3).
- Settings → General chooses the virtual SD card (create a 4 GB card, attach a raw image, eject) and the photo used as the scene.
- Settings → Display sets the LCD refresh rate and scaling. Settings → Engine sets the GPU threads, turns the camera speaker on or off and opens the data folder (
~/Library/Application Support/A6K Emulator). - The camera goes into power save after its own Power Saving Start Time (1 minute by default; change it in the camera's Setup menu).
- Camera apps install like on the real camera with Sony-PMCA-RE and the virtual USB cable backend in
a6000-qemu/tools/pmca-socket/, or from the workbench's Apps tab (below).
The window is built for firmware development, reverse engineering and camera-app testing. The camera render stays whole in the centre; three docks around it open, close and resize on their own (View menu or the toolbar buttons).
| Where | What it gives you |
|---|---|
| Toolbar | Power, cold restart, warm reset and wake-up, boot into the shooting screen, Menu, Playback or the firmware updater, checkpoints, Rear / Top / LCD, engine state, GDB endpoint |
| Console strip (⌘`) | Shell: the firmware's own root shell on UART 2. Logcat: Android's log, read from guest memory. Kernel and Engine logs with filters and export. Monitor: QEMU commands, HMP or QMP |
| Inspector dock (⌥⌘I) | vCPU load, GPU activity (busy share, draw calls, shaded pixels), MMIO trace counts, pause / step / reset, GDB on a private socket or a TCP port, kit lens, keep awake, power cut, scripted button and dial sequences |
| Tools dock (⌥⌘T) | Apps: install an .apk, list, launch, stop and uninstall packages. Card: browse the SD image, export files, copy files in. NAND: import, reset, apply partition images, push a binary into the guest. Checkpoints: named copies of the NAND and card |
Limits to know about:
- The shell needs the camera started with
console=ttyAM1(the default; Settings → Engine switches back to the stock kernel command line). The stock shell has no controlling terminal, so Ctrl-C only works after pressing Job Control. - There is no adb: the engine has no network. The shell and logcat use the UART and guest memory instead.
- Launch starts an app in Android, but the firmware hands the LCD to Android only when the app is opened from MENU → Application.
- APK install through the Apps tab uploads the file over the shell and runs the firmware's
pm install. It was tested up topm's answer with a dummy package; the Sony-PMCA-RE route above is the one tested with real apps. - Checkpoints hold storage, not a running machine: restoring one restarts the camera. The engine's device models cannot save their state yet.
- Battery level and the clock tree are not modelled and read
N/A. - The camera's power save (1 minute by default) ends shell sessions; Keep awake in the inspector holds it off.
Standalone/README.md describes every panel.
The same workbench also runs in a web browser: camera body, toolbar, docks, console, NAND Studio and settings, with
the same controls and keys. Turn it on in Settings › Web and click Open in Browser, or start the app with
--web. The Mac app still runs the emulator; the browser is a second view of the same camera, so both stay in step.
- Only this Mac can open the page unless Allow other devices on this network is on.
- The link carries an access key (after
#key=). Anyone with the link controls the camera, its root shell and the QEMU monitor, which can run programs as you, so treat the link like a password. New Access Key replaces it. - With other devices allowed, the connection is plain HTTP: use it only on a network you trust.
Without a Mac: WebOnly/ has a6k-web, a single-file Python server that runs the engine on its
own and serves the same page on macOS, Linux and Windows (Python 3.9+, no other dependencies). Linux and Windows
still need the engine built for them; only macOS has been tested so far.
| Path | Contents |
|---|---|
Standalone/*.swift |
The Mac app: camera body, controls, engine session, settings, developer workbench (shell, logs, inspector, apps, card, checkpoints), NAND and firmware tools |
Standalone/build.py |
Packages the engine, firmware and NAND seed into A6K Emulator.app |
Standalone/camera-*.png |
The camera renders used for the clickable body |
a6000-qemu/qemu-overlay/ |
The camera machine and its device models (SoC units, sub-microcontroller, GPU, display, storage) |
a6000-qemu/qemu/ |
QEMU 10.1.0 with the camera machine applied; build here |
a6000-qemu/provision/, a6000-qemu/tools/ |
NAND provisioning, data extraction, debugging tools, USB cable backend for app installation |
a6000-qemu/docs/ |
Reverse-engineering notes on the camera hardware |
Tools/ida/ |
Helpers for reverse-engineering the camera software with IDA Pro |
AGENTS.md |
Developer notes: how each part of the camera is modelled, what was verified, open problems |
- voxivoid/a6000-qemu, the camera machine model the engine grew from, and QEMU with the libraries in
a6000-qemu/qemu/subprojects/. - ma1co/fwtool.py and ma1co/Sony-PMCA-RE for firmware unpacking and app installation.
GPL-2.0. The engine is GPL-2.0 like voxivoid/a6000-qemu (a6000-qemu/LICENSE). QEMU and its bundled libraries keep their own licenses (mostly GPL-2.0-or-later, some files and subprojects under compatible licenses; see a6000-qemu/qemu/LICENSE and each file's header). Camera firmware is not included and is not covered by any of these licenses.
This is an independent research project. It is not affiliated with, endorsed by or sponsored by the camera's manufacturer. Product and company names that appear in the technical notes only identify the hardware being emulated and belong to their owners. Use it only with firmware and data from a camera you own.




