[Epic 4G Q&A, Help & Troubleshooting] spdwiz18:
This will guide you through making a theming template.

Why: it was requested

What is it for: This is the base in which you start your custome theming. If you have read through Dreamsforgotten thread on theming, you will see that he refers to a theming template to start with.

Be advised, This is not a rom. It is just a template that some dev/themers use as a base for their custome themes or to return to a stock deodex theme.

Also, this assumes that you are on a stock rooted system

The Difference you ask:

Theming templates : do not have a modem or kernel, They do have a system folder with and App, font, and framework folder.

Rom: has everything needed to run the OS. Modem (sometimes), kernel, and a full system folder

This is how I do it. That is not to say it is right or wrong, but it works for me. There may be other/easier way developed by other devs.

EI22 Theme Template

Tools:

Rom kitchen form here ( follow the thread and set it up )

7zip from here

Notepad++ from here

Rooted device: if you are not rooted look in the dev section of your device for the instructions on that

Clockwork mod: if you don’t know what this is or don’t have it go to the dev section and research.

Instructions:

1: get a copy of the STOCK system folder. It really does not matter how you get it. JUST GET IT

HINT: if you are rooted already, use root explorer or equivlant and copy it to the sdcard…. :)

Depending on how you got it, you may need to copy it to your computer desktop ( do so now)

2: now you will need to make a zip file (by now you should have 7zip installed)

r-click on system folder that you just copied to your desktop

choose 7zip > add to archive.

under archive change name to (build#).zip ( replace (build#) with the build you are using i.e ec05, ei22 ect….)

At this point you will need the rom kitchen. So, if it is not set up, DO SO!!!!!!!

3: copy to the zip folder to kitchen > original_update. Then open the kitchen.

Choose option 1, answer the next few questions as you need to. For me, I just hit enter at the 4 questions. You should be back at the main screen now

option 0 (enter) > option 11 (enter) > option b (enter) > enter ( best so that if there are errors you can troubleshoot) ( this takes a while: 20 min) assuming all went well, you should get

0 *.odex in system/app

0 *.odex in system/framework

Hit the enter key

option 99 > option 2

At this point, there should be a new folder named “output_zip” with your rom in it. (enter) you should be back to the mail menu. We are done with the kitchen so you can close that.

BUT your not done yet. 

4: go to the above mentioned folder. In the folder there will be a zip file.

r-click on it and rename theme_template_(build#) ( replace (build#) with the build you are using i.e ec05, ei22 ect….)

r-click> 7zip> open archive - There you will see two folders and a boot image.

delete the boot.img file

go into the system folder and delete everything except app, framework, and font folders

back out one level and go into meta-inf >com > google >android

Now delete the updater-script (leave 7zip open)

Now we need to write the updater-script for CMW to read

5: open notepad++

BE ADVISED, this portion is for the EPIC 4G and the updater-script may change formats based on your device. So do some research first. I tend to look at other script for my devices to see how it should be formatted.

You can copy and past this in or type it yourself:

show_progress(0.1, 0);

delete_recursive("/system/framework");

delete_recursive("/system/app");

delete_recursive("/system/fonts");

mount("MTD", "system", "/system");

package_extract_dir("system", "/system");

delete_recursive("/data/dalvik-cache");

show_progress(0.1, 10);

unmount("/system");

Or use this: updater-script

file >save as

Name file: updater-script

File type: chose all types (*.*) you may need to scroll up or down to find it.

save to desktop

drag and drop the updater-script into the 7zip screen. ( you will be prompted with a ?. just hit yes.)

You should now have 3 files on the 7zip screen

Updater-script, update-binary, update-script.orig

close 7zip.

Connect phone via USB

Copy file to sdcard

Disconnect phone

Reboot to CMW

Choose: backup and restore >backup (when its finished you will have a nandroid to restore if you F.U.B.A.R. your phone.

Choose: install zip from sdcard and install your theming template.

Reboot.

Now use your favorite file explorer and go to system/framework and make sure it has been deodexed. If so, the flash was successful and your theme template works.

Congradulations you built your first theme. All be it a stock one. lol