How to create update.zip using your build aka system.img25 Jan 2010
In my previous post I have already said that I will explain how to create an update.zip from your own build so here it is.
To do anything at all you need to extract your system.img, but you can not do that with normal zip because it’s an special format. You need unyaffs to extract it, you can get the c en h file from here or download the zip containing those two files here. I made an small change in my unyaffs.c file so it does not create symbolic links, this way I don’t need to fix that later.
Now let’s compile it:
To do this follow these command’s.
Prepare your files for zip
You need to create some folders:
In the META-INF goes a so called update-script, this scripts says what to do when the update.zip is run. Download the update-scriptNoBoot.txt HERE and put it in META-INF\com\google\android. Do not remember to rename it to update-script!!! It’s not a txt file.
Create the update.zip
Zip the system folder and the META-INF folder to update.zip
Sign your update.zip
All that’s left to do is rename your signed-update.zip to update.zip, upload it to your sdcard, reboot your phone to nandroid, do a wipe and then select install update.zip.
If you have done everything right you can reboot your phone and you will have a custom rom running. If not there is something wrong with your update.zip or your files in there. Most of the time if the update.zip is wrong your Phone will be stuck at the boot text. If you have issues with the update-script you will get those while installing.
DO NOT FORGET to make an backup with nandroid!!!