Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How would I go about to make a flashable zip for CWM to wipe my data, cache and dalvik-cache?
I am using Apps2zip to make a flashable app package for when I flash a ROM, but I'd love to be able to flash wipe all needed partitions.
ui_print("Performing Wipe...");
ui_print("Mounting mount points...");
run_program("/sbin/mount", "/dev/block/platform/s3c-sdhci.0/by-name/system", "/system");
run_program("/sbin/mount", "/dev/block/platform/s3c-sdhci.0/by-name/userdata", "/data");
run_program("/sbin/mount", "/dev/block/mtdblock4", "/cache");
run_program("/sbin/mount", "/dev/block/mtdblock2", "/boot");
show_progress(0.1, 0);
ui_print("Wiping BOOT, CACHE, DATA, SYSTEM");
delete_recursive("/boot");
delete_recursive("/cache");
delete_recursive("/data");
delete_recursive("/system");
show_progress(0.1, 10);
ui_print("Unmounting mount points...");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
run_program("/sbin/umount", "/cache");
ui_print("Wipe Complete.");
Thanks, I'll try this next time I flash.
If you don't mind telling me what you did? I appreciate that you did it, but I'm trying to learn more to help the community.
What is the update-binary file? Where did you get it?
After making the zip does it need to be signed? You make a zip with no compression correct?
(Normally I try and learn from stuff others ask and post and I find around the net, but this is something I've been unable to find any info.)
They won't work for elite. The ov was yaffs file system and elite is ext4.
Even if they were the same file system the partitions more than likely wouldn't be the same.
Maybe I'm wrong then.. I thought the difference in file system and partitions would prevent it from working . They made be made in a way that might work. I'll have to look at them
The thing that's going to matter is whether its written in edify or amend scripting, and which one your recovery uses
I was thinking it wouldn't work because the other phone probably uses mtd and so the script might just simply mount /data and /cache as opposed to specifying the partitions by mmcblk0p*. But yeah, if that is the case, it should be easy to update the script.
Isn't amend for CWM versions prior to v3?

Amend hasn't been used in a year, Edify has been standard since GB took over.The thing that's going to matter is whether its written in edify or amend scripting, and which one your recovery uses
Amend hasn't been used in a year, Edify has been standard since GB took over.
What it depends on is what the recovery supports (Amend or Edify), and what the install Binary is using, such as yaffs.
Another consideration is if the recovery know what partition is where. In our case the recovery doesn't understand that /system is located at block 12 so the installer has to account for that by telling it.
The link I posted has the flashable zips done. They should work fine as they are based on the code used for formatting the roms.
Yes, many still do, but they are slowly falling by the wayside.There are still plenty of alternative recoveries out there that support both scripts
Thanks, I'll try this next time I flash.
If you don't mind telling me what you did? I appreciate that you did it, but I'm trying to learn more to help the community.
What is the update-binary file? Where did you get it?
After making the zip does it need to be signed? You make a zip with no compression correct?
(Normally I try and learn from stuff others ask and post and I find around the net, but this is something I've been unable to find any info.)
CWM is the only working recovery for the Elite right now.It seems like you use CWM, but the TWRP website has a binary to use that seems to work on all.
CWM is the only working recovery for the Elite right now.
The zips i got from you were used on a nexus4 and worked fine.