[SCRIPT]Ultimate Kernel Cleaning Script - 4.0 [MIUI/CM7 and SAMSUNG] [13.11.11]

Search This thread

lippol94

Retired Recognized Developer
Nov 15, 2010
2,286
2,651
29
Cremona
Originally Posted by lippol94
NOW FOR BOTH ROMS BASES :)

BE CAREFUL! ↓↓↓↓


[*]If your running a Samsung based rom (Like AOSP Essence, Darky's, Juwe's Smart and so on) use the Samsung one
[*]If you're running MIUI or CyanogenMod pick the MIUI / CM7 one



Since many users have complained about phone instability after flashing another kernel, I decided to make a Recovery Script to clean everything may cause instability.
As we know also zach made something like this, but his script deletes only init.d config files while many problems are generated by cache and dalvik-cache waste files.

So here I am with the Ultimate Kernel Cleaning Script.

With this new 2.0 I've included some features taken from the awsome modded CWM made by Vorbeth, so thank him :)

The Ultimate Cleaning Script has become famous in a few days thanks to its simple usage and semplicity!


HOW TO:

- Place the zip file in your internal SDCARD
- Flash it as a normal package from ClockworkMOD recovery
- Flash any kernel
- Reboot

Everytime you need to change/re-flash a kernel, just apply this before

DOWNLOAD:

CM7 / MIUI only!
http://www.multiupload.com/XFH1GCK4MB

Samsung Based ROMS only
http://www.multiupload.com/5IHS1FNMLG

Enjoy :) Thank you so much :)

CODE
To be sure that the script won't touch anything you probability don't want to, here is the update-script:

CM7 / MIUI Version

ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" *********************************************** ");
ui_print(" * WELCOME TO THE NEW AMAZING 2.0 VERSION * ");
ui_print(" * THANKS FOR CHOOSING MY SCRIPT :) * ");
ui_print(" *********************************************** ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" *********************************************** ");
ui_print(" * STARTING KERNEL CLEANING PROCEDURE * ");
ui_print(" * HANG ON FOR A SECOND :) * ");
ui_print(" *********************************************** ");
ui_print(" ");
mount("yaffs2", "MTD", "userdata", "/data");
show_progress(0.100000, 0);
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("Formatting Cache Partition...");
format("yaffs2", "MTD", "cache");
show_progress(0.100000, 20);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print("Wiping dalvik-cache...");
delete_recursive("/data/dalvik-cache");
show_progress(0.100000, 40);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print("Deleting old kernel settings files");
delete("/system/etc/init.d/S_volt_scheduler");
delete("/system/etc/init.d/S70zipalign");
delete("/system/etc/init.d/S90scheduler");
delete("/system/etc/init.d/S99finish");
delete("/system/etc/init.d/89system_tweak");
delete("/system/etc/init.d/98system_tweak");
delete("/system/etc/init.d/S89system_tweak");
delete("/system/etc/init.d/S98system_tweak");
delete("/system/etc/init.d/S90screenstate_scaling");
delete("/system/etc/init.d/90screenstate_scaling");
delete("/system/etc/init.d/98screenstate_scaling");
delete("/system/etc/init.d/S98screenstate_scaling");
show_progress(0.100000, 60);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print("Cleaning up old modules");
package_extract_dir("script", "/tmp/script");
set_perm(0, 0, 755, "/tmp/script/cleaningmodules");
run_program("/tmp/script/cleaningmodules");
show_progress(0.100000, 70);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print("Formatting Cache for security purpose...");
format("yaffs2", "MTD", "cache");
show_progress(0.100000, 80);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print("Wiping dalvik-cache for security purpose...");
delete_recursive("/data/dalvik-cache");
show_progress(0.100000, 90);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" *********************************************** ");
ui_print(" * CLEANING PROCEDURE DONE * ");
ui_print(" * YOU'RE READY TO FLASH A NEW KERNEL! * ");
ui_print(" * PAINLESS THIS TIME ^_^ * ");
ui_print(" * * ");
ui_print(" * ENJOY YOUR CM7 / MIUI ROM * ");
ui_print(" * by LIPPOL94 * ");
ui_print(" *********************************************** ");
ui_print(" ");

