# Android Reverse Engineering: decompile apps and map their APIs (SimoneAvogadro/android-reverse-engineering-skill) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-08 against commit 0c7cf89 (version 1.5.0).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/simoneavogadro/android-reverse-engineering-skill/

## Explain it to a non-programmer
Your assistant takes an Android app file (APK, XAPK, JAR or AAR), turns it back into readable code on your machine. Then it writes down which web addresses and server calls the app makes. You get a short report on how the app is built, a table of its server endpoints and the path from a screen to each call.

## Who it is for
- You need to understand or document how an Android app talks to its server, for example for interoperability
- You do security research, authorized testing, malware analysis or CTF practice on Android apps
- You use Claude Code and have, or can install, Java 17 and the jadx decompiler
- Not for: You do not own the app and have no permission to analyze it; the author warns this may break the law
- Not for: The app is built with Flutter, React Native, Cordova or Xamarin: the author says decompiling Java is mostly useless there

## What it is
- Kind: command, scripts, knowledge
- License: Apache-2.0
- Repository: https://github.com/SimoneAvogadro/android-reverse-engineering-skill

## What it does
- Phase 0: fingerprint the app file (framework, network library, obfuscation level, native libraries) before decompiling
- Phase 1: check that Java and jadx are installed; install missing required tools, ask before optional ones
- Phase 2: decompile with jadx, Fernflower/Vineflower or both (XAPK bundles are unpacked first)
- Phase 3: read the manifest, package layout and every BuildConfig file; name the architecture pattern
- Phase 3.5: for obfuscated Kotlin apps, rebuild original class names from Kotlin metadata
- Phase 4: trace call flows from screens through view models and repositories to the network call
- Phase 5: list every endpoint in a flat table, and detail only the high-value ones (login, payments)

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| android-reverse-engineering | plain language ("Decompile this APK", "Extract API endpoints from this app") | no | Turns an Android app file back into readable code and documents the server calls it makes |
| decompile | /decompile path/to/app.apk | no | One command: checks tools, decompiles the file and reports the app's structure |

### android-reverse-engineering
- Asks for: The path to an APK, XAPK, JAR or AAR file
- Asks for: Optionally: which screen or feature to trace, or which endpoints matter to you
- Gives: Decompiled source in an output folder
- Gives: Architecture summary: app structure, main packages, pattern used
- Gives: API documentation: every endpoint found
- Gives: Call flow map from screens to network calls (login and main features first)
- Say: "Decompile app.apk and list the API endpoints it calls"

### decompile
- Asks for: The path to the app file (it asks if you leave it out)
- Gives: Decompiled output
- Gives: A summary of the main screen, application class and architecture
- Gives: Suggested next steps: trace flows, extract APIs, analyze one class
- Say: "/decompile ~/Downloads/app.apk"

## Know before installing
- The author limits use to lawful purposes: security research and authorized testing, interoperability analysis allowed by law, malware analysis, education and CTF. You are responsible for having the right to analyze the file.
- It switches on by itself when you ask to decompile or reverse engineer an Android app, find API endpoints or follow a call flow (trigger words in English and Chinese).
- The installer downloads the latest release of jadx, Vineflower or dex2jar from GitHub with no fixed version or checksum, or uses Homebrew/apt/dnf/pacman (with sudo on Linux).
- It edits files outside the project: tools go to ~/.local/share and ~/.local/bin, and a PATH line is appended to your ~/.zshrc, ~/.bashrc or ~/.profile.
- Decompiled code is read by Claude; the author points to Anthropic's terms for that, and the plugin itself sends nothing.
- It points the assistant at secrets inside the app: BuildConfig constants, API keys, tokens and request-signing schemes are listed in the report.

