analyze_android_packageHow to REA Android APKs: JADX Decompilation, AndroidManifest & DEX Bytecode
Audit Android applications from package manifest to decompiled Java/Kotlin source code: unpack APK archives, extract AndroidManifest.xml components, decompile Dalvik/ART classes with JADX, and audit exported attack surfaces.
In this official REA guide for Android APKs & DEX Bytecode, AI coding agents (Claude Code, Cursor, Windsurf) execute 'rea analyze ./mobile-app.apk --provider jadx --json' to safely extract file layout, symbols, and code logic without launching unverified binaries.
The Problem & Target Artifact
Mobile application security assessment: You are auditing a banking or enterprise Android app for unauthorized intent redirection, exported background services, hardcoded API secrets, and unpinned TLS certificates.
Natural Language Agent Instructions
Copy and paste this prompt directly into your AI coding agent when REA is registered via Model Context Protocol (MCP):
Use REA to inspect this Android APK. List all exported Activities and Broadcast Receivers in AndroidManifest.xml, search for API endpoint strings in decompiled classes, and check for root detection routines.Run REA Analysis Command
Execute the following command in your terminal or inspect the MCP JSON-RPC call executed by your agent:
rea analyze ./mobile-app.apk --provider jadx --jsonWhat REA Extracts & Returns
Extracted Manifest & Decompiled Class Snippet
The verified findings and synthesized clean-room structures generated from this investigation:
// Decompiled from classes.dex via JADX
public class SecurityTokenManager {
private static final String API_ENDPOINT = "https://api.internal.target.com/v2/auth";
public static String generateRequestSignature(String payload, String timestamp) {
String salt = "k9_sec_2026";
return HmacSha256.compute(payload + ":" + timestamp + ":" + salt);
}
}Headless JADX IPC & Resource Table Demangling
REA orchestrates headless JADX through structured subprocess IPC. It maps APK resources and decompiled class namespaces without requiring the full JADX GUI. AI agents can query specific class files or search across all decompiled methods using bounded regex queries, preventing memory exhaustion on multi-gigabyte games or super-apps.