unidbg runs ARM Android JNI libraries on desktop with syscall emulation, optional MCP debugging, and experimental Apple targets.
Overview
unidbg is an educational emulator focused on running Android native libraries—and experimentally iOS code—on a developer workstation. It implements enough JNI, JavaVM, and syscall behavior to invoke `JNI_OnLoad` and exercise ARM32 and ARM64 binaries without a physical device.
Backends include Apple M1 hypervisor support, Linux KVM on Raspberry Pi 4, and conventional user-mode emulation. The project adds memory leak detection with guest and host backtraces, Objective-C and Swift runtime hooks for iOS experiments, and an MCP debugger so AI tools can inspect registers, memory, breakpoints, and modules while execution is paused.
Typical workflows load a `.so`, set breakpoints by symbol or offset, step through native functions, and register custom MCP tools for repeated runs with different arguments. Documentation stresses that the software is for learning about ELF and Mach-O formats and ARM assembly, and that users accept operational risk.
Security researchers and reverse engineers use it to study mobile native behavior in a controlled desktop environment before touching production devices.
Key features
- Android JNI and syscall emulation
- ARM32 and ARM64 support
- Experimental iOS runtime hooks
- M1 hypervisor ARM64 backend
- Linux KVM Raspberry Pi backend
- MCP server for AI-assisted debugging
- Breakpoints and memory tooling
- Leak detection with backtraces
Use cases
- Debugging Android native libraries on desktop
- Teaching ELF and ARM reverse engineering
- Automated native function probing with MCP
- Experimenting with iOS binaries in lab setups
- Tracing JNI bridges without hardware