Closed GoogleCodeExporter closed 9 years ago
If you change the MAGIC value of 53 to 54 in HeaderItem.java it should fix
this. but only for v4.0.3 as it will not work for previous header versions.
Just my 2 cents worth.
Original comment by gcrut...@gmail.com
on 16 Jan 2012 at 12:11
[deleted comment]
At the bottom of the file HeaderItem.java is an array (MAGIC[]) of numbers.
These are the 1st 8 bytes of the dex header. All you have to do is change
the number 53 to 54 and recompile. Keep in mind that the resulting apktool
will ONLY work for v4.0.3 and not earlier versions.
To make it work for earlier versions you will have to modify the code at
the top of this file where is checks the header info. You will have to
check for both 53 and 54 in the header.
Gary
Original comment by gcrut...@gmail.com
on 21 Jan 2012 at 3:35
Could someone be so kind to do the recompile and put up a download link?
or do we have to wait for brut to do it?
thanks!
Original comment by KJ.Logem...@gmail.com
on 21 Jan 2012 at 7:13
OK...I "hacked" the apktool.jar file to handle the new header version since I
could not compile apktool due to mvn complaining about missing files. It
seems to work okay with .jar files but not .apk files.
If anyone wants to try this, here is the link: http://goo.gl/A6Uem
Original comment by gcrut...@gmail.com
on 22 Jan 2012 at 5:41
NOTE: The above "hacked" apktool ONLY works with v4.0.3.
Original comment by gcrut...@gmail.com
on 22 Jan 2012 at 5:44
New apktool 1.5.0 fixes this.
Original comment by connor.tumbleson
on 17 Nov 2012 at 2:48
Original issue reported on code.google.com by
gcrut...@gmail.com
on 16 Jan 2012 at 3:16