View Single Post
Old February 14th, 2012, 09:47 PM   #4 (permalink)
Join Date: Jan 2012
Location: Buenos Aires, Argentina
Posts: 174
Device(s): Galaxy S2 International. ROM: I9100_4.4.2_AOSP_NeatROM_v3.10
Carrier: Not Provided

Thanks: 89
Thanked 4 Times in 4 Posts

Originally Posted by Hawker View Post
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.

Related threads:
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?
Thanks again,
glore2002 is offline  
Reply With Quote