[Galaxy S II Q&A, Help & Troubleshooting] THE RED BLUR:
GS2 ROM Wipe/Nuke scripts

My buddy Hawker over at andriod forums has updated his rom wipe script and has two different versions. Please read read what each does. I personally prefer the nuke ROM version for true full wipe.

This should be used when changing roms ICS to JB or one brand of rom to another. Also if you develop severe problems that cant be solved by kernel clean script here and even if you flash to earlier kernel the problem follows you like a stalker.

Most likely a corruption has occurred in the ROM due to many possible factors.

What can be done is a non wipe re-installation of ROM , but depending on rom for example rootbox you also would have to re flash gapps also.

But for those that don't want to take chances and want to have a fresh base and clean phone again the wipe method is the best way to go as you leave nothing left to chance.

Before undertaking this as a precaution please ,make a backup of your apps and data ,contacts,messages preferably by titanium.

This script will not wipe your titanium folder so no need to transfer to pc.

I will let Hawker explain his script better below and what it does. All thanks and credits to him for making this.

Link to his thread on android forums. = http://androidforums.com/galaxy-s2-...root/500131-my-gs2-rom-wipe-nuke-scripts.html

Description by Hawker

I have developed these cleaning scripts for the Samsung Galaxy SII GT-I9100.

These are designed to be run prior to flashing a new ROM. Do NOT, I repeat, DO NOT run either at any other time!!! These are not kernel cleaners.

These wipe your device ready for your new ROM to be flashed. Both perform a FULL WIPE/Factory reset as far as your Android system is concerned.

They do not format your internal SD card. The purists amongst you would say a true full wipe should format internal SD Card, but I've chosen to only wipe application-specific areas of the internal SD Card, which leaving untouched could possibly have a detrimental affect your new ROM.

When you are at a stage whereby you want to flash a new ROM and want to do a FULL WIPE before doing so (which I would ALWAYS recommend) the steps are as follows:

1. Reboot into CWM Recovery

2. Install zip from SD card>Run GS2ROMWipe or GS2ROMNuke

3. Install zip from SD card>Flash your new ROM

4. Reboot

GS2ROMWipe

Current Version: 1.01

GS2ROMWipe does the following:

1. Formats /system

2. Formats /cache

3. Formats /data

4. Clears /sdcard/LOST.DIR

5. Clears /sdcard/.android_secure

6. Clears /preload

7. Clears batterystats.bin

GS2ROMNuke

Current Version: 1.34

GS2ROMNuke does everything listed above in GS2RomWipe and also does the following:

8. Clears /sdcard/Android

9. Clears /sdcard/data

10. Clears /preload (like philz kernel bulit in cleaner which is a a new area in leaked stock ljs roms)

Note:

(1.) Clearing /system is not done as part of a Wipe data/Factory Reset, but is usually performed by the new ROM's install script. This is done as standard in the these scripts. Otherwise this would have to be done separately in CWM Recovery.

(2.) - (5.) Done in a Wipe data/Factory reset operation

GS2ROMWipe performs all these above steps in one simple CWM-flashable zip file.

(8.) and (9.) Would only be cleared when formatting internal SD Card, or by running GS2ROMNuke

Normally, I would recommend GS2ROMWipe over GS2ROMNuke, as a Nuke is more aggressive, as it wipes Android related data from your Internal SD card.

This would be data that certain apps may write to save their settings for example (eg. QuickPic, Apex).

Running a Nuke will give your new ROM a totally clean slate to start off from. Recommended for example when upgrading from GB to ICS, or when you just can't seem to get certain applications to behave properly.

Running a Wipe will leave these application-specific areas described above alone. Recommended when performing a minor firmware version upgrade.

This would for leave certain application areas alone, allowing you, for example, to restore Apex settings after flashing your new ROM.

After executing either of these scripts, you must flash your ROM directly afterwards. If you do not, your GS2 will not boot. You will get a boot loop as /system will be empty.

Restoring backups made by GS2ROMNuke

For a totally fresh new ROM, GS2ROMNuke clears /sdcard/Android and /sdcard/data. This is so your apps have a totally clean slate to work from.

However, you may want to use certain application's data saved from your previous ROM. (for example Apex Launcher's saved backup of your launcher configuration) You can restore any of your old data if you used titanium backup to back all important apps and data