Logo vun Android Reverse Engineering

Android Reverse Engineering

Communautéit
CreditTone
android-reverse-engineering

Decompile Android APK, XAPK, JAR, and AAR files using jadx or Fernflower/Vineflower. Reverse engineer Android apps, extract HTTP API endpoints, trace call flows from UI to network layer, and analyze runtime behavior with Frida, network capture, JNI/SO inspection, and signature generation. Use when the user wants to decompile, analyze, hook, inspect network traffic, bypass SSL pinning for analysis, locate crypto or signing logic, or follow call flows in Android packages.

Iwwersiicht

EditeurCreditTone
Repositoryandroid-reverse-engineering-skill
Skill-Nummandroid-reverse-engineering
Stären
540
Forks
71
Matgeliwwert Fichieren
24
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 24 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum CreditTone op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Android Reverse Engineering an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/CreditTone/android-reverse-engineering-skill/tree/master/android-reverse-engineering/skills/android-reverse-engineering
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CreditTone/android-reverse-engineering-skill.git /tmp/android-reverse-engineering-skill
mkdir -p .claude/skills
cp -r /tmp/android-reverse-engineering-skill/android-reverse-engineering/skills/android-reverse-engineering .claude/skills/android-reverse-engineering
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Android Reverse Engineering an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Android Reverse Engineering automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Android Reverse Engineering net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Android Reverse Engineering

Decompile Android APK, XAPK, JAR, and AAR files using jadx and Fernflower/Vineflower, trace call flows through application code and libraries, produce structured documentation of extracted APIs, and escalate to runtime analysis only after static triage shows that it is needed. Two decompiler engines are supported: jadx for broad Android coverage and Fernflower/Vineflower for higher-quality output on complex Java code.

Core Principle

Do not jump straight into Frida, packet capture, or SO analysis. Start with JADX and identify:

  • The network stack in use
  • The request builder or interceptor chain
  • Where signing or encryption appears to happen
  • Whether the logic is visible in Java or delegated to native code

Use dynamic analysis only to confirm or bridge gaps that static analysis cannot resolve.

When to Suggest IDA MCP

IDA MCP provides static binary analysis (disassembly, decompilation, cross-references) for .so files. Do NOT suggest it blindly — check these conditions first:

Suggest IDA MCP when the user asks to:

  • Find function offsets or exports in a specific SO
  • Decompile a known native function to C pseudocode
  • Trace cross-references to a string, symbol, or address
  • Check whether a SO imports crypto/network libraries
  • Analyze a SO that is NOT obfuscated (standard compiler, recognizable function boundaries)

Do NOT suggest IDA MCP when:

  • The SO uses control-flow flattening or similary heavy obfuscation — pseudocode will be unreadable. Use Frida scripts instead.
  • All strings in the SO are encrypted — static search finds nothing. Use jni_method_trace.js to capture runtime decryption.
  • The user needs runtime values (keys, tokens, parameters, decrypted data) — IDA can only show static code.
  • The target SO has not yet been identified — suggest jni_method_trace.js first to find which SO handles the logic.
  • The user needs to compute or generate a signature, ciphertext, or token — this requires runtime execution, not static analysis.

Quick check before suggesting: Use survey_binary on the SO. If the output shows only a handful of huge functions (> 10 KB each) instead of many small ones, the binary is obfuscated — skip IDA and suggest Frida.

Prerequisites

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

bash
bash skills/android-reverse-engineering/scripts/check-deps.sh

On Windows (PowerShell):

powershell
& "skills/android-reverse-engineering/scripts/check-deps.ps1"

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

Workflow

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
bash skills/android-reverse-engineering/scripts/check-deps.sh

On Windows (PowerShell):

powershell
& "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
bash skills/android-reverse-engineering/scripts/install-dep.sh <dep>

On Windows (PowerShell):

powershell
& "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 prefers winget, then scoop, then choco
  • If no package manager is available, it falls back to downloading into %USERPROFILE%\.local\share\
  • check-deps.ps1 and decompile.ps1 refresh PATH from the user environment, so newly installed tools can usually be found without restarting the terminal

