Related
IF YOU LIKE ULTIMATE CLEANING SCRIPT, PLEASE CONSIDER TO BUY ME A DRINK! IT WILL MAKE ME WORKING FASTER! THANKS A LOT!
Click to expand...
Click to collapse
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(" ");
Good...
Sent from my GT-I9000 using XDA Premium App
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?
ralphitz said:
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?
Click to expand...
Click to collapse
"Samsung ROM" means ROM made by Samsung, ones that include TouchWiz and so on.
why you don't mount /system?
in cwm it's unmounted by default
extralife said:
why you don't mount /system?
in cwm it's unmounted by default
Click to expand...
Click to collapse
Not needed. When launching the script, system is mounted automatically.
I've never had problems
Trust me It's the second release, so it's been tested many times
lippol94 said:
system is mounted automatically.
Click to expand...
Click to collapse
for me it wasn't - last nightlys - so i had to mount it manually in menu cause init.d was untouched
added un-/mount to the script and all was fine
but ok - maybe something changed
will try, when neo 11final is out
Awesome v2- anything special/different from v1 other than security wipes?
Sent from SGS Captivate CM7 or MIUI with Escapist orTKGlitch using XDA premium app.
Good job , thanks for the your utility it's very useful.
There is only a problem with Cyanogen ROM: high battery drain
rwells813 said:
Awesome v2- anything special/different from v1 other than security wipes?
Sent from SGS Captivate CM7 or MIUI with Escapist orTKGlitch using XDA premium app.
Click to expand...
Click to collapse
Yeah! now the script cleans up the entire module folder that generates regressions from a release to another
Sent from my Samsung Galaxy S running Galnet MIUI
you beast
Sent from SGS Captivate CM7 or MIUI with Escapist orTKGlitch using XDA premium app.
rwells813 said:
you beast
Sent from SGS Captivate CM7 or MIUI with Escapist orTKGlitch using XDA premium app.
Click to expand...
Click to collapse
Honoured
Sent from my Samsung Galaxy S running Galnet MIUI
Great script cant even think about flashing new stuff with out this
thnx allot !
Arielo1 said:
Great script cant even think about flashing new stuff with out this
thnx allot !
Click to expand...
Click to collapse
Thank you so much mate
Very appreciated!
this will come in very handy when switching kernels for whatever reason
respect.
Does something cimilair excist for Samsung gingerbread roms?
amazing...
great idea
nuff respect
edit: lol installed and then glitch v11 ml right after got a lot of FC's, re doing it now.
Awesome - Glad to see this at v2
Have used with every flash of Glanet's Miui (which is a lot LOL) works perfectly - thank you!!
tb5... said:
amazing...
great idea
nuff respect
edit: lol installed and then glitch v11 ml right after got a lot of FC's, re doing it now.
Click to expand...
Click to collapse
RosieKins said:
Awesome - Glad to see this at v2
Have used with every flash of Glanet's Miui (which is a lot LOL) works perfectly - thank you!!
Click to expand...
Click to collapse
Thanks guys
baba420 said:
Does something cimilair excist for Samsung gingerbread roms?
Click to expand...
Click to collapse
Not atm.
But i'm not going to do one in the near future. I might but not now.
I was trying to make a new script for my Dialer APKs and I modified my WORKING MMS Scripts to the following, editted in notepad, saved as a FILE, yet I get a (Status 6) error in CWM and it wont flash. I have looked through it a couple times and can't see anything wrong with it? any ideas?
Code:
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("------------------------------------------------");
ui_print(" Turbosocks Presents ");
ui_print(" ");
ui_print(" PayPhone Dialer - Pics ");
ui_print(" for Epic Gingerbread ");
ui_print("------------------------------------------------");
ui_print("");
ui_print("------------------------------------------------");
ui_print(" I, Turbosocks, am not responsible for any ");
ui_print("overjoyment, excitement, screaming from the ");
ui_print("sheer awesomeness, damage to your pet dog ");
ui_print("scooter, damage to your phone, loss of your job,");
ui_print("your wife leaving you, etc. when you choose to ");
ui_print("install this application. You are flashing this ");
ui_print("epic piece of software at your own risk!!! ");
ui_print("-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_");
ui_print("------------------------------------------------");
ui_print("");
ui_print("");
ui_print("Preparing System For Update...");
run_program("/sbin/mount", "/dev/block/stl9", "/system");
run_program("/sbin/mount", "/dev/block/stl10", "/data");
run_program("/sbin/mount", "/dev/block/stl11", "/cache");
show_progress(0.5, 0);
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm(1000, 1000, 0771, "/data/app");
show_progress(0.5, 10);
ui_print("Unmounting /system, /data, /cache...");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
run_program("/sbin/umount", "/cache");
ui_print("Your Samsung Epic 4g has now been broken... ");
ui_print("..... erasing all personal data, wiping SD card");
ui_print("..deleting /system..deleting /app..JUST KIDDING!");
ui_print(" Enjoy your new awesomeness! ");
use the dos2unix script.
Ps, awesome work!
sent from my miui-ified epic
Right How would I create a updater-binary I know how to for Updater-script.
And many thanks in advance I l give you thanks if you can answer?
You can extract the binary from any update.zip script, you don't need to build your own.
Can you take a look at my Theme Im making If i upload it to mediafire Its Getting installation aborted status 6 but im using notepad++?
edit:
Really need help and Can You Recomend any lockscreens?/
ui_print("-Checking Model ID");
ui_print("-Success!");
ui_print("Please be patient");
ui_print("1st boot may take a few minutes");
ui_print("Welcome to My Xperia S packet ");
ui_print("By Installing this You herby take full");
ui_print("Responsibillity of your device and what");
ui_print("you do with it no one can be held of ");
ui_print("Bricks or Death to your device");
set_progress(0.1)
format("MTD", "cache");
ui_print("Warning this Formats Your data Meaning your Apps are wiped!");
format("yaffs2", "MTD", "system");
format("yaffs2", "MTD", "userdata");
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
run_program("/sbin/busybox", "rm", "-rf", "/sd-ext/*");
run_program("/sbin/busybox", "rm", "-rf", "/sdcard/.android_secure/*");
run_program("/sbin/busybox", "umount", "/sd-ext");
run_program("/sbin/e2fsck", "-pv", "/dev/block/mmcblk0p2");
set_progress(0.2)
format("MTD", "userdata");
mount("MTD", "system", "/system");
set_progress(0.9)
ui_print("Cleaning up enjoy This In a few ");
ui_print("~Starting Clean~");
ui_print("Finished Clean");
unmount("/system");
ui_print(";"X");
ui_print(";"~P");
ui_print(";"~~E");
ui_print(";"~~~R");
ui_print(";"~~~~I");
ui_print(";"~~~~~A");
ui_print(";"~~~~~~4");
ui_print(":"~~~~~~~L");
ui_print(";"~~~~~~~~I");
ui_print(";"~~~~~~~~~F");
ui_print(";"~~~~~~~~~~E");
ui_print("Finished Process Reboot & enjoy");
Can you tell me whats wrong? Idk what ive done wrong
I'm writing some CWM update scripts and I want to mount /system as r/w to update some files. Can anyone tell what block system is? Below is the code I have for the Galaxy 3.
Thanks
# mounting system as r/w - ATTENTION - set the the mount point
# to the proper for your device! Example mountr command is
# mounting system for Samsung GT-I5800 aka Galaxy 3
mount("/dev/block/stl6", "system", "/system", "rw");
Code:
ui_print(" ");
ui_print(" ");
ui_print(" Android 4.1.1 Jellybean JRO03C ");
ui_print(" For GSM Galaxy Nexus ");
ui_print(" provided by @bigxie ");
ui_print(" ");
ui_print(" ");
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "0");
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "/system");
package_extract_file("boot.img", "/dev/block/platform/omap/omap_hsmmc.0/by-name/boot");
unmount("/system");
Does that excerpt help you?
Moved to Q&A.. Do not post a question in the DEV section.
hi
I want to cook my own rom. I downloaded a stock rom and extract the files. I want to make it cwm flashable. There are many files and i dont know which files are needed to make it cwm flashable . These are the files: arm11boot, csc.rfs, mibib, oemsbl, qcsbl, amss, recovery.img, boot.img and system.rfs.
Also i want to convert it to ex4 and use phiexz kernel. I downloaded phiexz kernel and there is a boot.img, a system folder and a META-INF folder. I think i must replace the stock roms boot.img by the boot.img from phiexz and copy the system folder from phiexz's kernel to the system folder of the stock rom. But what is the META-INF folder?
I already searched for guides to cook own rom but all of them are for modifying cwm flashable custom roms and not stock roms. It would be nice if someone can help me
Sorry for my bad english
Take system.rfs from stock, boot.img from phiexz stockkernel
Extract system.rfs with terminal in linux or on windows use magic iso
Take the META-INF folder from another rom and edit it to be like yours.
Sent from my GT-S5660 using xda premium
okay thank you
but how do i sign the zip file? In cwm the installation aborts...
i tried to sign with dsixdas kitchen but no sucess...
Sorry for my bad English
You can flash unsigned zips from recovery
Wich error you get in cwm?
Sent from my GT-S5660 using xda premium
i get this error when Signature Check is enabled:
Code:
Finding update package...
Opening update package...
Verifiying update package...
E:failed to seek in /sdcard/MyRom.zip (Invalid argument)
E:signature verification failed
Installation aborted.
and this when Signature Check is disabled:
Code:
Finding update package...
Opening update package...
E:Can't open /sdcard/MyRom.zip
(bad)
Installation aborted.
//Edit: Now i get a "Status 7" Error
Status 7 is updaterscript error, you didnt modify it..
Follow the guides
Sent from my GT-S5660 using xda premium
okay the installation is working
but i dont know how to set the permissions and how to "symlink". Because of that the rom doesnt boot.
I have already copied the "set permission and symlink script" from this page http://www.androidpit.de/de/android/forum/thread/439522/Workshop-Rom-koecheln and this page http://forum.xda-developers.com/showthread.php?t=936175 but it doesnt work
this is my script without set permission and so on
Code:
ui_print("");
ui_print("");
ui_print("Installation of MyRom");
ui_print("------by [email protected]");
ui_print("");
#Mounting
ui_print("Mounting...");
ui_print("mount /system");
run_program("/sbin/busybox", "mount", "/system");
ui_print("mount /data");
run_program("/sbin/busybox", "mount", "/data");
ui_print("mount /cache");
run_program("/sbin/busybox", "mount", "/cache");
ui_print("Mounting finished");
ui_print("-----------------");
ui_print("");
#Wiping
ui_print("Wiping...");
ui_print("wipe /system");
delete_recursive("/system");
ui_print("wipe /data");
delete_recursive("/data");
ui_print("wipe /cache");
delete_recursive("/cache");
ui_print("Wiping finished");
ui_print("-----------------");
ui_print("");
#Installation
ui_print("Installing...");
package_extract_dir("system", "/system");
ui_print("Installation finished");
ui_print("-----------------");
ui_print("");
#InstallationKernel
#Thanks to phiexz :)
ui_print("Installing Kernel...");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
ui_print("Installating Kernel finished");
ui_print("-----------------");
ui_print("");
#Unmount
ui_print("Unmounting...");
ui_print("unmount /system");
run_program("/sbin/busybox", "unmount", "/system");
ui_print("unmount /data");
run_program("/sbin/busybox", "unmount", "/data");
ui_print("unmount /cache");
run_program("/sbin/busybox", "unmount", "/cache");
ui_print("Unmounting finished");
ui_print("-----------------");
ui_print("");
ui_print("Installation of MyRom finished");
ui_print("Please Reboot Your Phone");
emyaz said:
okay the installation is working
but i dont know how to set the permissions and how to "symlink". Because of that the rom doesnt boot.
I have already copied the "set permission and symlink script" from this page http://www.androidpit.de/de/android/forum/thread/439522/Workshop-Rom-koecheln and this page http://forum.xda-developers.com/showthread.php?t=936175 but it doesnt work
this is my script without set permission and so on
Code:
ui_print("");
ui_print("");
ui_print("Installation of MyRom");
ui_print("------by [email protected]");
ui_print("");
#Mounting
ui_print("Mounting...");
ui_print("mount /system");
run_program("/sbin/busybox", "mount", "/system");
ui_print("mount /data");
run_program("/sbin/busybox", "mount", "/data");
ui_print("mount /cache");
run_program("/sbin/busybox", "mount", "/cache");
ui_print("Mounting finished");
ui_print("-----------------");
ui_print("");
#Wiping
ui_print("Wiping...");
ui_print("wipe /system");
delete_recursive("/system");
ui_print("wipe /data");
delete_recursive("/data");
ui_print("wipe /cache");
delete_recursive("/cache");
ui_print("Wiping finished");
ui_print("-----------------");
ui_print("");
#Installation
ui_print("Installing...");
package_extract_dir("system", "/system");
ui_print("Installation finished");
ui_print("-----------------");
ui_print("");
#InstallationKernel
#Thanks to phiexz :)
ui_print("Installing Kernel...");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
ui_print("Installating Kernel finished");
ui_print("-----------------");
ui_print("");
#Unmount
ui_print("Unmounting...");
ui_print("unmount /system");
run_program("/sbin/busybox", "unmount", "/system");
ui_print("unmount /data");
run_program("/sbin/busybox", "unmount", "/data");
ui_print("unmount /cache");
run_program("/sbin/busybox", "unmount", "/cache");
ui_print("Unmounting finished");
ui_print("-----------------");
ui_print("");
ui_print("Installation of MyRom finished");
ui_print("Please Reboot Your Phone");
Click to expand...
Click to collapse
1. way too much ui prints
2 you dont do wipe /system (ref. to other roms for right FORMAT values)
3 make sure boot.img is called boot.img and not kernel or else
4 the /sbin/busybox does problably not exist in stock roms so that doesnt work, enter unmount codes manually from another roms script
5 permissions have to be right
6 ever heard of symlinks? need to be added too..
that said, you do better use a rom as base, add your desired apps to /system/app and flash that without publishing on XDA. much easier
Just use cygwin and dsixda android kitchen... after cooking change mtd format/mount lines to ext4 from other rom ...
Wysyłane z mojego GT-S5660 za pomocą Tapatalk 2