What we have here is 2 different apktools.
The Original Version, and the ICS Version. The ICS version can be used for every single apk in ICS ROMs EXCEPT SystemUI.apk
To successfully decompile and recompile the SystemUI, you need to use the Original version to decompile, once it's decompiled, copy the SystemUI folder, and the framework-res.apk over to the ICS version. Then build the apk.
Basic apktool use and commands
Download both apktool versions and EXTRACT them to the desktop
First thing you're going to want to do is grab the framework-res.apk located in /system/framework and grab the SystemUI.apk located in /system/app
Place both of these files inside the Original apktool
Press and hold "shift key" on the keyboard, and right click the apktool folder, then select "open command window here."
In the command window that pops up, type the following command:
This will install the framework-res as the dependancy file.
In that same window, now type the following command:
*the file names ARE case sensitive. Make sure you type the file name EXACTLY how it is.
Wait for it to decompile the SystemUI. Once it is finished, you will now have inside the apktool folder, another folder named SystemUI. You can now begin making all your edits.
After all your edits are done. Copy the following files, over to the extracted ICSapktool folder:
SystemUI folder
framework-res.apk
Once those files are copied over, open another command window from the ICS Apktool folder.
In that command window, type the following command:
Again this will install the framework-res.apk as the dependancy file.
After that command, type this command:
*DO NOT add the ".apk" at the end.
Now go into the ICS Apktool folder, and you will have a folder named "dist," in this folder is your newly compiled APK.
Download Original Apktool:
Download ICS Apktool:
Post any questions you have and myself or someone else will try to answer them. Please keep it on topic, any comment not on topic or a question, will be deleted.
TIPS:
Other system apps may require you to Decompile with the Original Apktool, then Recompile with the ICS Apktool. Some may require you to use the Original Apktool for both decompiling and recompiling. Just gotta play around with it.
Edited by spc_hicks09, 03 July 2012 - 10:13 AM.