Samsung based ROMs Version:
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" *********************************************** ");
ui_print(" * WELCOME TO THE NEW AMAZING 2.0 VERSION * ");
ui_print(" * FOR SAMSUNG BASED ROMS * ");
ui_print(" * THANKS FOR CHOOSING MY SCRIPT :) * ");
ui_print(" *********************************************** ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" *********************************************** ");
ui_print(" * STARTING KERNEL CLEANING PROCEDURE * ");
ui_print(" * HANG ON FOR A SECOND :) * ");
ui_print(" *********************************************** ");
ui_print(" ");
run_program("/sbin/mount", "/dev/block/stl11", "/cache");
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/data");
show_progress(0.100000, 0);
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("Formatting Cache Partition...");
delete_recursive("/cache");
show_progress(0.100000, 20);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print("Wiping dalvik-cache...");
delete_recursive("/data/dalvik-cache");
show_progress(0.100000, 40);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print("Deleting old kernel settings files");
delete("/system/etc/init.d/S_volt_scheduler");
delete("/system/etc/init.d/S70zipalign");
delete("/system/etc/init.d/S90scheduler");
delete("/system/etc/init.d/S99finish");
delete("/system/etc/init.d/89system_tweak");
delete("/system/etc/init.d/98system_tweak");
delete("/system/etc/init.d/S89system_tweak");
delete("/system/etc/init.d/S98system_tweak");
delete("/system/etc/init.d/S90screenstate_scaling");
delete("/system/etc/init.d/90screenstate_scaling");
delete("/system/etc/init.d/98screenstate_scaling");
delete("/system/etc/init.d/S98screenstate_scaling");
show_progress(0.100000, 60);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print("Cleaning up old modules");
package_extract_dir("script", "/tmp/script");
set_perm(0, 0, 755, "/tmp/script/cleaningmodules");
run_program("/tmp/script/cleaningmodules");
show_progress(0.100000, 70);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print("Formatting Cache for security purpose...");
delete_recursive("/cache");
show_progress(0.100000, 80);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print("Wiping dalvik-cache for security purpose...");
delete_recursive("/data/dalvik-cache");
show_progress(0.100000, 90);
ui_print(" ");
ui_print("DONE! ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" *********************************************** ");
ui_print(" * CLEANING PROCEDURE DONE * ");
ui_print(" * YOU'RE READY TO FLASH A NEW KERNEL! * ");
ui_print(" * PAINLESS THIS TIME ^_^ * ");
ui_print(" * * ");
ui_print(" * ENJOY YOUR SAMSUNG BASED ROM * ");
ui_print(" * by LIPPOL94 * ");
ui_print(" *********************************************** ");
ui_print(" ");

Hi lippol94
Just wonder, can this script work on SGS II?

Why the hell have you quoted the entire OP? Lol :-D

Going back to your question.
I don't really know. I don't have a SGS 2 and I don't know which filesystem it runs.

But I think the Samsung version should work like a charm.
Don't really know for the CM7 one

Sent from my Samsung Galaxy S running Galnet MIUI
 

royalgok

Senior Member
Dec 30, 2010
68
14
Germany
Thanks a lot for the script mate. Used it countless times and no hiccups at all.

Just one query. How do you compile this zip to be flashed thru CWM? It's just that I've made some modifications to your script and I'd like to recompile (rezip?) it to make sure it runs right. Sometimes I've noticed that even if you do some modifications to update-script, it's the old text that comes up when I flash.

Thanks!
 

lippol94

Retired Recognized Developer
Nov 15, 2010
2,286
2,651
29
Cremona
Thanks a lot for the script mate. Used it countless times and no hiccups at all.

Just one query. How do you compile this zip to be flashed thru CWM? It's just that I've made some modifications to your script and I'd like to recompile (rezip?) it to make sure it runs right. Sometimes I've noticed that even if you do some modifications to update-script, it's the old text that comes up when I flash.

Thanks!


Open ultimate cleaning script archive with any software (like 7zip)

Edit the updater-script.
Save your changes

You should be prompted to update the archive.
Check if your changes are still there.

Flash your modded U.C.Script :)

Sent from my Samsung Galaxy S running Galnet MIUI
 
  • Like
Reactions: royalgok

royalgok

Senior Member
Dec 30, 2010
68
14
Germany
Open ultimate cleaning script archive with any software (like 7zip)

Edit the updater-script.
Save your changes

You should be prompted to update the archive.
Check if your changes are still there.

Flash your modded U.C.Script :)

