Dex2jar – Tools To Work With Android .dex & Java .class Files

Dex2jar is a tool to work with android .dex and java .class files.

  • dex-reader/writer: Read/write the Dalvik Executable (.dex) file. It has a light weight API similar with ASM.
  • d2j-dex2jar: Convert .dex file to .class files (zipped as jar)
  • 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;”
  • other tools: d2j-decrypt-string

Also ReadMalwoverview – Tool To Perform An Initial & Quick Triage On A Directory Containing Malware Samples

Dex2jar Utilization

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

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