For optional dependencies, ask the user if they want to install them. Vineflower and dex2jar are recommended for best results. Rizin is recommended when JNI or .so inspection is likely.

After installation, re-run check-deps.sh to confirm everything is in place. Do not proceed to Phase 2 until all required dependencies are OK.

Phase 2: Decompile

Use the decompile wrapper script to process the target file. The script supports three engines: jadx, fernflower, and both.

Action: Choose the engine and run the decompile script. The script handles APK, XAPK, JAR, and AAR files.

bash
bash skills/android-reverse-engineering/scripts/decompile.sh [OPTIONS] <file>

On Windows (PowerShell):

powershell
& "skills/android-reverse-engineering/scripts/decompile.ps1" [OPTIONS] <file>

For XAPK files (ZIP bundles containing multiple APKs, used by APKPure and similar stores): the script automatically extracts the archive, identifies all APK files inside (base + split APKs), and decompiles each one into a separate subdirectory. The XAPK manifest is copied to the output for reference.

For split/bundled APK wrappers: if the outer APK produces very few Java files but contains base.apk and split_config.*.apk files inside its resources, the decompile script automatically detects that the outer APK is only a thin wrapper, re-decompiles base.apk into <output>/base/, skips config-only splits, and reports the real source location.

Options:

  • -o <dir> — Custom output directory (default: <filename>-decompiled)
  • --deobf — Enable deobfuscation of names when readability matters more than runtime class fidelity
  • --no-res — Skip resources, decompile code only (faster)
  • --engine ENGINE — jadx (default), fernflower, or both

Engine selection strategy:

SituationEngine
First pass on any APKjadx (fastest, handles resources; keep original runtime class names by default)
JAR/AAR library analysisfernflower (better Java output)
jadx output has warnings/broken codeboth (compare and pick best per class)
Complex lambdas, generics, streamsfernflower
Quick overview of a large APKjadx --no-res
You need Frida/JNI/unidbg/runtime class namesjadx without --deobf
You only need readability for heavily obfuscated codejadx --deobf

When using --engine both, the outputs go into <output>/jadx/ and <output>/fernflower/ respectively, with a comparison summary at the end showing file counts and jadx warning counts. Review classes with jadx warnings in the Fernflower output for better code.

For APK files with Fernflower, the script automatically uses dex2jar as an intermediate step. dex2jar must be installed for this to work.

See skills/android-reverse-engineering/references/jadx-usage.md and skills/android-reverse-engineering/references/fernflower-usage.md for the full CLI references.

Phase 3: Analyze Structure

Navigate the decompiled output to understand the app's architecture.

Actions:

  1. Read AndroidManifest.xml from <output>/resources/AndroidManifest.xml:

    • Identify the main launcher Activity
    • List all Activities, Services, BroadcastReceivers, ContentProviders
    • Note permissions (especially INTERNET, ACCESS_NETWORK_STATE)
    • Find the application class (android:name on <application>)
  2. Survey the package structure under <output>/sources/:

    • Identify the main app package and sub-packages
    • Distinguish app code from third-party libraries
    • Look for packages named api, network, data, repository, service, retrofit, http — these are where API calls live
  3. Identify the architecture pattern:

    • MVP: look for Presenter classes
    • MVVM: look for ViewModel classes and LiveData/StateFlow
    • Clean Architecture: look for domain, data, presentation packages
    • This informs where to look for network calls in the next phases

Phase 4: Trace Call Flows

Follow execution paths from user-facing entry points down to network calls.

Actions:

  1. Start from entry points: Read the main Activity or Application class identified in Phase 3.

  2. Follow the initialization chain: Application.onCreate() often sets up the HTTP client, base URL, and DI framework. Read this first.

  3. Trace user actions: From an Activity, follow:

    • onCreate() → view setup → click listeners
    • Click handler → ViewModel/Presenter method
    • ViewModel → Repository → API service interface
    • API service → actual HTTP call
  4. Map DI bindings (if Dagger/Hilt is used): Find @Module classes to understand which implementations are provided for which interfaces.

  5. Handle obfuscated code: When class names are mangled, use string literals and library API calls as anchors. Retrofit annotations and URL strings are never obfuscated.

  6. Prefer runtime-faithful names for hooks/emulation: Do the first jadx pass without --deobf whenever the next step may involve Frida, JNI FindClass, unidbg, or runtime class loading. --deobf can generate readable aliases that are useful for source navigation but are not guaranteed to exist at runtime.