Sent from my Samsung Galaxy S running Galnet MIUI
Thanks man. I'd failed to save the archive earlier and now it's OK.
 

DarkSorcerer

Senior Member
Jun 27, 2011
1,044
189
Porto
Sorry I missed that question. Yeah the correct procedure is flashing the script through CWM and THEN flash a new kernel through sgs kernel either recovery

Sent from my Samsung Galaxy S running Galnet MIUI

Either one or another. Correct?

And there won't be any boot problems? (Sorry the noob questions ;) )

EDIT: Done. Thank you!
 
Last edited:

angiogram

Senior Member
Sep 20, 2010
136
20
Singapore
Why the hell have you quoted the entire OP? Lol :-D

Going back to your question.
I don't really know. I don't have a SGS 2 and I don't know which filesystem it runs.

But I think the Samsung version should work like a charm.
Don't really know for the CM7 one

Sent from my Samsung Galaxy S running Galnet MIUI

Sorry for that. By the way thanks for your reply.:D
 

drawde40599

Senior Member
Aug 11, 2010
5,322
1,967
work?

So I have a captivate with cm7 on it and I use ur .zip before flashing new roms alongside with manual clean of cache anyways I accidentally ran the script on my inspire 4g (don't ask :) ) also running cm7 and it ran and seemed like it worked??? I'm no wear near a developer so my question is dose script work on other phones??? Or did the script run and do nothing I'm really not sure cause I flashed new cm7 nightly so everything running fine
 

Rahulrulez

Senior Member
Oct 18, 2010
1,798
1,465
32
India
Code:
package_extract_dir("script", "/tmp/script");
set_perm(0, 0, 755, "/tmp/script/cleaningmodules");
run_program("/tmp/script/cleaningmodules");

Lippo, There's no folder called scripts in CWM Package. Is anything wrong?
 

lippol94

Retired Recognized Developer
Nov 15, 2010
2,286
2,651
29
Cremona
Code:
package_extract_dir("script", "/tmp/script");
set_perm(0, 0, 755, "/tmp/script/cleaningmodules");
run_program("/tmp/script/cleaningmodules");

Lippo, There's no folder called scripts in CWM Package. Is anything wrong?

Of course it is! :)
You should have used a previous version cause it's part of the project since v2. 0

Cheers

Sent from my Samsung Galaxy S running Galnet MIUI
 

bitmappp

Senior Member
Oct 21, 2010
397
12
manila
since i already changed my kernel, can i apply this script, then flash again the same kernel, just to have it really clean:)
 

Bo$s

Senior Member
Cf-Root kernel (and kernels based on it) creates /system/cfroot directory which should be removed.
Also files in /data/property/ starting with persist.tweak.*
Code:
/data/property/persist.tweak.gov_conservative
/data/property/persist.tweak.ioscheduler
/data/property/persist.tweak.minfree
/data/property/persist.tweak.noatime
/data/property/persist.tweak.sched_deadline
/data/property/persist.tweak.scheduler
/data/property/persist.tweak.sdcard
/data/property/persist.tweak.stagefright
/data/property/persist.tweak.touchscreen
/data/property/persist.tweak.vm.dirty
/data/property/persist.tweak.vm.swappiness
Also it installs two apps, script should remove:
Code:
/system/app/CWMManager.apk
/system/app/TweakManager.apk
/dbdata/databases/eu.chainfire.cfroot.cwmmanager
/dbdata/databases/eu.chainfire.cfroot.tweakmanager
/data/data/eu.chainfire.cfroot.cwmmanager
/data/data/eu.chainfire.cfroot.tweakmanager
 

