# Jidr (جذر) Android on your Mac, rooted in a minute. iOS simulators too, slimmed to about 1 GB. [![Latest release](https://img.shields.io/github/v/release/jidr-dev/jidr)](https://github.com/jidr-dev/jidr/releases/latest) ![macOS 14+ on Apple Silicon](https://img.shields.io/badge/macOS_14%2B-Apple_Silicon-black) Jidr creates and runs virtual Android phones and tablets on Apple Silicon Macs. Pick **Full root** and Magisk is patched in and verified for you; pick **Shell root** for `adb root`; or keep the device stock. It's a free, open-source alternative to Genymotion Desktop, written in Rust, with a desktop app, a CLI and an MCP server for AI agents. Building for iOS too? On a Mac with Xcode, Jidr also drives your iOS simulators, and slims them to about 1 GB of RAM each, so more of them fit next to your emulators. One tool for Android and iOS, whether you write native, Flutter or React Native apps. ```bash brew install --cask abdurahmanalmehdi/tap/jidr ``` Or [download the DMG](https://github.com/jidr-dev/jidr/releases/latest). Site: [jidr.ly](https://jidr.ly). News: [@Jidr_ly on X](https://x.com/Jidr_ly). ![Jidr in 25 seconds: create an API 35 device with Full root, watch Magisk 30.7 get patched and verified, then su -c id and frida-ps from the terminal](docs/images/demo.gif) ## Features - **Devices:** create, clone, start, stop and delete virtual devices from Google's emulator images (API 29–37, arm64, including minor versions such as 36.1 and 37.x). Jidr keeps its own SDK and never modifies Android Studio's SDK or AVDs. - **One-click root:** None, Shell root (`adb root`) or Full root (Magisk, patched into a per-device copy of the ramdisk and verified with `su -c id`). Revert at any time. Play Store images get a guided beta. - **Player window:** the device screen with mouse and keyboard input, drag-and-drop for APKs and files, and logcat. - **Widgets:** battery, rotation and motion sensors, network (Wi-Fi, mobile data, speed and delay profiles), calls, SMS and signal bars, GPS with GPX/KML route replay on an OpenStreetMap map, fingerprint, the host webcam as the camera, clipboard and developer toggles. - **Media and state:** PNG screenshots, MP4 recordings, and snapshots tagged with the root mode they were taken in. - **Build identity:** set build properties (model, brand, fingerprint…) on Full-root devices. - **CLI:** every action is a `jidr` command, with `--json` output and stable exit codes for CI. - **MCP server:** `jidr mcp` lets Claude and other MCP clients see and drive a device: screenshot, tap, type, UI tree, logs. - **iOS simulators (macOS with Xcode):** list, boot and drive the simulators Xcode has, preview them in the app, and give each agent session a fresh simulator of its own (`jidr sim lease`, or the `simulator_lease` MCP tool) that's deleted when the session ends. - **Slim simulators:** Slim… in the app, `jidr sim slim`, or `--slim` on create, clone and lease turns off about 170 background services a test run doesn't need (Siri, Spotlight, iCloud, widgets, photo analysis…), so a simulator uses about 1 GB of RAM instead of about 4 GB. The RAM budget counts what each booted simulator really uses, so on a 16 GB Mac four slim simulators and a stock one ran at once without going over it. Needs iOS 18.5 or later; `jidr sim unslim` turns the services back on. - **Languages:** the app is in English, العربية (right to left), Español, 简体中文 and Português (Brasil). It follows your Mac's preferred languages, or pick one in Settings › General. The CLI and MCP stay in English. No accounts, no telemetry, no paid tier. ![The Jidr player: a running device, its toolbar, and the battery widget](docs/images/player.png) ## Install You need macOS 14 or later on Apple Silicon, and about 10 GB of free disk space for the SDK and one system image. iOS simulators also need full Xcode with an iOS simulator runtime (iOS 18.5 or later for slim simulators); Jidr uses your Xcode and doesn't bundle or install it. - **Homebrew:** `brew install --cask abdurahmanalmehdi/tap/jidr` installs `Jidr.app` and puts the `jidr` CLI on your `PATH`. Update with `brew upgrade --cask jidr`. - **DMG:** download `Jidr--arm64.dmg` from the [latest release](https://github.com/jidr-dev/jidr/releases/latest) and drag Jidr to Applications. The CLI is at `/Applications/Jidr.app/Contents/Helpers/jidr`. On first launch the app finds or downloads the Android SDK and a system image, after you accept Google's license. ### Linux (headless) On x86_64 Linux with KVM, Jidr ships as the `jidr` binary: the CLI, the daemon and the MCP server, with x86_64 system images. Download `jidr--x86_64-unknown-linux-gnu.tar.gz` from the [latest release](https://github.com/jidr-dev/jidr/releases/latest), unpack it and link `jidr` onto your `PATH`. The desktop app is macOS-only for now, and screen recording of a device isn't available on Linux yet. [docs/cli.md](docs/cli.md#linux-headless) has the steps, the KVM setup and what differs from the Mac. Windows is tracked in [#50](https://github.com/jidr-dev/jidr/issues/50). iOS simulators need a Mac with Xcode. ## Quick start (CLI) ```bash jidr image install 35 --accept-licenses # download an API 35 image; you accept Google's license jidr device create Phone --image 35 # create a device jidr device start Phone # boot it and wait until it's ready jidr root set Phone magisk # Full root with Magisk, verified ``` iOS, on a Mac with Xcode: ```bash jidr sim lease --slim # a fresh, booted, slim iPhone simulator; prints its UDID jidr sim install build/MyApp.app # a simulator build jidr sim launch com.example.app jidr sim release # shut it down and delete it ``` ## Use it from an AI agent Add Jidr to Claude Code as an MCP server: ```bash claude mcp add jidr -- jidr mcp ``` On Linux it's the same command, with `jidr` on your `PATH`. For Claude Desktop on a Mac, open `jidr-mcp--darwin-arm64.mcpb` from the [latest release](https://github.com/jidr-dev/jidr/releases/latest). Jidr is also in the [MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.jidr-dev/jidr`. [docs/mcp.md](docs/mcp.md) lists the tools. Agent skills teach Claude Code, Cursor, Codex and other agents to create and drive Jidr devices with the CLI (`jidr`), to test an app on them (`jidr-app-testing`), to get devices and iOS simulators of their own without crowding the machine (`jidr-agent-devices`) and to root them, install Magisk modules and intercept HTTPS (`jidr-root`). Install them with the open [skills](https://skills.sh) CLI: ```bash npx skills add jidr-dev/jidr ``` They live in [skills/](skills/). ## Documentation - [CLI reference](docs/cli.md) - [MCP tools](docs/mcp.md) - [Root modes](docs/root.md) - [Control protocol](docs/control-protocol.md): the JSON-RPC protocol the app, the CLI and the MCP server share - [Design system](docs/design/README.md) - [Decisions](docs/decisions/log.md) and [architecture decision records](docs/decisions/) - [Feature parity with Genymotion Desktop](docs/parity.md) - [Clean-room policy](docs/clean-room.md) - [Changelog](CHANGELOG.md) ## Build from source ```bash git clone https://github.com/jidr-dev/jidr cd jidr cargo build --release -p jidr -p jidr-gui ``` You need `rustup` (it installs the toolchain pinned in `rust-toolchain.toml`) and `protoc` (`brew install protobuf`). [CONTRIBUTING.md](CONTRIBUTING.md) has the full setup and how to run the tests. ## Licensing Jidr is split-licensed. The desktop app (`crates/jidr-ui`, `apps/jidr-gui`) is **GPL-3.0-only** because it links Slint. Everything else (CLI, daemon, MCP server, libraries, site) is **Apache-2.0**. See `LICENSE-APACHE`, the `LICENSE-GPL` files in the two GUI crates, and `NOTICE`. Jidr downloads the Android Emulator and system images from Google under the Android SDK License, which you accept in the app. It downloads Magisk (GPL-3.0) only when you choose Full root. None of these are bundled. ## Questions and contributing Questions, ideas and setups you want to share go in [Discussions](https://github.com/jidr-dev/jidr/discussions); bugs go in [Issues](https://github.com/jidr-dev/jidr/issues). Contributions are welcome: read [CONTRIBUTING.md](CONTRIBUTING.md). Report security issues as described in [SECURITY.md](SECURITY.md). If you work with an AI coding agent, point it at [AGENTS.md](AGENTS.md). ## Trademarks Android is a trademark of Google LLC. Genymotion is a trademark of its owner. Jidr is not affiliated with Google or Genymotion.