https://github.com/testwhat/smaliex
A wrapper to get de-optimized dex from odex/oat/vdex.
https://github.com/testwhat/smaliex
oat odex vdex
Last synced: 1 day ago
JSON representation
A wrapper to get de-optimized dex from odex/oat/vdex.
- Host: GitHub
- URL: https://github.com/testwhat/smaliex
- Owner: testwhat
- Created: 2015-02-25T09:24:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2025-04-27T18:35:15.000Z (7 months ago)
- Last Synced: 2025-05-21T10:39:55.110Z (6 months ago)
- Topics: oat, odex, vdex
- Language: Java
- Homepage:
- Size: 14.6 MB
- Stars: 542
- Watchers: 43
- Forks: 141
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-reverse-engineering - **408**星 - optimized dex from odex/oat/vdex. (<a id="2110ded2aa5637fa933cc674bc33bf21"></a>工具 / <a id="63fd2c592145914e99f837cecdc5a67c"></a>新添加的1)
README
### 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 <boot.oat file>
Deoptimize application:
java -jar oat2dex.jar <app.odex> <boot-class-folder output from above>
Get odex from oat:
java -jar oat2dex.jar odex <oat file>
Get odex smali (with optimized opcode) from oat/odex:
java -jar oat2dex.jar smali <oat/odex file>
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](http://forum.xda-developers.com/android/software-hacking/script-app-joeldroid-lollipop-batch-t2980857)
[SVADeodexerForArt](http://forum.xda-developers.com/galaxy-s5/general/tool-deodex-tool-android-l-t2972025)
[PUMa - Patch Utility Manager](http://forum.xda-developers.com/showthread.php?t=1434946)