See skills/android-reverse-engineering/references/call-flow-analysis.md for detailed techniques and grep commands.

Phase 5: Extract and Document APIs

Find all API endpoints and produce structured documentation.

Action: Run the API search script for a broad sweep.

bash
bash skills/android-reverse-engineering/scripts/find-api-calls.sh <output>/sources/

On Windows (PowerShell):

powershell
& "skills/android-reverse-engineering/scripts/find-api-calls.ps1" <output>/sources/

Targeted searches:

bash
# Only Retrofit
bash skills/android-reverse-engineering/scripts/find-api-calls.sh <output>/sources/ --retrofit

# Only hardcoded URLs
bash skills/android-reverse-engineering/scripts/find-api-calls.sh <output>/sources/ --urls

# Only auth patterns
bash skills/android-reverse-engineering/scripts/find-api-calls.sh <output>/sources/ --auth

On Windows (PowerShell):

powershell
# Only Retrofit
& "skills/android-reverse-engineering/scripts/find-api-calls.ps1" <output>/sources/ -Retrofit

# Only hardcoded URLs
& "skills/android-reverse-engineering/scripts/find-api-calls.ps1" <output>/sources/ -Urls

# Only auth patterns
& "skills/android-reverse-engineering/scripts/find-api-calls.ps1" <output>/sources/ -Auth

Then, for each discovered endpoint, read the surrounding source code to extract:

  • HTTP method and path
  • Base URL
  • Path parameters, query parameters, request body
  • Headers (especially authentication)
  • Response type
  • Where it's called from (the call chain from Phase 4)

Document each endpoint using this format:

markdown
### `METHOD /path`

- **Source**: `com.example.api.ApiService` (ApiService.java:42)
- **Base URL**: `https://api.example.com/v1`
- **Path params**: `id` (String)
- **Query params**: `page` (int), `limit` (int)
- **Headers**: `Authorization: Bearer <token>`
- **Request body**: `{ "email": "string", "password": "string" }`
- **Response**: `ApiResponse<User>`
- **Called from**: `LoginActivity → LoginViewModel → UserRepository → ApiService`

See skills/android-reverse-engineering/references/api-extraction-patterns.md for library-specific search patterns and the full documentation template.

Phase 6: Dynamic Analysis

Use this phase only when static analysis is insufficient or the user explicitly asks for runtime work such as Frida hook, packet capture, SSL pinning investigation, or signature tracing.

Typical escalation cases:

  • Request parameters are assembled indirectly and are hard to reconstruct statically
  • Java code calls native methods for signing, token generation, or encryption
  • The app uses a custom network stack and static search does not expose final requests
  • The user needs proof of runtime values rather than only code paths

Recommended order:

  1. Hook the Java request builder, interceptor, callback, or request object closest to the final outbound request
  2. Inspect request URL, headers, body, and any sign-related inputs and outputs
  3. Only then decide whether SSL pinning bypass or native inspection is necessary

See:

  • skills/android-reverse-engineering/references/dynamic-analysis.md
  • skills/android-reverse-engineering/references/native-analysis.md

Phase 7: Native and Signature Analysis

If signing or crypto is delegated to JNI or .so code:

  1. Find native declarations in decompiled Java
  2. Find matching System.loadLibrary calls and identify the target SO
  3. Determine whether the SO uses static JNI exports or dynamic registration
  4. Prefer confirming function inputs and outputs with runtime hooks before attempting deeper reversing
  5. Use unidbg or further RE only when the user specifically needs offline reproduction or deeper algorithm recovery

