# android-studio-pentest-environment

android-studio-pentest-environment builds an Android app pentest lab on an emulator: Magisk root, Frida, HTTPS interception and LSPosed modules for SSL pinning bypass.

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

## What it does

The skill walks you through a pentest lab for Android apps that runs on an Android Studio emulator. The chain goes from an AVD on API 36 (Android 16) with Google APIs, to root with rootAVD and Magisk, `frida-server` on the device, HTTPS capture in HTTP Toolkit, and LSPosed with TrustMeAlready or JustTrustMe for SSL pinning bypass. Shamiko hides root; ZygiskNext replaces the built-in Zygisk.

Every stage comes with commands. `sdkmanager` fetches the system image, `rootAVD.sh` patches `ramdisk.img`, `adb push` plus `chmod 755` put `frida-server` in `/data/local/tmp/`, and `pip install frida-tools` gives you the host client. When rootAVD fails, a manual route stays open: boot with `-writable-system`, run `adb root` and `adb remount`, then patch the ramdisk inside the Magisk app. LSPosed and ZygiskNext ship as zips flashed through Magisk, while the bypass modules are APKs installed with `adb install` and switched on in LSPosed Manager.

You need Android Studio with the SDK and `ANDROID_HOME` set, and the AVD itself is built in the graphical Device Manager. Pick the Google APIs image over Google Play, because that is the one rootAVD targets. Match the `frida-server` build on the emulator to the `frida-tools` version on the host.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/android-studio-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-studio-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-studio-pentest-environment/SKILL.md

## When to use it
- root an Android Studio emulator with Magisk via rootAVD
- attach Frida to a running app process
- capture an app's HTTPS traffic in HTTP Toolkit
- bypass SSL pinning with TrustMeAlready in LSPosed
- hide root from in-app checks with Shamiko

## Example prompts
- Set up an Android pentest lab on an AVD with API 36, Magisk root and Frida.
- Install `frida-server` on the emulator and check it with `frida-ps -U`.
- Configure HTTP Toolkit and LSPosed so the app's HTTPS traffic is readable.

## Similar
- [android-pentesting-tricks](https://affpapa.org/en/nevibecode/skills/android-pentesting-tricks.md) — skill · 4500 installs
- [mobile-ssl-pinning-bypass](https://affpapa.org/en/nevibecode/skills/mobile-ssl-pinning-bypass.md) — skill · 4000 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
- [frida-17](https://affpapa.org/en/nevibecode/skills/frida-17.md) — skill · 2900 installs
- [rev-frida](https://affpapa.org/en/nevibecode/skills/rev-frida.md) — skill · 2300 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
