项目作者: testwhat

项目描述 :
A wrapper to get de-optimized dex from odex/oat/vdex.
高级语言: Java
项目地址: git://github.com/testwhat/SmaliEx.git
创建时间: 2015-02-25T09:24:51Z
项目社区:https://github.com/testwhat/SmaliEx

开源协议:

下载


About

This is forked from https://github.com/JesusFreke/smali
The additional modification is to support convert oat file to dex, and able to smali/baksmali multi-dex.

Function concept:
boot.oat -> extract optimized boot class dex files -> deoptimize to dex files
app.odex(oat) -> reference boot dex files to deoptimize

Download latest version:
https://github.com/testwhat/SmaliEx/releases/tag/snapshot

Build command:
gradlew -b smaliex/build.gradle dist

Usage:
Deoptimize boot classes (The output will be in “odex” and “dex” folders):
java -jar oat2dex.jar boot
Deoptimize application:
java -jar oat2dex.jar
Get odex from oat:
java -jar oat2dex.jar odex
Get odex smali (with optimized opcode) from oat/odex:
java -jar oat2dex.jar smali
Deodex /system/framework/ from device (need to connect with adb):
java -jar oat2dex.jar devfw

Limitation:

  • If debug infomration is trimmed (e.g. with android support library or proguarded), then it is unable to recover type information.
  • Cannot recognize informal oat/dex format.

Used by:
JoelDroid
SVADeodexerForArt
PUMa - Patch Utility Manager