[Defy General] Kayant:
Ok i will say by now i have become ok at decompiling and recompiling apks....... It took some time to see what i was doing wrong :p

This guide is for people who want to get mods like 1% battery, on screen ics buttons etc....

I am not a dev so i wouldn't be able to answer all your questions if you have any.....

This is for ics only as GB handles it's resources differently

Btw this isn't necessarily the right way to do it but it the fastest I think and it works for me every time :p

If you still need help or it still don't work for you PM me and i will try help when am free :D .....

Credit to _calum_ and memnoc for their awesome guides on decompiling and recompiling ics apks that showed me what i was doing wrong and thanks to xavierjohn22 by making autoapktool makes modding so much faster and easier.

Thanks to [] AL [] for his easy to follow guide which i used for inspiration :p

Software needed

Download and install 7-zip if you haven't already from here

Download notepad++ from here

It's a great text editor

Download autoapktool from here it's the second post make sure to thank xavierjohn22 for his amazing work -

Unzip it to your local disk you can name the folder whatever you want.

For example - C:\AutoAPKTool2.0.0

Ok Now we can start modding :D

Guide to editing systemui.apk

1% Battery icons

First search and get your favourite battery icon set... There should be 204 pngs

Now pull your systemUI.apk from system/app and copy it to _INPUT_APK in the autoapktool folder.... You can do this manually with adb commands or use android commander from here - http://androidcommander.com/

Make sure to make a backup just incase this mod doesn't work for you :(

Now go to the apktoolfolder and run AutoAPKToolMain.bat

Select option 21 and then 3

Make sure it says you're using apktool 1.4.1

Now select option 6 and follow the instrutions

Once it's decompiled navigate back to the _INPUT_APK folder

Open the systemUI folder then res then drawable-hdpi

Now copy all the 204 pngs into this folder

Now go back and copy stat_sys_battery.xml, stat_sys_battery_charge.xml into the drawable folder.

Download files from here

Now go back to AutoAPKToolMain.bat rerun it if you close it

Select option 7 follow the instructions....

Once it's finished recompiling navigate to SystemUI folder dist and you will see your new systemUI.apk...... Important don't push this back to your phone yet.

Now right click on the systemUI.apk.... 7-Zip --> Open archive

Now navigate back to the _INPUT_APK right click on your original systemUI.apk... 7-Zip --> Open archive

Now drag the res folder from the systemUI.apk(the one from the dist folder) into your original systemUI.apk.... click yes to updated then close it.

Now extract the resources.arsc from the systemUI.apk(the one from the dist folder)

Now rename you original systemui.apk (the one in the _INPUT_APK folder) to systemUI.zip

Now right click on the resoruces.arsc 7-Zip --> Add to archive... select your systemUI.zip folder...... Make sure archive format is zip, compression level is store and update mode is add and replace files....

Finally rename the systemUI.zip back to systemUI.apk

Now push systemUI.apk to system/app on your phone and make sure permissions are set to -rw-r-r

If your using android commander select push then select your systemUI.apk from your computer and push it to system/app....

you may get a error don't worry click ok

then rightclick on your systemUI.apk(the one on your phone now) and click properties make sure owner is set to read and write and group and all to read... If it's right it will say -rw-r-r chmod 644

Now reboot and enjoy your work :)