[Android Themes] Droid Premium:
How To Theme TouchWiz Based ROM to look like AOSP!!​

Ok guys I decided to share my theming method with you guys. This is mainly intended for all developers and or ROM developers!

If you have TouchWiz based ROM (Some devices below) you can theme it to have an AOSP feel to it.

Devices:

Galaxy SII

Galaxy SIII

Galaxy Note

Galaxy Note II (Tested by Me :D)

Some others as well...

Whats Needed:​

*APKTool DOWNLOAD HERE

*JAVA DOWNLAOD HERE

*7-ZIP DOWNLOAD HERE

*TouchWiz Base ROM

*SystemUI.apk (in system/app) **FROM TOUCHWIZ ROM**

*SystemUI.apk (in system/app) **FROM AOSP or CM10 ROM**

*Framework-res.apk and TWFramework-res.apk (in system/framework) **FROM TOUCHWIZ ROM**

*Zipalign tool

*Root Explorer App (Get from Google Play Store)

*Holo Launcher (Also get from Google Play Store)​

Lets Get Started:​

Follow all of the steps below carefully and you should have an AOSP Themed TouchWiz ROM in no time :D​

1. Download the Holo Launcher from the Google Play Store.

(When you run the launcher you will see that you will have an AOSP themed launcher and you will have AOSP system icons [messaging, phone, settings, ect..])

2. You need to install APKTool next. (If you already have this installed then skip this step)

*Download the APKtool files (link above)

*Put the files into your C drive. Make a folder in the root of your C drive called apktool.

*All of your files should go inside that folder (apktool)

*Go to CMD or Command Prompt and type in

cd C:\apktool

*That should redirect you to the apktool. If it worked then lets move on...

3. Get the framework-res.apk and TWFramework-res.apk (in system/framework) and place it in the apktool folder.

4. In the Command Prompt you will need to direct CMD to the APKtool folder. Then you must install the framework files by doing:

apktool if framework-res.apk

and

apktool if twframework-res.apk

Now your framework files are successfully installed. If you have an error in the CMD window then you must check your JAVA.

5. Now get your systemui.apk files from both AOSP (CM10) and TouchWiz ROM. Rename the AOSP systemui.apk to systemuiaosp.apk (so you dont get the touchwiz and aosp systemui's mixed up)

6. Make a backup of the TouchWiz systemui.apk in another folder called "Backup" ****YOU WILL NEED THIS LATER*****

7. Now you should have both systemuiaosp.apk and systemui.apk in the apktool folder. Now you must decompile both files by using these commands:

apktool d systemuiaosp.apk

and

aptkool d systemui.apk

You should have 2 more folders (systemuiaosp and systemui).

8. Here comes the actual theming of the systemui. Open both systemuiaosp and systemui folders side-by-side. And now you need to navigate to the drawable-xhdpi folder in both.

***FOLLOW THESE NEXT STEPS CAREFULLY OR YOU WILL HAVE AN ERROR***

9. Find the files you want to replace. They should all be PNG files. DO NOT JUST ADD PNG FILES FROM THE SYSTEMUIAOSP TO THE SYSTEMUI. YOU WILL GET ERRORS WHEN COMPILING THE FILE!! There are XML files (we will not edit in this tutorial) that use those PNG files with those extension names. So you can't just add files from one to another. For example:

If you have an icon you want to change but its only for that AOSP then it wont run on the TouchWiz. If you have a WiFi icon that has a name of AOSP_Wifi_1 and on the other systemui it says TOUCHWIZ_Wifi_1 you cant just delete the one that says TouchWIZ_WIFI_1 and replace it with the AOSP one. The XML files dont tell it to run the AOSP_WIFI_1. So you must ONLY REPLACE FILES WITH SAME EXTENSION NAME!!

10. You can go ahead and transfer files from the SystemuiAOSP to the systemui. Note what i said above!! If you have lets say 6 wifi icons for systemuiAOSP and 6 icons for systemui (touchwiz) you can rename the AOSP PNG files to match the TouchWiz ones so the XML files will know what to run.

I personally suggest only transferring Wifi Icons, Battery Icons, and Signal Icons. These are your most important ones to transfer! You can also transfer the Bluetooth and Airplane mode icons also.

11. After you have transfered the files over and you feel like you have done it correctly then you can go ahead and Compile the SystemUI folder by using this code:

apktool b systemui semidone.apk

12. If you did all the steps correctly above then apktool will build the apk file with no issues. If you have errors then you did not pay attention carefully. (You may want to try another CM10 ROM to get icons from).

13. Now here is where 7-Zip and your backup file comes into play. Open 7-Zip twice (2 windows). In the first window direct 7-zip to the semidone.apk file. And the second one to your backup file which should be SystemUI.apk (in the backup folder).

14. In the SystemUI.apk click on the RES folder and then find the Drawable-xhdpi folder. Delete the entire Drawable-xhdpi folder. Now in the other window (semidone.apk) go to RES and then transfer the entire Drawable-xhdpi folder into the SystemUI.apk window.

15. Now your SystemUI.apk in the Backup folder is your new modded one. But before you can use it you must zipalign it using any zipalign tools out there. I just use DSIxda's kitchen to do it since I make ROMs with it.

16. Now you can go ahead and transfer the SystemUI.apk onto your phone's SD card.

17. Download Root Explorer. Now go ahead and navigate to your SD card and click the SystemUI.apk file and then click copy or move. (whichever one you like).

18. Now navigate to your system/app folder and paste and overwrite the original one. (You will need to set root explorer to Read/Write). Now you can go ahead and reboot your device.

If you did everything correctly you should now have a themed launcher and a themed status bar with AOSP Icons!​

I don't ask for donations so if this tutorial helped you then please hit that Thanks button!​