Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 853 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 853 Bytes

Smali2Java

Build Status

This project attempts to create a valid Java source code from disassembled code used by Dalvik

Read the specification here: https://source.android.com/devices/tech/dalvik/dalvik-bytecode.html

Why would you need it if there are tools like https://bytecodeviewer.com/?

  • It's command line
  • Allows you to use tools like grep on the output

Prerequisites

  • Go 1.9

Building

go build

Usage

You'll need APK that you want to decompile

brew install apktool
apktool d ./<your_apk>

You'll get a directory, which contains among the others directory called 'smali'

Now you can run Smali2Java on it:

smali2java -path_to_smali=<smali_directory>

License

MIT