[ROM](Working Update.zip) -> Defy Update.zip Cookie Cutter Rom

eugene373

Retired Recognized Developer
Aug 11, 2009
5,829
7,420
0
eb-productions.proboards.com
Defy Froyo 3.4.2 Cookie Cutter Rom


Q. How Do I use the Update.zip?
A. Go to Market & Download Defy SD-Recovery & Install..
1. Next place the Update.zip on the /sdcard via PC
2. Turn on MoTo Phone Portal ( SD-Recovery is SD Based so you need to Turn Off USB Mass Storage )
3. ADB Debugging does not have to be Turned Off on my version

Once Booted into the Recovery apply the update.zip
wait a few minutes & it should be done...

Please Reads the notes I left in the Update.zip if you build a Custom Update.zip, this will save you trouble down the road.

What's Flashed?
A. Boot.img
B. dev_tree
C. Moto Blur 3.4.2 Rom ( Yes I know it's not the latest, built off what I had )
D. UNO & TMO-TV Removed
E. Rooted ( SU & Superuser )
F. Busybox Installed to xbin
G. Rest of Rom is stock

Once installed, remove eugene.apk from /system/app ( Old boot strap that need adb turned off before rebooting / defy sd-recovery does not have this issue)

Q. I Edited the update.zip & Now it fails verf. in recovery when trying to flash!
A. example of signapk on signing the edited update
java -Xmx1024m -jar signapk.jar -w testkey.x509.pem testkey.pk8 update1.zip update.zip

Download: Original Post
 
Last edited:

eugene373

Retired Recognized Developer
Aug 11, 2009
5,829
7,420
0
eb-productions.proboards.com
To Update other parts of the Phone: Add this to the update-scripts for what you are flashing.

If we had all these Parts from 2.1 we could go back.

package_extract_file("lbl", "/tmp/lbl");
write_raw_image("/tmp/lbl","lbl");
delete("/tmp/lbl");

package_extract_file("device_tree.bin", "/tmp/device_tree.bin");
write_raw_image("/tmp/device_tree.bin","devtree");
delete("/tmp/device_tree.bin");

package_extract_file("cdrom", "/tmp/cdrom");
write_raw_image("/tmp/cdrom","cdrom");
delete("/tmp/cdrom");

package_extract_file("logo.bin", "/tmp/logo.bin");
write_raw_image("/tmp/logo.bin","logo.bin");
delete("/tmp/logo.bin");

package_extract_file("umts_wrigleyref_build.bin", "/tmp/umts_wrigleyref_build.bin");
write_raw_image("/tmp/umts_wrigleyref_build.bin","bpsw");
delete("/tmp/umts_wrigleyref_build.bin");

package_extract_file("cdt.bin", "/tmp/cdt.bin");
write_raw_image("/tmp/cdt.bin","cdt.bin");
delete("/tmp/cdt.bin");
 
Last edited:

edition-

Senior Member
Dec 25, 2010
584
93
0
Lisbon
Hey eugene,

Glad to see you working on Defy too :)

I think this will be major help for developers and btw that 3.4.2 version did you used? since there are many of them.

Thanks.
 

racca

Senior Member
Jun 4, 2009
247
85
0
i don't understand. is the boot.img still the signed cg35.smg?
if so, can't we just use the cmw to do that?

can you post more detailed chages you made over cmw?
other than the signapk and usb debugging described.

many thanks.
 
Last edited:

xdaid

Inactive Recognized Developer
Jul 12, 2009
514
648
0
eugene373 - great work!

i don't understand. is the boot.img still the signed cg35.smg?
if so, can't we just use the cmw to do that?

can you post more detailed chages you made over cmw?
other than the signapk and usb debugging described.

many thanks.
Same here, i'm pretty interested in more details, thank you
 

eugene373

Retired Recognized Developer
Aug 11, 2009
5,829
7,420
0
eb-productions.proboards.com
you can not use cwm due encryption. If you dont know what an update.zip is stick to nandroid...

This is for rom builders.

Heading out, when I get home ill make it clearer.

Though, now that I think about it cwm might be fine due to the nature of how it works.


Ill test later and let everyone know

Sent from my MB525 using XDA App
 
Last edited:
  • Like
Reactions: Blackcorsa

Sqoerk

Senior Member
Jun 2, 2009
342
120
0
So we are able to install updates via the "normal" Motorola Recovery mode? So we are able to get a "unbrickable" Defy? :confused:

Edit: got it myself. The ZIP File won't be recognized by the motorola recovery... anyway thanks for your job :D
 
Last edited:

eugene373

Retired Recognized Developer
Aug 11, 2009
5,829
7,420
0
eb-productions.proboards.com
Now, what can SD-recovery do? Can it write other partitions, like cdt.bin?
Yes. I can add the string if you would like

To Update other parts of the Phone: Add this to the update-scripts for what you are flashing.

package_extract_file("lbl", "/tmp/lbl");
write_raw_image("/tmp/lbl","lbl");
delete("/tmp/lbl");

package_extract_file("device_tree.bin", "/tmp/device_tree.bin");
write_raw_image("/tmp/device_tree.bin","devtree");
delete("/tmp/device_tree.bin");

package_extract_file("cdrom", "/tmp/cdrom");
write_raw_image("/tmp/cdrom","cdrom");
delete("/tmp/cdrom");

package_extract_file("logo.bin", "/tmp/logo.bin");
write_raw_image("/tmp/logo.bin","logo.bin");
delete("/tmp/logo.bin");

package_extract_file("umts_wrigleyref_build.bin", "/tmp/umts_wrigleyref_build.bin");
write_raw_image("/tmp/umts_wrigleyref_build.bin","bpsw");
delete("/tmp/umts_wrigleyref_build.bin");

package_extract_file("cdt.bin", "/tmp/cdt.bin");
write_raw_image("/tmp/cdt.bin","cdt.bin");
delete("/tmp/cdt.bin");
 
Last edited:

racca

Senior Member
Jun 4, 2009
247
85
0
Yes. I can add the string if you would like
CwM can do exactly the same afaik, i've already made quite a few update.zip with it.

after reading all your notes, do you actually mean that we can't use format on those patitions?
if you do, well, i learned it the hard way, and delete_recursive also works for me.

thanks for putting up an excellent example if not for anything else, it's much needed.
 
Last edited:

eugene373

Retired Recognized Developer
Aug 11, 2009
5,829
7,420
0
eb-productions.proboards.com
CwM can do exactly the same afaik, i've already made quite a few update.zip with it.

after reading all your notes, do you actually mean that we can't use format on those patitions?
if you do, well, i learned it the hard way, and delete_recursive also works for me.

thanks for putting up an excellent example if not for anything else, it's much needed.
Correct, you can only format with the stock recovery ( Hence the reason why I used the Stock Recovery ) any Partition with cwm recovery will cause a non-booting system..

regarding cwm I've not tested it, so Likely it will work.. Steven is still working on the cwm recovery & there is no point in me adding another cwm bootstrap recovery... Mine is just pure stock & works perfect.

I'm still weeding through the /bin /etc file's to find exactly what needs left...

but main goal was to provide an example of what is needed to make an update.zip with out breaking the system.
 

psicodelico

Senior Member
Sep 12, 2009
393
160
0
Recife
I didn't understand yet :D. I can or not apply the update file using stock recovery?

EDIT: forget I understood now. :D :D

Sent from my MB525 using XDA App
 
Last edited: