LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dexter

Android DEX file manipulation and analysis tool

TLDR

Print statistics for a DEX file
$ dexter -s [classes.dex]
copy
List the classes defined in a DEX file
$ dexter -l [classes.dex]
copy
Disassemble method bodies
$ dexter -d [classes.dex]
copy
Extract a single class into a new DEX file
$ dexter -e [com.example.MyClass] -o [out.dex] [classes.dex]
copy
Generate a control flow graph
$ dexter --cfg [compact] [classes.dex]
copy

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

brew install dexter
copy
nix profile install nixpkgs#dexter
copy

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.

SEE ALSO

dexdump(1), apktool(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid