Search This Blog

Saturday, February 15, 2014

View source from odex file

copy the framework directory from the android you get the odex file.

  • /system/framweork copy to D:\MyStuff\Android\odex_deodex\l5-framework


open cmd  - and run the next commnads
cd D:\MyStuff\Android\odex_deodex

java -jar baksmali-2.0.2.jar -d D:\MyStuff\Android\odex_deodex\l5-framework -x d:\temp\YouTube.odex
the generated file go-to out folder by default.

now lets convert the out folder to dex file :
java -jar smali-2.0.2.jar  -o classes.dex out

use dex2jar file to create jar file
d2j-dex2jar.bat D:\MyStuff\Android\odex_deodex\classes.dex
this will generate classes-dex2jar.jar


open the jar file via jd-gui program
jd-gui.exe and choose the jar file classes-dex2jar.jar

 and you can see the code !!!

helpful links
http://madteam.co/forum/tutorials/how-to-deodex-an-odex-file/
http://javakorea.blogspot.co.il/2013/09/odex-decompilation.html
http://forum.xda-developers.com/showthread.php?t=2345435

No comments: