REPTILEHAUS / smali2java

Recreate Java code from Smali

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smali2Java

Build Status codecov

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.13+

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

About

Recreate Java code from Smali


Languages

Language:Smali 99.5%Language:Go 0.5%