Focus on answering these questions:

  • Is the signature generated in Java or native code?
  • What are the exact inputs to the signing function?
  • Which inputs are stable constants vs runtime values such as timestamp, cookie, device ID, or request body?
  • Can the algorithm be replayed by calling the app, or must it be reimplemented?

Preferred CLI for .so analysis:

  • rizin / rz-bin first when available
  • Fall back to readelf, nm, objdump, and strings if rizin is unavailable

Recommended .so command set:

bash
# Basic file identity
file libfoo.so

# ELF metadata, imports/exports, sections
rz-bin -I libfoo.so
rz-bin -s libfoo.so
rz-bin -i libfoo.so
rz-bin -E libfoo.so

# Fast string triage
rz-strings -a libfoo.so | rg 'http|https|Java_|JNI_OnLoad|RegisterNatives|encrypt|sign|ssl|socket'

# Function list and disassembly
rizin -qc "aaa; afl; q" libfoo.so
rizin -qc "aaa; pdf @ sym.JNI_OnLoad; q" libfoo.so
rizin -qc "aaa; pdr @ sym.JNI_OnLoad; q" libfoo.so

Useful fallbacks without rizin:

bash
readelf -d libfoo.so
readelf -Ws libfoo.so
nm -D libfoo.so | rg 'Java_|JNI_OnLoad|RegisterNatives'
objdump -T libfoo.so
objdump -d libfoo.so > libfoo.objdump.asm
strings -a libfoo.so | rg 'http|https|Java_|JNI_OnLoad|RegisterNatives|encrypt|sign|ssl|socket'

Default .so workflow:

  1. Identify architecture and linked libraries with file and rz-bin -I
  2. Check exports/imports for JNI_OnLoad, Java_*, and crypto or socket APIs
  3. Search strings for URLs, hostnames, log tags, and registration clues
  4. Inspect JNI_OnLoad first, then look for RegisterNatives targets
  5. Only do deep function reversing after the Java-side call path is known

Output

At the end of the workflow, deliver:

  1. Decompiled source in the output directory
  2. Architecture summary — app structure, main packages, pattern used
  3. API documentation — all discovered endpoints in the format above
  4. Call flow map — key paths from UI to network (especially authentication and main features)
  5. Runtime findings — when applicable, the hook point, observed request fields, and the reason this point was chosen
  6. Signature assessment — whether signing is Java-based, native-backed, or not required for the target request

References

  • skills/android-reverse-engineering/references/setup-guide.md — Installing Java, jadx, Fernflower/Vineflower, dex2jar, and optional tools
  • skills/android-reverse-engineering/references/jadx-usage.md — jadx CLI options and workflows
  • skills/android-reverse-engineering/references/fernflower-usage.md — Fernflower/Vineflower CLI options, when to use, APK workflow
  • skills/android-reverse-engineering/references/api-extraction-patterns.md — Library-specific search patterns and documentation template
  • skills/android-reverse-engineering/references/call-flow-analysis.md — Techniques for tracing call flows in decompiled code
  • skills/android-reverse-engineering/references/dynamic-analysis.md — Frida, runtime request interception, SSL pinning triage, and packet capture workflow
  • skills/android-reverse-engineering/references/native-analysis.md — JNI/SO inspection, native sign analysis, and when to escalate to unidbg

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Android Reverse Engineering?

Decompile Android APK, XAPK, JAR, and AAR files using jadx or Fernflower/Vineflower. Reverse engineer Android apps, extract HTTP API endpoints, trace call flows from UI to network layer, and analyze runtime behavior with Frida, network capture, JNI/SO inspection, and signature generation. Use when the user wants to decompile, analyze, hook, inspect network traffic, bypass SSL pinning for analysis, locate crypto or signing logic, or follow call flows in Android packages.

Firwat Android Reverse Engineering op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Android Reverse Engineering besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Android Reverse Engineering an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/CreditTone/android-reverse-engineering-skill/tree/master/android-reverse-engineering/skills/android-reverse-engineering an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Android Reverse Engineering benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Android Reverse Engineering benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Android Reverse Engineering domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Android Reverse Engineering gratis?

Jo. De Skill gëtt vum CreditTone ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