View Single Post
Old 12-10-2014, 06:17   #2 (permalink)
Braycel
Super Moderator
 
Join Date: Jul 2008
Location: Villa del rosario/Nsd Colombia
Posts: 3,605
Member: 813309
Status: Offline
Thanks Meter: 1,912
For Example

Say we need to deodex SemcVideo.apk
Keep SemcVideo.odex in the folder and then

1) 7za x SemcVideo.odex.xz
To decompress the compressed files that SemcVideo.odex has and to use them for later purpose.

Then, using the oat2dex tool*
2) oat2dex.bat SemcVideo.odex
With this command, you confirm that OAT file and DEX file header is present.
If a file error occurs here it will not convert.

In order to convert the file name to dex format.
3) oat2dex.bat SemcVideo.odex temp.dex
temp.dex file is created, it is odex file with the old structure.

Now, using the baksamli / smali to De-Odex.
4) java -jar baksmali-2.0.3.jar -a 21 -x temp.dex -o deodex
If a deodex folder is created without any error during Decompile, next step is to pack it properly.

Now, the recompiling process to generate classdex.dex file.
5)java -jar smali-2.0.3.jar -a 21 deodex -o classes.dex
Now, without any error a classes.dex file is generated.

Now to add this in apk
6) 7za u -tzip SemcVideo.apk classes.dex
This will update SecVideo.apk video files with file newly created classes.dex

Hope this helps.
  Reply With Quote
The Following 5 Users Say Thank You to Braycel For This Useful Post:
Show/Hide list of the thanked
 
Page generated in 0.09219 seconds with 7 queries