
ASC
Zero-overhead Android decompiler for mobile security researchers
Replaces Jeb Decompiler

Who it's for
ASC's `findrefs` command traces any string, type, method, or field across every DEX in an APK without loading the entire artifact. Researchers investigating a specific library or vulnerability pattern can get results in under 2 seconds on large APKs, then decompile only the relevant class with `getclass`.
Skip if you need an interactive code browser with call graphs, cross-reference navigation, and annotation support. ASC is a CLI query engine, not an exploration environment.
The `agentic-ai` topic and stateless design make ASC purpose-built for automated analysis pipelines. An agent can call `findrefs` to locate a class, then call `getclass` to decompile it, with each call completing in milliseconds and requiring no session state between calls.
Skip if your pipeline needs the full decompiled source tree of an APK in one pass. ASC is optimized for targeted extraction, not bulk decompilation of every class.
ASC exploits R8 compiler determinism to search obfuscated code efficiently. Since R8 produces predictable physical layouts regardless of obfuscation layer, ASC can locate method implementations in a few hundred milliseconds even when class names have been renamed.
Skip if the APK was compiled with a non-R8 compiler (older ProGuard-only builds or custom toolchains). ASC's speed optimizations are specific to R8 output.
ASC provides a `pip install droidasc` entry point and a clean CLI surface that is straightforward to wrap in a Python subprocess call. Teams building scanners, auditors, or compliance tools on top of APK analysis can use it as a dependency without maintaining custom DEX parsing code.
Skip if you need a Python SDK with structured return values rather than CLI output. The current interface is command-line only with file-based or stdout output.
The problem
Android reverse engineering requires decompiling large APK files to inspect code, trace references, and analyze behavior. Traditional decompilers address this by inflating the artifact, parsing every class, and constructing a cross-reference database before returning any result. For large APKs (200MB and above), this preprocessing can take tens of minutes, consume gigabytes of RAM, and produce nothing useful until the full index is done. Researchers doing one-off code searches, security scanners running automated analysis, and AI agents inspecting APKs on demand all pay this preprocessing cost whether or not they need the full index. The preprocessing model made sense when researchers explored a codebase interactively for days, but it is an obstacle when the goal is to locate one class or trace one reference in an automated pipeline.
How it works
Queries the APK's Deflate bitstream directly instead of inflating the whole artifact. No index is built before the first query, so the first search costs the same as the thousandth. A 352MB commercial APK yields cross-reference results in 1.79 seconds using 141MB of RAM.
The `findrefs` command finds all references to a string, type, method, or field across every DEX entry in the APK in one pass. Supports exact matches and fuzzy class name matching. Results can be written to a file for downstream analysis or piped to other tools.
The `getclass` command locates a target class, extracts only its bytecode and dependencies into a minimal in-memory DEX, and decompiles it. Class decompilation on a 352MB APK takes 177 milliseconds. Supports multi-threaded execution via the `--threads` flag.
The `getmanifest` command decodes the binary-encoded AndroidManifest.xml from any APK and prints it as readable XML, with optional file output. No need to unpack the APK or run a separate decode step.
ASC exploits two deterministic R8 compiler behaviors. Constant relocation places numeric literals in predictable positions; instruction deduplication clusters identical bytecode blocks. These patterns let ASC narrow searches to small physical regions of the DEX instead of scanning the full artifact.
Features
- Stateless zero-preprocessing engine
- Cross-DEX reference search
- On-demand class decompilation
- AndroidManifest.xml decoding
- R8 compiler pattern exploitation
How to install
Install droidasc from PyPI; the droidasc CLI command becomes available globally after installation.
pip install droidascRecommended for this setup
Strengths
- Millisecond response on large APKs: Benchmark on a 352MB commercial APK: cross-reference search in 1.79 seconds, class decompilation in 177 milliseconds, peak RAM 141MB. Traditional decompilers allocate gigabytes and wait tens of minutes before returning any result.
- Apache-2.0 license with no usage restrictions: Apache-2.0 permits commercial use, modification, and distribution without copyleft requirements. Security teams can integrate ASC into proprietary analysis pipelines and paid engagements without license friction or attribution requirements beyond the standard Apache-2.0 notice.
- Designed for agentic automation: ASC was built from the ground up as a decompilation primitive for AI agents and automated scanners, not as an interactive GUI tool. Every operation is a single CLI command with structured output options, which makes it straightforward to call from a Python script or an agent framework.
- Presented at Black Hat Europe Arsenal: ASC was presented at Black Hat Europe Arsenal, a curated showcase for offensive and defensive security tooling reviewed by the conference's security community. The paper explaining the R8 exploitation technique is publicly linked from the project README.
Trade-offs
- CLI-only with no GUI or interactive analysis session: ASC provides `getclass`, `getmanifest`, and `findrefs` commands but no graphical code browser, call graph viewer, or interactive exploration session. Researchers who need to navigate unfamiliar codebases interactively will still reach for GUI tools like JEB or JADX alongside ASC.
- New project with limited ecosystem documentation: ASC was created in June 2026. The README covers the core CLI commands but does not document error handling, edge cases for malformed APKs, or integration patterns for production pipelines. Teams integrating ASC into automated workflows will need to rely on the GitHub repository and issue tracker for support on non-obvious scenarios.
Tech stack
FAQ
ASC queries the APK's Deflate bitstream directly instead of inflating the full artifact and building a cross-reference database. It exploits R8 compiler patterns to narrow searches to small DEX regions and uses an O(1) instruction locating primitive for constant-time method resolution. On a 352MB APK, cross-reference searches complete in 1.79 seconds and class decompilations in 177 milliseconds, using 141MB of RAM.
Yes. ASC is Apache-2.0 licensed, which permits commercial use, modification, and distribution without restriction. Security consultancies and enterprise teams can integrate it into paid engagements and proprietary pipelines without licensing fees or obligations beyond the Apache-2.0 attribution notice.
JEB is a commercial GUI-based reverse-engineering tool with a persistent analysis database, plugin SDK, and interactive code exploration. ASC is a stateless CLI tool optimized for automated, targeted queries. JEB is better for interactive investigation of an unfamiliar codebase; ASC is better for scripted analysis, agentic automation, and scenarios where response time per query matters more than a persistent workspace.
ASC is designed for DEX-based Android APKs compiled with the R8 compiler, which is the standard production compiler in Android Studio since Android Gradle Plugin 3.4. Its speed optimizations specifically exploit R8's deterministic constant relocation and instruction deduplication behaviors. APKs built with older ProGuard-only pipelines may not benefit from the same optimizations.
ASC is optimized for targeted extraction rather than full-APK batch decompilation. The `getclass` command extracts and decompiles one class at a time; `findrefs` locates references across all DEX entries. There is no single command to dump the full decompiled source tree. For full-APK decompilation, tools like JADX or apktool are better suited to that workflow.