Users and developers alike are still getting used to Ice Cream Sandwich. And while the adaptation period has taken a little longer than with prior versions of Android, progress is being made in getting used to the new OS and its new tools. Developers and themers alike often have to compile and decompile apk files in order to apply their themes and modifications. However, many have had issues decompiling Samsung ICS system apk files.
Luckily, those working on the Samsung Galaxy S II I9100 now have a modified version of APKTool. XDA Forum Member xtremesv found and tested a modified version that is capable of editing the Galaxy S II system.apk file and similar files, which have been the bane of many themers and modders. The functionality and usability of APKTool hasn’t been changed much, but has been expanded to allow users to work with these difficult files a little bit more easily. Says xtremesv:
Some people are still having problems de/compiling system apks on Samsung ICS builds, most of the errors arising are related to “bad magic values”. I googled a little and managed to find a modded Apktool. I’ve tested it and it has worked fine so far with many apks (e.g. framework-res, TouchWiz30Launcher, etc).
That’s not all though. Some apk files require a little special attention. So if the modified APKTool doesn’t decompile an app, you may have to decompile it with the original APKTool provided by xtremesv, and then recompile using the modified APK Tool. A little complicated? Yes. Does it work? You betcha. Additionally, since the modified APKTool wasn’t designed specifically for the Galaxy S II, any users having difficulties with ICS apks may want to give it a shot as well.
If you’re having problems with ICS apk files and are looking for solutions, check out the original thread for more details._________