# android-pentest-environment-setup

android-pentest-environment-setup walks you through a rooted Android Studio emulator with Magisk, Frida and proxy traffic capture for app pentesting.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 226 installs · ★ 13 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/security-skills/tree/HEAD/skills/android-pentest-environment-setup/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/android-pentest-environment-setup

## What it does

The skill gives the agent an ordered path: install Android Studio and the SDK, export `ANDROID_HOME` and add `platform-tools` to `PATH`, then build an AVD from an API 36 arm64-v8a image with a Pixel 9 Pro profile. Root follows, either through rootAVD or by patching `ramdisk.img` by hand in Magisk. After that come Frida, LSPosed and traffic capture with Burp Suite or mitmproxy.

Commands are written out — `sdkmanager`, `avdmanager create avd`, `adb root`, `adb remount`, module installs through `magisk --install-module`, a root check with `adb shell su -c "id"`. Zygisk gets its own step, since LSPosed will not run without it. Emulator snapshots keep the lab repeatable and save you a physical handset.

Have 16GB of RAM (the skill recommends it), Android Studio and a proxy tool ready before the first step. Pick the Google APIs image rather than Google Play: the Play build leaves you without root, and everything after that breaks. Some apps notice the emulator and refuse to start, and it may run slower than a real device.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill android-pentest-environment-setup -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/android-pentest-environment-setup/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/android-pentest-environment-setup/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill android-pentest-environment-setup -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/android-pentest-environment-setup/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill android-pentest-environment-setup -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/android-pentest-environment-setup/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/security-skills skills/android-pentest-environment-setup
```

2. **Manually: put the files in place**
- File: `.github/skills/android-pentest-environment-setup/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill android-pentest-environment-setup -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/security-skills --path skills/android-pentest-environment-setup
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/android-pentest-environment-setup/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill android-pentest-environment-setup -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/security-skills/tree/HEAD/skills/android-pentest-environment-setup/SKILL.md

## When to use it
- stand up a rooted emulator for app analysis
- intercept an app's HTTPS traffic through a proxy
- get past SSL pinning with a Magisk module
- install Frida on an arm64 emulator
- pull an app database off the device with `adb pull`

## Example prompts
- Set up an Android Studio emulator for pentesting an app — I need root through Magisk and Frida.
- Configure proxy interception on the emulator and work around SSL pinning.
- Install LSPosed on the rooted AVD and make sure Zygisk is enabled.

## Similar
- [argent-android-emulator-setup](https://affpapa.org/en/nevibecode/skills/argent-android-emulator-setup.md) — skill · 32900 installs
- [android-pentesting-tricks](https://affpapa.org/en/nevibecode/skills/android-pentesting-tricks.md) — skill · 4500 installs
- [competition-android-hooking](https://affpapa.org/en/nevibecode/skills/competition-android-hooking.md) — skill · 110 installs
- [limrun-android-emulator](https://affpapa.org/en/nevibecode/skills/limrun-android-emulator.md) — skill · 41000 installs
- [orca-emulator-android](https://affpapa.org/en/nevibecode/skills/orca-emulator-android.md) — skill · 6000 installs
- [android-emulator-qa](https://affpapa.org/en/nevibecode/skills/android-emulator-qa.md) — skill · 308 installs

From the same set: [reason-machines/security-skills](https://affpapa.org/en/nevibecode/by/reason-machines/security-skills.md) — 129 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
