berkus / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

Why recompiled dex different? #225

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, Brut.all! APKTool is really awesome. I like it! 

But I have a little question. When I used apktool to decompile an apk file and 
then recompile it (didn't do any modification on the smali). Then I found the 
new apk changed a lot than the original one. I compared them used UltraCompare 
and found their dex files are totally different, although the new apk file can 
work very well. 

Please tell me why? Thank you! 

Original issue reported on code.google.com by zhengmin...@gmail.com on 12 Oct 2011 at 4:49

GoogleCodeExporter commented 9 years ago
This is normal if you try to convert something between different formats, 
because same data can be written in many ways. If you e.g. open some image with 
image editor and then save it to disk then file will be totally different than 
original.

Original comment by Brut.alll on 5 Nov 2011 at 11:29