lippol94

Retired Recognized Developer
Nov 15, 2010
2,286
2,651
29
Cremona
Cf-Root kernel (and kernels based on it) creates /system/cfroot directory which should be removed.
Also files in /data/property/ starting with persist.tweak.*
Code:
/data/property/persist.tweak.gov_conservative
/data/property/persist.tweak.ioscheduler
/data/property/persist.tweak.minfree
/data/property/persist.tweak.noatime
/data/property/persist.tweak.sched_deadline
/data/property/persist.tweak.scheduler
/data/property/persist.tweak.sdcard
/data/property/persist.tweak.stagefright
/data/property/persist.tweak.touchscreen
/data/property/persist.tweak.vm.dirty
/data/property/persist.tweak.vm.swappiness
Also it installs two apps, script should remove:
Code:
/system/app/CWMManager.apk
/system/app/TweakManager.apk
/dbdata/databases/eu.chainfire.cfroot.cwmmanager
/dbdata/databases/eu.chainfire.cfroot.tweakmanager
/data/data/eu.chainfire.cfroot.cwmmanager
/data/data/eu.chainfire.cfroot.tweakmanager

Thanks a lot man :)
Will publish a 3.0 release asap!

Cheers!
 

Rahulrulez

Senior Member
Oct 18, 2010
1,798
1,465
32
India
Of course it is! :)
You should have used a previous version cause it's part of the project since v2. 0

Cheers

Sent from my Samsung Galaxy S running Galnet MIUI

Hmm, what should I do now if I want to get the previous project files? I've downloaded v2.0 and I can't find cleaningmodule script in zip.

