[Tech News][feat1]

Sunday, March 30, 2014

[GUIDE] How To Convert system.img and boot.img to CWM Flashable ZIP

How To Convert system.img and boot.img to Flashable .ZIP




In this tutorial I will be showing you how to convert the system.img and boot.img files from a stock ROM to a flashable .zip file (CWM/TWRP). There are threads here and there that give bits of information on how to do it but they aren't really good so I thought that I would go ahead and make a good tutorial for you guys

Prerequisites:
*Custom Recovery Installed (CWM/TWRP)
*dsixda's android kitchen...
*Stock ROM (system.img and boot.img files)
                                                                     Links Are In End Of The Page

Requirements:*Your device must be supported by the android kitchen!

How-To:
Follow the steps below and you will have a flashable stock ROM for your device!


Step 1:
Lets start things off by extracting the stock ROM

Step 2:
Now open up your original_update folder in your android kitchen directory. And now copy the system.img and boot.img files from the stock ROM to the original_update folder.

Step 3:
Open cygwin and do ./menu to access the Android Kitchen terminal.

***CAUTION***
Before you proceed make sure that your device is supported by the android kitchen. If it is not supported you may get a bootloop after flashing the new ROM or a brick. So please make sure your device is supported!!

Step 4:
Click option 1 and delete or move any pre-existing WORKING folders (If there aren't any then move on to the next step)

Step 5:
Select the option number that says "system.img and boot.img". Both files will be included into 1 number choice (the kitchen does that by default)

Step 6:
Let the android kitchen do some file extracting and then a pop up window will come up. The instructions will be in the Cygwin window on how to do this step. **YOU WILL GET AN ERROR MESSAGE...JUST IGNORE IT***

Step 7:
After you did what Cygwin told you to then go ahead and click enter and let the kitchen finish extracting.

Step 8:
Now you should be back at the kitchen home screen. Go ahead and click option 2. This will give your ROM root access. I suggest adding the SuperSU but not all devices support it so do some research before choosing.

Step 9:
Now go ahead and click option 3. This will add busybox so Superuser can work correctly.

Step 10:
Now click option 0, and then option 11. This is recommended but not required. This deodexes the entire ROM. This will free up space on the ROM.

Step 11:
Assuming you are still in the advanced options click option 14. This is also recommended by me but not required.

Step 12:
Go back to the home screen in the kitchen by selecting option 0. Go ahead and click option 5. This is strongly recommended. This will free up a bunch of RAM so your phone will be less laggy. But yet again this is not required.

Step 13:
Now you are ready to build your new ROM! Go ahead and do 99 and then press enter.

Step 14:
Now select option 1 (Interactive is recommended for first build!)

Step 15:
Choose yes to zipalign if you forgot to do it earlier. If you did zipalign earlier then just go ahead and skip.

Step 16:
Now if a message pops up about changing to update-script or updater-script then just type "Y" and then click enter

Step 17:
Your ROM will now start to build. After building of update.zip is finished it will ask if you want to sign your ROM. This is very recommended as CWM ask for signatures in the zip files by default for all users. So just go ahead and sign it (It only takes around 3-5 minutes)

Step 18:
Now just name the ROM to your desire and you are done! You can now boot into your recovery mode and flash this ROM!


Setting Up Cygwin- Here

Java-Here

If you have any questions feel free to just comment them below and I will be more than glad to help you out even though this tutorial is very thorough.



If this tutorial worked for you then please slap the thanks button....it won't bite 
 

1 comment: