back to home

pxb1988 / dex2jar

Tools to work with android .dex and java .class files

13,070 stars
2,194 forks
380 issues
JavaSmaliGAP

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing pxb1988/dex2jar in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/pxb1988/dex2jar)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview

dex2jar

Project move to GitHub

_MirrorWikiDownloadsIssues
ghhttps://github.com/pxb1988/dex2jarWikiReleasesIssues
sfhttps://sourceforge.net/p/dex2jaroldoldold
bbhttps://bitbucket.org/pxb1988/dex2jaroldoldold
gchttps://code.google.com/p/dex2jaroldoldold

Tools to work with android .dex and java .class files

  1. dex-reader/writer: Read/write the Dalvik Executable (.dex) file. It has a light weight API similar with ASM.
  2. d2j-dex2jar: Convert .dex file to .class files (zipped as jar)
  3. smali/baksmali: disassemble dex to smali files and assemble dex from smali files. different implementation to smali/baksmali, same syntax, but we support escape in type desc "Lcom/dex2jar\t\u1234;"
  4. other tools: d2j-decrypt-string

Usage

  1. In the root directory run: ./gradlew distZip
  2. cd dex-tools/build/distributions
  3. Unzip the file dex-tools-2.1-SNAPSHOT.zip (file size should be ~5 MB)
  4. Run d2j-dex2jar.sh from the unzipped directory

Example usage:

sh d2j-dex2jar.sh -f ~/path/to/apk_to_decompile.apk

And the output file will be apk_to_decompile-dex2jar.jar.

Need help ?

post on issue trackers list above.

License

Apache 2.0