flashed the script! i lost my network service?
then, flashed JVQ modem, and its the same:-(

Try wiping the ROM, this script is totally bug and risk free. THIS SCRIPT WILL NEVER DAMAGE YOUR PHONE.
 

lippol94

Retired Recognized Developer
Nov 15, 2010
2,286
2,651
29
Cremona
Hmm, what should I do now if I want to get the previous project files? I've downloaded v2.0 and I can't find cleaningmodule script in zip.

Oh dammit! :eek:

I thought you were talking about MIUI/CM7 script.

Yeah I know, Samsung one doesn't have that module cleaning script since it's required by CM7/MIUI kernels only. That's because Samsung kernels don't flash modules too, whereas CM7 kernels do!

I'll fix that typo in the imminent 3.0
 

Arielo1

Senior Member
Feb 6, 2011
360
13
i am just curious to know,,,,
if i move from stock rom/kernel to MIUI/CM7 rom/kernel
i dont mean from miui to miui or from samsung to samsung i mean from samsung to miui
since they are only scripts for moving between stock to stock or cm to cm etc.
whats the right script i should run ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 192
    IF YOU LIKE ULTIMATE CLEANING SCRIPT, PLEASE CONSIDER TO BUY ME A DRINK! IT WILL MAKE ME WORKING FASTER! THANKS A LOT!


    BE CAREFUL! READ BELOW!

    • If your running a Samsung based rom (Like AOSP Essence, Darky's, Juwe's Smart and so on) use the Samsung one
    • If you're running MIUI or CyanogenMod pick the MIUI / CM7 one


    Since many users have complained about phone instability after flashing another kernel, I decided to make a Recovery Script to clean everything may cause instability.
    As we know also zach made something like this, but his script deletes only init.d config files while many problems are generated by cache and dalvik-cache waste files.

    So here I am with the Ultimate Kernel Cleaning Script.

    MIUI/CM7 script has been updated to avoid flashing problems from Glitch to fugumod kernel. PLEASE USE IT BEFORE COMPLAINING WITH DEVELOPERS!

    The Ultimate Cleaning Script has become famous in a few days thanks to its simple usage and semplicity!


    HOW TO:

    - Place the zip file in your internal SDCARD
    - Flash it as a normal package from ClockworkMOD recovery
    - Flash any kernel
    - Reboot

    Everytime you need to change/re-flash a kernel, just apply this before

    DOWNLOAD:

    CM7 / MIUI only!
    http://www.multiupload.com/SIC5IZ4CPM
    -- mirror --

    Samsung Based ROMS only
    http://www.multiupload.com/5IHS1FNMLG

    Enjoy :) Thank you so much :)

    CODE
    To be sure that the script won't touch anything you probability don't want to, here is the update-script:

    CM7 / MIUI Version

    Code:
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" *********************************************** ");
    ui_print(" *    WELCOME TO THE NEW AMAZING 4.0 VERSION   * ");
    ui_print(" *       THANKS FOR CHOOSING MY SCRIPT :)      * ");
    ui_print(" *********************************************** ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" *********************************************** ");
    ui_print(" *     STARTING KERNEL CLEANING PROCEDURE      * ");
    ui_print(" *           HANG ON FOR A SECOND :)           * ");
    ui_print(" *********************************************** ");
    ui_print(" ");
    run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/data");
    run_program("/sbin/mount", "/cache");
    show_progress(0.100000, 0);
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print("Formatting Cache Partition...");
    delete_recursive("/cache");
    show_progress(0.100000, 20);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print("Wiping dalvik-cache...");
    delete_recursive("/data/dalvik-cache");
    show_progress(0.100000, 40);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print("Deleting old kernel settings files");
    delete("/system/etc/init.d/91logger");
    delete("/system/etc/init.d/logcat_module");
    delete("/system/etc/init.d/S_volt_scheduler");
    delete("/system/etc/init.d/89system_tweak");
    delete("/system/etc/init.d/S89system_tweak");
    delete("/system/etc/init.d/S98system_tweak");
    delete("/system/etc/init.d/S90screenstate_scaling");
    delete("/system/etc/init.d/90screenstate_scaling");
    delete("/system/etc/init.d/98screenstate_scaling");
    delete("/system/etc/init.d/S98screenstate_scaling");
    delete("/system/etc/init.d/04modules");
    delete("/system/etc/init.d/70zipalign");
    delete("/system/etc/init.d/S70zipalign");
    delete("/system/etc/init.d/S97ramscript");
    delete("/system/etc/init.d/S98SD");
    delete("/system/etc/init.d/07defaulttheme");
    delete("/system/etc/init.d/00banner");
    delete("/system/etc/init.d/02firstboot");
    delete("/system/etc/init.d/S90scheduler");
    delete("/system/etc/init.d/S99finish");
    delete("/system/lib/hw/lights.default.ko");
    delete("/system/lib/hw/sensors.default.ko");
    delete("/system/bin/logcat-on");
    delete("/system/bin/logcat-off");
    show_progress(0.100000, 60);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print("Cleaning up old modules");
    package_extract_dir("script", "/tmp/script");
    set_perm(0, 0, 755, "/tmp/script/cleaningmodules");
    run_program("/tmp/script/cleaningmodules");
    show_progress(0.100000, 70);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print("Formatting Cache for security purpose...");
    delete_recursive("/cache");
    show_progress(0.100000, 80);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print("Wiping dalvik-cache for security purpose...");
    delete_recursive("/data/dalvik-cache");
    show_progress(0.100000, 90);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" *********************************************** ");
    ui_print(" *            CLEANING PROCEDURE DONE          * ");
    ui_print(" *      YOU'RE READY TO FLASH A NEW KERNEL!    * ");
    ui_print(" *             PAINLESS THIS TIME ^_^          * ");
    ui_print(" *                                             * ");
    ui_print(" *           ENJOY YOUR CM7 / MIUI ROM         * ");
    ui_print(" *                  by LIPPOL94                * ");
    ui_print(" *********************************************** ");
    ui_print(" ");

    Samsung based ROMs Version:
    Code:
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" *********************************************** ");
    ui_print(" *    WELCOME TO THE NEW AMAZING 2.0 VERSION   * ");
    ui_print(" *            FOR SAMSUNG BASED ROMS           * ");
    ui_print(" *       THANKS FOR CHOOSING MY SCRIPT :)      * ");
    ui_print(" *********************************************** ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" *********************************************** ");
    ui_print(" *     STARTING KERNEL CLEANING PROCEDURE      * ");
    ui_print(" *           HANG ON FOR A SECOND :)           * ");
    ui_print(" *********************************************** ");
    ui_print(" ");
    run_program("/sbin/mount", "/dev/block/stl11", "/cache");
    run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/data");
    show_progress(0.100000, 0);
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print("Formatting Cache Partition...");
    delete_recursive("/cache");
    show_progress(0.100000, 20);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print("Wiping dalvik-cache...");
    delete_recursive("/data/dalvik-cache");
    show_progress(0.100000, 40);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print("Deleting old kernel settings files");
    delete("/system/etc/init.d/S_volt_scheduler");
    delete("/system/etc/init.d/S70zipalign");
    delete("/system/etc/init.d/S90scheduler");
    delete("/system/etc/init.d/S99finish");
    delete("/system/etc/init.d/89system_tweak");
    delete("/system/etc/init.d/98system_tweak");
    delete("/system/etc/init.d/S89system_tweak");
    delete("/system/etc/init.d/S98system_tweak");
    delete("/system/etc/init.d/S90screenstate_scaling");
    delete("/system/etc/init.d/90screenstate_scaling");
    delete("/system/etc/init.d/98screenstate_scaling");
    delete("/system/etc/init.d/S98screenstate_scaling");
    show_progress(0.100000, 60);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print("Cleaning up old modules");
    package_extract_dir("script", "/tmp/script");
    set_perm(0, 0, 755, "/tmp/script/cleaningmodules");
    run_program("/tmp/script/cleaningmodules");
    show_progress(0.100000, 70);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print("Formatting Cache for security purpose...");
    delete_recursive("/cache");
    show_progress(0.100000, 80);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print("Wiping dalvik-cache for security purpose...");
    delete_recursive("/data/dalvik-cache");
    show_progress(0.100000, 90);
    ui_print(" ");
    ui_print("DONE! ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" ");
    ui_print(" *********************************************** ");
    ui_print(" *            CLEANING PROCEDURE DONE          * ");
    ui_print(" *      YOU'RE READY TO FLASH A NEW KERNEL!    * ");
    ui_print(" *             PAINLESS THIS TIME ^_^          * ");
    ui_print(" *                                             * ");
    ui_print(" *         ENJOY YOUR SAMSUNG BASED ROM        * ");
    ui_print(" *                  by LIPPOL94                * ");
    ui_print(" *********************************************** ");
    ui_print(" ");
    20
    I got the files ( 4th version), here you go.
    3
    What do you mean with: "Don't use it on Samsung ROMS" exactly? I'm a bit confused because you also say: "It's compatible with MIUI and CM7!". Guess what.. I have MIUI... on a Samsung i9000. So you could say it's the Samsung-ROM of MIUI. I guess you mean that it destroys your phone when running an original Samsung-ROM, doesn't it?

    "Samsung ROM" means ROM made by Samsung, ones that include TouchWiz and so on.
    3
    I read through all 10 pages and may have missed it does anyone know if when using onecosmic's ICS RC1 would I use the cm7/mui script or Samsung script(says for AOSP ROM's and that's what onecosmic says his rom is) v confused because although it is called an aosp ROM some have had to flash a cm7 ROM before flashing to ice , but I did not (I am on i9000BL from a GB ROM)
    so can someone explain which script I would use please
    thanks

    Yes, please. I was about to ask the exact same question! Lol I heard people on onecosmic's ICS used the script but didn't specify which one.

    CM7/MIUI one
    3
    NOW THE SCRIPT IS AVAILABLE FOR EVERY ROM / SYSTEM !
    READ CAREFULLY OP TO BE SURE WHICH ONE TO PICK!

    ENJOY GUYS!

    http://xdaforums.com/showthread.php?t=1166954