dexter
Android DEX file manipulation and analysis tool
TLDR
SYNOPSIS
dexter [flags...] [-e classname] [-o outfile] dexfile
DESCRIPTION
dexter is a DEX (Dalvik Executable) manipulation tool from the Android Open Source Project (tools/dexter). Built on top of the dexter/slicer library, it can inspect, disassemble, and rewrite DEX files.Beyond read-only analysis (stats, class lists, disassembly, layout maps), dexter can produce modified .dex files, for example extracting a single class. Its control flow graph output helps when studying method-level structure of compiled Android code.The underlying slicer library is also used for bytecode instrumentation in Android tooling.
PARAMETERS
-s
Print stats about the DEX file sections.-l
List the classes defined in the DEX file.-d
Disassemble method bodies.-e classname
Extract a single class.-o file
Output a new .dex file.-m
Print the .dex layout map.-v
Verbose output.--cfg compact|verbose
Generate a control flow graph.-h
Display help.
INSTALL
CAVEATS
dexter operates on .dex files, not APKs; extract classes.dex from an APK first (e.g. with unzip). It is built from the AOSP source tree and is not typically packaged by Linux distributions.
