跳到正文
Skillpedia
安全8.6k · #12349

android-reverse-engineering

它能做什么

这项技能打开 Android 应用安装包,把其中的代码转换为可读形式,以查找网址和调用路径。适合分析 Android 应用的开发者和安全研究人员。

适用场景

  • ✓当你想读取 Android APK 或类似安装包内部的代码时。
  • ✓当你需要找出 Android 应用使用的网络 API 地址时。
  • ✓当你想追踪应用某个页面如何访问其网络代码时。

技能链接

https://github.com/SimoneAvogadro/android-reverse-engineering-skill/blob/master/plugins/android-reverse-engineering/skills/android-reverse-engineering/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/SimoneAvogadro/android-reverse-engineering-skill/blob/master/plugins/android-reverse-engineering/skills/android-reverse-engineering/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请反编译这个 Android APK,列出应用调用的 API 地址,并为每个地址附上简短说明。”

每周 5 个新技能,1 分钟读完。

工作原理

它首先检查已安装哪些工具以及应用是什么类型,然后反编译安装包,并在代码中搜索网络调用。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Android Reverse Engineering

Decompile Android APK, XAPK, JAR, and AAR files using jadx and Fernflower/Vineflower, trace call flows through application code and libraries, and produce structured documentation of extracted APIs. Two decompiler engines are supported — jadx for broad Android coverage and Fernflower for higher-quality output on complex Java code — and can be used together for comparison.

Prerequisites

This skill requires Java JDK 17+ and jadx to be installed. Fernflower/Vineflower and dex2jar are optional but recommended for better decompilation quality. Run the dependency checker to verify:

bash ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/check-deps.sh

On Windows (PowerShell):

& "${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/check-deps.ps1"

If anything is missing, follow the installation instructions in ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/references/setup-guide.md.

Workflow

Phase 0: Fingerprint the App (recommended before anything else)

Before installing tools or decompiling, run a fast triage to determine what kind of app you are looking at. Decompiling Java is mostly useless for Flutter, React Native, Cordova/Capacitor, and Xamarin apps — the real code lives elsewhere. The fingerprint script tells you which.

bash ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/fingerprint.sh <file.apk|file.xapk>

It prints, in one screen:

  • Mobile framework (Flutter / React Native / Cordova / Xamarin / Native Kotlin / etc.) with the file marker that triggered the verdict.
  • HTTP stack (Retrofit, OkHttp, Ktor, Apollo, Volley) detected via DEX string scan — works even when class names are obfuscated.
  • DI / serialization signals (Hilt, Dagger, Koin, kotlinx.serialization, Moshi, Gson, Jackson).
  • Obfuscation level estimate based on root-level short-named packages.
  • Notable third-party SDKs (AppsFlyer, Datadog, Sentry, Firebase, payment SDKs, support/chat SDKs, etc.).
  • Consolidated native libraries across the base APK and all splits — XAPK split bundles often place .so files in config.<abi>.apk, not in base.apk.
  • Recommended next step, which differs by framework (e.g. for Flutter the script suggests blutter / strings libapp.so rather than jadx).

If the fingerprint says the app is Flutter / RN / Cordova / Xamarin, stop and switch to the framework-appropriate tooling. Phases 1–5 below assume a native (Java/Kotlin) Android app.

Phase 1: Verify and Install Dependencies

Before decompiling, confirm that the required tools are available — and install any that are missing.

Action: Run the dependency check script.

bash ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/check-deps.sh

On Windows (PowerShell):

& "${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/check-deps.ps1"

The output contains machine-readable lines:

  • INSTALL_REQUIRED:<dep> — must be installed before proceeding
  • INSTALL_OPTIONAL:<dep> — recommended but not blocking

If required dependencies are missing (exit code 1), install them automatically:

bash ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/install-dep.sh <dep>

On Windows (PowerShell):

& "${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/install-dep.ps1" <dep>

The install script detects the OS and package manager, then:

  • Installs without sudo when possible (downloads to ~/.local/share/, symlinks in ~/.local/bin/)
  • Uses sudo and the system package manager when necessary (apt, dnf, pacman)
  • If sudo is needed but unavailable or the user declines, it prints the exact manual command and exits with code 2 — show these instructions to the user

Windows notes: The PowerShell install script uses winget, scoop, or choco (in that order). If none are available, it downloads directly to %USERPROFILE%\.local\share\ and adds the directory to the user's PATH. After running install-dep.ps1, the PATH is persisted but the current terminal session may not see it. The check-deps.ps1 and decompile.ps1 scripts automatically refresh PATH from the user environment, so re-running them will find newly installed tools without restarting the terminal.

For optional dependencies, ask the user if they want to install them. Vineflower and dex2jar are recomme

常见问题

需要哪些工具?

这项技能需要 Java 17 或更高版本以及 jadx,并推荐搭配 Fernflower 或 Vineflower 作为额外工具。

它适用于 Flutter 或 React Native 应用吗?

这项技能提醒,对于这些应用,反编译 Java 基本没有用,因为它们的真正代码位于别处。

它接受哪些文件类型?

它支持 APK、XAPK、JAR 和 AAR 文件。

详情

作者的原始描述

Decompile Android APK, XAPK, JAR, and AAR files using jadx or Fernflower/Vineflower. Reverse engineer Android apps, extract HTTP API endpoints (Retrofit, OkHttp, Volley), and trace call flows from UI to network layer. Use when the user wants to decompile, analyze, or reverse engineer Android packages, find API endpoints, or follow call flows. 中文触发词:反编译APK、安卓逆向、提取API、分析安卓应用、反编译安卓、逆向工程、追踪调用链、提取接口

repo: SimoneAvogadro/android-reverse-engineering-skill

热度

GitHub 星标
8.6k
排名
#12349
许可证
Apache-2.0
更新时间
2026/10/12

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能