# android-app-pentest-environment

android-app-pentest-environment — a skill that builds an Android pentest bench for you: rooted emulator, Magisk, LSPosed and captured app traffic.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 236 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-app-pentest-environment/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-app-pentest-environment

## What it does

The agent follows the steps in `SKILL.md`: spin up an AVD in Android Studio, install root with Magisk, wire in LSPosed plus SSL unpinning modules, then point traffic at BurpSuite or Charles. It runs the `adb`, `emulator`, `openssl` and `rootAVD.sh` commands in your terminal.

Start from a Google APIs system image rather than Google Play. Play images block root, so Magisk has nowhere to install. `rootAVD.sh` patches `ramdisk.img` automatically; the manual path patches the file inside the Magisk app and swaps it back into the system-images folder. Cold boot afterwards, then `adb shell su -c "id"` reports `uid=0` once it worked.

To read HTTPS, export the proxy certificate as DER, derive its hash with `openssl`, and push the renamed file to `/system/etc/security/cacerts/` after `adb root` and `adb remount`. Modules like JustTrustMe and MagiskTrustUserCerts handle the pinning side. Have Android Studio with the SDK ready, `adb` and `ANDROID_HOME` exported, plus the rootAVD clone and the Magisk APK.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/android-app-pentest-environment/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-app-pentest-environment
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill android-app-pentest-environment -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-app-pentest-environment/SKILL.md

## When to use it
- Stand up a rooted Android 16 emulator for app testing
- Push a Burp certificate into system `cacerts`
- Get past SSL pinning with LSPosed modules
- Route app traffic through a local proxy
- Attach Frida for runtime instrumentation

## Example prompts
- Set up a rooted Pixel emulator for Android pentest work
- Install Magisk and LSPosed on the emulator and enable Zygisk
- Push the Burp certificate into system `cacerts` and reboot the emulator

## Similar
- [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
- [mobile-pentester](https://affpapa.org/en/nevibecode/agents/mobile-pentester.md) — subagent · ★ 2482 repo stars
- [anubis-android-app-manager](https://affpapa.org/en/nevibecode/skills/anubis-android-app-manager.md) — skill · 434 installs
- [android-app-factory](https://affpapa.org/en/nevibecode/skills/android-app-factory.md) — skill · ★ 121 repo stars
- [race-condition](https://affpapa.org/en/nevibecode/skills/race-condition.md) — skill · 4000 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