## Install (official commands)
- Claude Code: `/plugin marketplace add SimoneAvogadro/android-reverse-engineering-skill` && `/plugin install android-reverse-engineering@android-reverse-engineering-skill` — Then install Java 17+ and jadx yourself (see references/setup-guide.md) or let the skill run install-dep.sh.
- Claude Code (local clone): `git clone https://github.com/SimoneAvogadro/android-reverse-engineering-skill.git` && `/plugin marketplace add /path/to/android-reverse-engineering-skill` && `/plugin install android-reverse-engineering@android-reverse-engineering-skill`
- Any shell (scripts only): `bash plugins/android-reverse-engineering/skills/android-reverse-engineering/scripts/check-deps.sh` && `bash plugins/android-reverse-engineering/skills/android-reverse-engineering/scripts/decompile.sh app.apk` — The scripts also work standalone without an assistant.

## What runs on the user's machine
- Code on the machine: yes (when the skill or /decompile runs its scripts (no hooks, nothing runs at session start))
- Network: optional
- Install: Markdown, one slash command and bash/PowerShell scripts. No hooks.
- /decompile: The command pre-approves only check-deps.sh and decompile.sh; other scripts go through normal permission prompts.
- Dependency check: check-deps.sh / check-deps.ps1 look for Java, jadx, Vineflower/Fernflower, dex2jar, apktool and adb. Local only.
- Installing a missing tool (install-dep.sh / .ps1): Network: GitHub release API and downloads (latest tag, no checksum) or brew/apt/dnf/pacman (sudo on Linux); on Windows winget/scoop/choco or direct download. Writes ~/.local/share/<tool>, links in ~/.local/bin, a vineflower wrapper script, appends PATH and FERNFLOWER_JAR_PATH lines to the shell profile; on Windows sets the user PATH and FERNFLOWER_JAR_PATH.
- Decompile: Runs jadx / Fernflower / dex2jar locally; writes <name>-decompiled (or -o dir); XAPK files are unpacked in a temp folder that is removed afterwards.
- Fingerprint, API search, Kotlin name recovery: Local unzip/grep/awk over the app file or decompiled sources; temp files only, plus a mapping folder for recovered names.

## Settings
- `FERNFLOWER_JAR_PATH`: Path to the Vineflower/Fernflower JAR; install-dep sets it
- `-o / --output`: Output folder for decompile.sh (default <name>-decompiled)
- `--engine`: jadx (default), fernflower or both
- `--deobf / --no-res`: Deobfuscation on / skip resources

## Examples (from the pack's own files)
- The Tier 1 endpoint table: output format defined in plugins/android-reverse-engineering/skills/android-reverse-engineering/SKILL.md

## Author's numbers (as reported, not run by AgentGid)
- Kotlin name recovery brings back about 100% of *Repository / *ViewModel / *UseCase / *Impl classes and about 80% of data classes on a typical app. Source: SimoneAvogadro/android-reverse-engineering-skill/plugins/android-reverse-engineering/skills/android-reverse-engineering/SKILL.md
- 30-50% of all classes regain their real names on a typical app. Source: SimoneAvogadro/android-reverse-engineering-skill/plugins/android-reverse-engineering/skills/android-reverse-engineering/scripts/recover-kotlin-names.sh

## Steps only the person can do
- Confirm you own the app or have permission to analyze it (README.md (Disclaimer)) Then: The agent runs /decompile on the file
- Install Java 17+ and jadx yourself, or approve the sudo prompt if install-dep needs it (Linux package managers) (plugins/android-reverse-engineering/skills/android-reverse-engineering/references/setup-guide.md) Then: The agent re-runs check-deps.sh and continues only when the required tools pass

## Mistakes to avoid
- Not: Run jadx on a Flutter, React Native, Cordova or Xamarin app and read the Java output. Instead: Run fingerprint.sh first; if it reports one of these frameworks, stop and use tools for that framework. Why: The real code of such apps is not in the Java classes
- Not: Decompile an APK with --engine fernflower without dex2jar installed. Instead: Install dex2jar first, or use the default jadx engine for APK files. Why: Fernflower reads Java bytecode, so APK files go through dex2jar first
- Not: Keep retrying when install-dep stops because it needs sudo. Instead: Show the printed manual command to the person and stop until they install the tool. Why: The script exits with code 2 and prints the exact command when it cannot install by itself
- Not: Expect Kotlin name recovery to restore method and field names. Instead: Use it for class names; rename methods by hand or infer them from patterns. Why: Kotlin metadata keeps class-level names only
- Not: Decompile any app file the person hands over. Instead: Confirm first that the person owns the app or has permission to analyze it. Why: The author limits the pack to lawful purposes

