[Galaxy S II Android Development] THE RED BLUR:
ROM Nuke Script

I have been seeing back and forth on the best way to prep a rom to be flashed full wipe and the best way to clean the preload folder that has been introduced in this LSJ leak based rom and other roms based on lsj.

This Rom Nuke script is good to use with Siyah ideally as Siyah doesn't have the clean script built into philz recovery and in turn also Jeboo kernel which makes it easy to clean preload.

So this script will do the job for you. :)

I have already posted links to the guide but people it seems are not reading it but instead just using the script :(

So here it is. Also you can use it with Philz and Jeboo should you want due to the other functions it performs even though philz and jeeboo clean should be enough.

INTRO

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 GS2ROMNuke

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

4. Reboot

ROM NUKE V2.0

GS2ROMNuke 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

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)

New to version 1.35

Will now clear Specific ROM folders off SD Card for Neat ROM and Alliance ROM:

a) /sdcard/SaleTweaks

b) /sdcard/Alliance

c) /sdcard/alliance-tweak

d) /sdcard/com.ficeto.darkyromota

Note:

(1.) Clearing /system /and preload 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.

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

GS2ROMNuke, is 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 Android Data files/folders by manually by copying the files from the backup made by GS2ROMNuke, stored in /sdcard/MyBackups/Android and /sdcard/MyBackups/data. This can be done through any file explorer type of application (eg. My Files, ES File Explorer, Root Explorer etc.) or on your PC.

TRB = I personally prefer backing up and restoring apps and data using titanium Backup. The free version is good but I bought the pro version for more features and convenience of multiple apps and data restore . This is a custom rom flash addicts best friend and has served me well for over a year.:good:

https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup

Guide to install kernels and Rom and steps to be taken with this script and tools to have a bug free rom = http://xdaforums.com/showthread.php?p=35923600

Guide on best way to make a full rom back up and why on LSJ by Hawkerpaul = http://xdaforums.com/showpost.php?p=36284389&postcount=19018

[/hide]

Reserved

SIGNATURE

PHONE : SGSII

Sent via: Tapatalk 2

Main ROM: NeatRom Lite 4.0

KERNEL : Siyah v6.0b4 tar test version

(DEFAULT PROFILE AND SETTINGS but pegasusq And sio applied via SetCPU)

MODEM : BVLP7

BATTERY : Stock 1650mAh

EXTERNAL Sdcard : Samsung Class 10 32gb

LAUNCHER : Apex

Guide to install Siyah on Ljs and tools to have a bug free rom = http://xdaforums.com/showthread.php?p=35923600