Granite1
Zercron Encrusted Tweezer
Jeffsanace and team BadSeed have figured out how to decompile and recompile ICS .apk files!!!
This is a big step to getting themes to work.
OP can be found here by jeffsanace:
Bad Seed's "How to setup APKTOOL and De-Recompile ICS apk's"
With jeffsanace's blessings, here is the OP:
As usual a donation is the best compliment!!
This is a big step to getting themes to work.
OP can be found here by jeffsanace:
Bad Seed's "How to setup APKTOOL and De-Recompile ICS apk's"
With jeffsanace's blessings, here is the OP:
Bad Seed's "How to setup APKTOOL and De-Recompile ICS apk's"
Ok, a lot of people keep asking how I'm able to decompile and recompile on ICS apk's. So I'm going to tell you exactly how.
First make sure you have the latest java installed on your pc. Java 7
You will also need to make sure you have java in your CLASSPATH in Advanced System Settings/Environmental Variables.
If you installed java to it's default location your CLASSPATH variable should look like this=C:\Program Files\Java\jre7\lib
Now download the attached Apktool unzip the content Apk_tool folder(I keep the folder right on my desktop)
Inside the apktool folder will be everything you will need. Start by pulling the framework-res.apk and com.htc.resources.apk from the rom you're using and place them in the apktool folder.
Now install your frameworks by right clicking the apktool folder..open command promt here..type exactly...apktool if framework-res.apk then enter. That will install your framework, now type exactly...apktool if com.htc.resources.apk then enter. That will install your resources.
Now rename framework-res.apk to 1.apk Then rename com.htc.resources.apk to 2.apk These are your dependencies, they stay in the apktool folder.
So now you're setup...
Put the apk you want to decompile into the apktool folder...
Right click the apktool folder and open command prompt here...Because resources seems to be the hard one we will use it for this.
Type exactly...apktool d com.htc.resources.apk then enter....your resources will then decompile...if you see flag errors, ignore them.
Once done you will see a folder com.htc.resources, inside that you will see your decompiled resources.(edit away)
Now pay attention to this part...Once done editing and ready to compile you will need the layouts.xml that is in the apktool folder I left there for you.
Copy and paste it in res/values overwritting the one thats there.
Now navigate to res/values/public.xml...right click and edit with notepad++...In the toolbar hit Search, then in the pop up, find, in that box type zero_dummy_asset.
When you find it, highlight it and delete that line. Now save and exit.
Now you're ready to compile...right click on apktool folder and open command promt here. Now type exactly...apktool b com.htc.resources...then enter and your resources will compile.
Once done compiling go into your com.htc.resources folder..you'll see a couple folders..open the "dist" folder, inside will be your compiled com.htc.resources.apk
That's it, for all other apk's you will not need to copy the layouts.xml or delete the line in public.xml
As usual a donation is the best compliment!!