## What leaves the machine
- Requests for tool release metadata and archives (jadx, Vineflower, dex2jar), or package-manager downloads (Java, Apktool, adb); no data about you or your files → api.github.com and github.com, or your system package manager (Homebrew, apt, dnf, pacman, winget, scoop, Chocolatey), Only when install-dep.sh or install-dep.ps1 runs. Opt out: Install Java, jadx and the optional tools yourself before using the skill
- Decompiled source and reports that Claude reads while working → Anthropic (Claude), as with any Claude Code session, Whenever the assistant reads the decompiled output. Opt out: Run the scripts standalone without an assistant

## Lines in the pack aimed at agents (ask the person first)
- "**If required dependencies are missing** (exit code 1), install them automatically:" (plugins/android-reverse-engineering/skills/android-reverse-engineering/SKILL.md): Ask the person before installing Java or jadx: install-dep downloads the latest GitHub release without a checksum, may use sudo, and appends PATH lines to the shell profile
- "**Read every `BuildConfig.java`** — these are almost never obfuscated and frequently leak the highest-signal constants in the entire APK (base URLs, flavor names, build type, third-party API keys, feature flags):" (plugins/android-reverse-engineering/skills/android-reverse-engineering/SKILL.md): Keys and tokens found in the app belong to its owner; keep the report private and do not use them against live services without permission

## May I use it like this?
- commercial-app: yes (Apache-2.0 covers the plugin's own files; keep the license notice. The decompilers it drives come under their own licenses)
- redistribute-files: conditions (Apache-2.0: give recipients a copy of the license and mark changed files; third-party tools are not bundled)
- client-work: conditions (The license allows it; the README limits use to lawful purposes, so you need the right to analyze the client's app)
- inside-app-bundle: yes (Only the plugin's own files are Apache-2.0; jadx, Vineflower, dex2jar and Java are not part of it)

## Which one to pick
- If You need to decompile an Android app (APK, XAPK, JAR, AAR) and list the server endpoints it calls: skill:SimoneAvogadro/android-reverse-engineering-skill
- If You want one router for many kinds of authorized reverse-engineering and penetration-testing jobs, in several AI clients: skill:zhaoxuya520/reverse-skill
- If You are solving CTF challenges across web, pwn, crypto, reverse engineering and forensics: skill:ljagiello/ctf-skills
- If You want general reverse-engineering skills for Claude Code, not only Android apps: skill:P4nda0s/reverse-skills

## Works well with
- agent:claude-code: The pack is a Claude Code plugin with a /decompile slash command

## Works in and needs
- Works in Claude Code: plugin
- Needs Java JDK 17+: Runtime for the decompilers
- Needs jadx CLI: Default decompiler engine
- Needs dex2jar (optional): Needed to use Fernflower on APK files
- Needs bash, or PowerShell on Windows (experimental): The workflow runs shell scripts

## How to tell it works
Install it, then run /decompile on an APK you own or are allowed to analyze. It first checks Java and jadx, then writes an <app>-decompiled folder and reports the main screen, packages and architecture; ask next for the API endpoints and you get a table with host, method, path, auth and source file.

## Related
- skylot/jadx
- Vineflower/vineflower
- JetBrains/fernflower
- ThexXTURBOXx/dex2jar

## Safety
Analyze only apps you own or have permission to analyze; the author limits use to lawful purposes. Review install-dep.sh before letting the assistant run it: it fetches the newest GitHub release without a fixed version or checksum, may use sudo, and appends PATH lines to your shell profile. Decompiled output can contain the app's keys and tokens; keep it private.
