[HTC EVO 3D] d0cx:
Full Wipe and Cache Wipe flashable zip files...

Here's what I did:

1. Booted into recovery (TWRP v2.0.0 RC0.1)

2. NANDroided current ROM (Backup /system /data and /boot)

3. Flashed d0c_full_wipe.zip (Attached)

4. Flashed SteelROM v2.73 (Download link on OP)

5. Flashed Blue Steel v1 (Link was a few pages back)

6. Flashed Chad's AnthraX RLS013 kernel (Not available on this forum)

7. Reboot system

8. Waited a couple of minutes for Android to create dalvik-cache and to finish booting up

9. Sense loads up, along with everything else. No errors, no glitches, no issues.

10. I successfully went through the setup process, added my Gmail account, added my company's Exchange account, etc.

11. Restored back my apps using TB.

12. Everything running fine, as expected.

For everyone's convenience, I attached two flashable zip files. The "d0c_full_wipe.zip" does a FULL wipe/format of /system /data /devlog /cache and it deletes /sdcard/.android_secure and some other Android data files off the /sdcard, and it adds the EXT4 partition optimizations that were suggested in the earlier development months of this forum. The "d0c_cache_wipe.zip" does a /cache wipe/format and deletes /data/dalvik-cache only.

I don't ever use TWRP's wipe options as these two scripts cover all my wiping needs and I never had any errors with any of them. These scripts were created by "kanging" other flashable zip scripts and adding/removing code to optimize as much as possible so, all credits belong to whoever feels like needing them. And I made a "cache-only" wipe script so I can know for sure what's being wiped and how's being wiped, in my own way. Gives me a warm peace of mind.

These scripts have only been tested on my own HTC EVO 3D, using TWRP v1.x and v2.x. Feel free to test/use them as you see fit. And last, and most importantly, I'm not responsible for whatever happens to your HTC EVO 3D. If you've come as far as rooting your HTC EVO 3D, the least you could do is review the code being flashed over your own cellphone.

d0c_cache_wipe.zip - updater-script

ui_print("");
ui_print("");
ui_print("=================================================");
ui_print("| d0c Modified Wipe Script |");
ui_print("| This operation will format the following |");
ui_print("| partitions: /cache /data/dalvik-cache |");
ui_print("=================================================");
ui_print("");
ui_print("");
ui_print("=================================================");
ui_print("| Extracting needed binaries |");
ui_print("=================================================");
package_extract_dir("setup", "/tmp");
set_perm_recursive(0, 0, 0755, 0755, "/tmp");
ui_print("");
ui_print("=================================================");
ui_print("| Formatting EXT4 /cache partition |");
ui_print("| and applying EXT4 tweaks |");
ui_print("=================================================");
assert(unmount("/cache") || ui_print("(/cache is unmounted already)"));
format("ext4", "EMMC", "/dev/block/mmcblk0p25");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "CACHE", "-b", "4096", "-m", "0", "-F", "/dev/block/mmcblk0p25");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p25");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p25");
ui_print("");
ui_print("=================================================");
ui_print("| Deleting /data/dalvik-cache |");
ui_print("=================================================");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");
delete_recursive("/data/dalvik-cache");
unmount("/data");
ui_print("");
ui_print("=================================================");
ui_print("| /cache and /data/dalvik-cache wipe complete |");
ui_print("=================================================");
delete_recursive("/tmp/sideload");
delete_recursive("/cache/recovery");
ui_print("");
ui_print("=================================================");
ui_print("| Script completed |");
ui_print("=================================================");

d0c_full_wipe.zip - updater-script

ui_print("");
ui_print("");
ui_print("=================================================");
ui_print("| d0c Modified Wipe Script |");
ui_print("| This operation will format the following |");
ui_print("| partitions: /cache /system /data /devlog |");
ui_print("=================================================");
ui_print("");
ui_print("");
ui_print("=================================================");
ui_print("| Extracting needed binaries |");
ui_print("=================================================");
package_extract_dir("setup", "/tmp");
set_perm_recursive(0, 0, 0755, 0755, "/tmp");
ui_print("");
ui_print("=================================================");
ui_print("| Formatting EXT4 /cache partition |");
ui_print("| and applying EXT4 tweaks |");
ui_print("=================================================");
assert(unmount("/cache") || ui_print("(/cache is unmounted already)"));
format("ext4", "EMMC", "/dev/block/mmcblk0p25");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "CACHE", "-b", "4096", "-m", "0", "-F", "/dev/block/mmcblk0p25");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p25");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p25");
ui_print("");
ui_print("=================================================");
ui_print("| Formatting EXT4 /system partition |");
ui_print("| and applying EXT4 tweaks |");
ui_print("=================================================");
assert(unmount("/system") || ui_print("(/system is unmounted already)"));
format("ext4", "EMMC", "/dev/block/mmcblk0p23");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "SYSTEM", "-b", "4096", "-m", "0", "-F", "/dev/block/mmcblk0p23");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p23");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p23");
ui_print("");
ui_print("=================================================");
ui_print("| Formatting EXT4 /data partition |");
ui_print("| and applying EXT4 tweaks |");
ui_print("=================================================");
assert(unmount("/data") || ui_print("(/data is unmounted already)"));
format("ext4", "EMMC", "/dev/block/mmcblk0p24");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "DATA", "-b", "4096", "-m", "0", "-F", "/dev/block/mmcblk0p24");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p24");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p24");
ui_print("");
ui_print("=================================================");
ui_print("| Formatting EXT4 /devlog partition |");
ui_print("| and applying EXT4 tweaks |");
ui_print("=================================================");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "DEVLOG", "-b", "4096", "-m", "0", "-F", "/dev/block/mmcblk0p28");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p28");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p28");
ui_print("");
# ui_print("==============================================");
# ui_print("| Formatting EXT4 /boot partition |");
# ui_print("==============================================");
### check if this line is correct.
# format("ext4", "EMMC", "/dev/block/mmcblk0p21");
### check
# ui_print("");
ui_print("=================================================");
ui_print("| Removing system files from /sdcard |");
ui_print("=================================================");
run_program("/sbin/busybox", "mount", "/sdcard");
delete_recursive("/sdcard/.android_secure");
delete_recursive("/sdcard/.bookmark_thumb1");
delete_recursive("/sdcard/.data/footprints");
delete_recursive("/sdcard/.data/mail");
delete_recursive("/sdcard/Android/data/com.android.providers.media");
delete_recursive("/sdcard/Android/data/com.google.android.apps.genie.geniewidget.news-content-cache");
delete_recursive("/sdcard/Android/data/com.google.android.apps.maps");
delete_recursive("/sdcard/.data/navigator/Data/Temporary");
delete_recursive("/sdcard/LazyList");
delete_recursive("/sdcard/LOST.DIR");
ui_print("");
ui_print("=================================================");
ui_print("| Creating /sdcard/wipe.log file |");
ui_print("=================================================");
run_program("/sbin/busybox", "cp", "-v", "/tmp/recovery.log", "/sdcard/wipe.log");
unmount("/sdcard");
ui_print("");
ui_print("=================================================");
ui_print("| All partitions have been successfully wiped |");
ui_print("=================================================");
delete_recursive("/tmp/sideload");
delete_recursive("/cache/recovery");
ui_print("");
ui_print("=================================================");
ui_print("| Script completed |");
ui_print("=================================================");

SteelH, if posting this here in your thread is inappropriate or it bothers you, let me know so I can delete the post.