android-studio-pentest-environment — Claude Code skill: setup guide
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.
no license 234 installs ★ 13 updated 2026-10-09
npx skills add reason-machines/security-skills --skill android-studio-pentest-environment -a claude-codeWhat android-studio-pentest-environment 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.
What it helps with
- 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 for the agent
- Set up an Android pentest lab on an AVD with API 36, Magisk root and Frida.
- Install
frida-serveron the emulator and check it withfrida-ps -U. - Configure HTTP Toolkit and LSPosed so the app's HTTPS traffic is readable.
How to install android-studio-pentest-environment
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill android-studio-pentest-environment -a claude-code2Manually: put the files in place
~/.claude/skills/android-studio-pentest-environment/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/android-studio-pentest-environment/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill android-studio-pentest-environment -a codex2Manually: put the files in place
.agents/skills/android-studio-pentest-environment/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill android-studio-pentest-environment -a cursor2Manually: put the files in place
.cursor/skills/android-studio-pentest-environment/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/security-skills skills/android-studio-pentest-environment2Manually: put the files in place
.github/skills/android-studio-pentest-environment/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill android-studio-pentest-environment -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/security-skills --path skills/android-studio-pentest-environmentManually: put the files in place
.devin/skills/android-studio-pentest-environment/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill android-studio-pentest-environment -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about android-studio-pentest-environment
How do I install android-studio-pentest-environment in Claude Code?
Run npx skills add reason-machines/security-skills --skill android-studio-pentest-environment -a claude-code; the skill lands at ~/.claude/skills/android-studio-pentest-environment/SKILL.md.
What does android-studio-pentest-environment do?
It sets up an Android app pentest environment on an emulator: Magisk root, Frida instrumentation, traffic capture and LSPosed modules for SSL pinning bypass.
Do I need a physical device for this lab?
No, the lab runs on an Android Studio emulator. You need the SDK, ANDROID_HOME and a created AVD.