FORUMS
Remove All Ads from XDA

[GUIDE] How to make a cwm recovery flashable zip

454 posts
Thanks Meter: 833
 
By pankaj88, Senior Member on 20th June 2012, 01:17 PM
Post Reply Email Thread
20th December 2013, 06:09 AM |#81  
Junior Member
Thanks Meter: 0
 
More
Well, the system block isn't the same for all devices right?
Such as mmcblk0p3 for Samsung S Advance (I9070)
 
 
23rd March 2014, 10:39 PM |#82  
Quote:
Originally Posted by pankaj88

REQUIREMENTS:
- any file that you want to replace or add to your phone;
- an existing cwm flashable zip file to use as a base - I've attached one below;
- 7-zip;
- Notepad++.


STEPS:

DIRECTORY STRUCTURE:

(1) Download and place the sample.zip anywhere on your desktop;
(2) Right-click on it and choose: "7-Zip / Open archive" [*DO NOT extract; just *Open archive*];

Now you should see two folders: one called "system" and one called "META-INF".


I - FILES AND FOLDERS:


Let's start with the "system" one, so double-click on it:

In there, will go all files that what you want to add or replace to the system. So let's say for example that you want to replace the bootanimation and bootsound. To do so, we have to create sub-directories in the /system/ folder by following this easy method:

- On your desktop, right-click on an empty spot and select "New / Folder" then edit the name to "etc" (no " ") using no CAPS or space at the end;
- repeat the process to make another folder called "media";
- drag those two new empty folders into the /system/ folder of the 7-zip opened archive [just click yes on the popup dialogs];
- now simply drop the two files in their respective place: the sanim.zip file should go in '/system/media' folder and the PowerOn.wav into '/system/etc' folder.

.. If you have more files to add, just follow the logic above; I'm sure you get the idea by now..

/system/app - all the system apps (SystemUI.apk etc)
/system/framework/ -framework-res.apk, twframework-res.apk, android.policy.jar
/system/etc - vold.fstab, PowerOn.wav(bootsound)
/system/media - sanim.zip (bootanimation) (only for custom ROMs)
/system/lib - libraries (*.so)

II - UDATER-SCRIPT

The other folder included in the opened archive is named "META-INF" and all the file in it should be left unchanged.

That's it !!
Congratulations you've done your first CWM patch !!!

NOTE: Always backup your existing system file that you are going to replace by the patch(zip).

With this updater-script in your sample.zip can i flash annything on anny device? Such as a complete ROM with mods?

Hope you'll answer...

Kindly...
16th May 2014, 08:32 AM |#83  
Junior Member
Thanks Meter: 0
 
More
Thumbs up
Quote:
Originally Posted by draiyan

what are symbolic links for? i have studied the updater script you posted.. and did some on my custom rom, both have many symbolic links, what it is for? is it necessary? or just for custom roms?

Just what ive been looking FOr!!!!!
14th June 2014, 06:25 PM |#84  
JoeFCaputo113's Avatar
Senior Member
Flag New York
Thanks Meter: 2,865
 
Donate to Me
More
Does this work with TWRP as well??
24th July 2014, 08:42 PM |#85  
Junior Member
Thanks Meter: 0
 
More
Smile Not Working !!
it is flashing apps....bt whn i opn flashd apps...a pop up mxg comes saying....(my app name ) has stopped working??

why is it soo??

---------- Post added at 01:12 AM ---------- Previous post was at 01:06 AM ----------

i want to make a rom by using nandroid backup (cwm)

but it needs...uodate-script? cn uh plx teach me hw to make it?
26th October 2014, 09:04 AM |#86  
Junior Member
Thanks Meter: 1
 
More
Hi, I've got locked out of my phone due to a prankster mistyping the pattern countless times. I dont have debug on, neither do I have WiFi/Mobile Data turned on. This is why I decided to use CWM recovery on my Samsung Galaxy Y.
I got your sample package and tried to edit it and then push it, but it says "(Status 0) Installation Aborted."
Basically what I did and what I want the package to do is:
i got from the backup output of cwm the following file system.db from /data/data/com.android.providers.settings/databases;
I edited the values of lock_pattern_autolock and lockscreen.lockedoutpermanently and set them to 0.
Then I put the system.db in the sample zip, edited the code and saved it.
It doesnt work though. Can you help me?
Attached Files
File Type: zip sample.zip - [Click for QR Code] (147.5 KB, 25 views)
The Following User Says Thank You to menace4 For This Useful Post: [ View ] Gift menace4 Ad-Free
26th October 2014, 04:58 PM |#87  
Nikhil's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 2,009
 
More
Quote:
Originally Posted by menace4

Hi, I've got locked out of my phone due to a prankster mistyping the pattern countless times. I dont have debug on, neither do I have WiFi/Mobile Data turned on. This is why I decided to use CWM recovery on my Samsung Galaxy Y.
I got your sample package and tried to edit it and then push it, but it says "(Status 0) Installation Aborted."
Basically what I did and what I want the package to do is:
i got from the backup output of cwm the following file system.db from /data/data/com.android.providers.settings/databases;
I edited the values of lock_pattern_autolock and lockscreen.lockedoutpermanently and set them to 0.
Then I put the system.db in the sample zip, edited the code and saved it.
It doesnt work though. Can you help me?

use update-binary of any custom rom for your device and replace it with existing one in meta-inf folder.
30th March 2015, 02:03 PM |#88  
Junior Member
Thanks Meter: 0
 
More
can you please tell me way to flash build.prop??
19th April 2015, 06:42 PM |#89  
Senior Member
Thanks Meter: 101
 
More
I just wanted to add on my GT-I9505 with CM12 some additional system sounds, so I packed them into the sample.zip, which I named to sounds_franc.zip to:

/system/media/audio/alarms
/system/media/audio/notifications
/system/media/audio/ringtones


but flashing this zip doesn't put them to the system.
What could be wrong?
Should be very simple, I thought.
Thanks.

EDIT: in another post there is described the need to sign the zip file:
http://forum.xda-developers.com/showthread.php?t=732957
Maybe this is the reason why this doesn't work here?

EDIT 2015-04-22: as I already wrote in the other thread, I found a working way with Flashable Zip Creator in this blog entry. All threads here on xda didn't work on my SGS4 with CM12, but the F.Z.C. did the trick
The Following 2 Users Say Thank You to francwalter For This Useful Post: [ View ] Gift francwalter Ad-Free
2nd March 2016, 10:00 AM |#90  
Need Help
Check out my package as it is not working for recovery flash
Attached Files
File Type: zip Recovery.zip - [Click for QR Code] (11.65 MB, 50 views)
29th July 2016, 02:45 PM |#91  
Junior Member
Flag Kuala lumpur
Thanks Meter: 0
 
More
Thanku so much

Sent from my ASUS_T00J using XDA-Developers mobile app
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes