The tutorial below is quite handy and if you ever want to restore to Stock ROM (for whatever reason) you can do it really easily. I decided to write this down since I've seen quite a few people having problems restoring the Stock ROM from the RUU or PG76IMG.zip. Here we go!
- A Rooted Phone
- ClockWorkMod or any other recovery
- dsixda's kitchen (Tutorial to set it up is here
- The RUU/PG76IMG.zip of the Stock ROM you need.
About dsixda's kitchen, I suggest you go for the "Cygwin" method, as that's what I'm going to go with. VirtualBox is good too, but it takes too much RAM.
If you have the PG76IMG:
Extract the system.img and boot.img.
If you have the RUU:
Run the RUU till the "I Acknowledge, etc. etc" screen comes.
Start Task Manager.
Hit the processes tab.
Find ARUWizard.exe. Right click and go to location.
You will see a zip called rom.zip. Open it up and extract system.img and boot.img from it.
Copy the two .img files to your kitchen's img_files folder.
Now, open up Cygwin and navigate into the kitchen folder like this:
You will see a list of options there like this:
Type 1 to create a working folder from the two .img's.
You can try out the other options like Root, Zip Aligning,etc. in the kitchen for your Stock ROM if you want. But if you're restoring back to it for Warranty Purposes, then I suggest you don't.
Once the working folder is created, type 99 and let the kitchen create the flashable zip for you.
Put the zip onto your SD Card and flash away!