Originally Posted by Hawker
I have developed this cleaning script for the Samsung Galaxy SII. This one is designed to be run prior to flashing a new ROM
. Do NOT, I repeat, DO NOT run this any other time!!!
It is not
a kernel cleaner. This nukes your device ready for your ROM flash. This does a FULL WIPE as far as your Android system is concerned. It does not however touch your internal storage or external SD card (the purists amongst you would say a true full wipe also formats your internal storage, but I've chosen to omit this in this script, so that possible backups, photos etc are retained).
After executing this script, 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. (NB. Clearing /system is not done as part of a Wipe data/Factory Reset in CWM Recovery)
Does the following:
1. Formats /system
2. Formats /data
3. Formats /cache
Let me know if you have any other ideas as to files/folders that could also be removed so I can look into it for possible inclusion in the next release.
My GS2 Kernel Cleaning Scripts
Thanks for your Cleaner!
Is this only for .zip (Recovery) ROMS or also works before flashing through Odin?
Should I also use it before Restoring a Nandroid backup in Recovery?
If not, is there anything you would recommend before restoring a nandroid backup?