# SmaliEx **Repository Path**: android_ios_test/SmaliEx ## Basic Information - **Project Name**: SmaliEx - **Description**: Deoptimize odex from oat. - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### About This is forked from https://code.google.com/p/smali/ The additional modification is to support convert oat file to 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/blob/master/smaliex-bin/oat2dex.jar?raw=true 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 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)

Original Readme

### About smali/baksmali is an assembler/disassembler for the dex format used by dalvik, Android's Java VM implementation. The syntax is loosely based on Jasmin's/dedexer's syntax, and supports the full functionality of the dex format (annotations, debug info, line info, etc.) Downloads are at https://bitbucket.org/JesusFreke/smali/downloads. If you are interested in submitting a patch, feel free to send me a pull request here. #### Support - [github Issue tracker](https://github.com/JesusFreke/smali/issues) - For any bugs/issues/feature requests - [#smali on freenode](http://webchat.freenode.net/?channels=smali) - Free free to drop by and ask a question. Don't expect an instant response, but if you hang around someone will respond. #### Some useful links for getting started with smali - [Official dex bytecode reference](https://source.android.com/devices/tech/dalvik/dalvik-bytecode.html) - [Registers wiki page](https://github.com/JesusFreke/smali/wiki/Registers) - [Types, Methods and Fields wiki page](https://github.com/JesusFreke/smali/wiki/TypesMethodsAndFields) - [Official dex format reference](https://source.android.com/devices/tech/dalvik/dex-format.html)