Hi am trying to create an update sip for my theme but everytime i try to flash it says syntax error in update script. This is my code can anyone help me.
show_progress(0.500000, 0);
mount("MTD", "data", "/data");
package_extract_dir("data", "/data");
unmount("/data");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, 0644, "/system/framework/framework-res.apk");
set_perm(0, 0, 0755, 0644, "/system/app/Launcher2.apk");
show_progress(0.100000, 0);
unmount("/system");
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.
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
Hai!
I made my rom quite reddy. I have problems with the META-INF dir. I have created the certs with apksign. And the update-script is reddy too:
Code:
ui_print("===============================================");
ui_print(" IcyBeats S ");
ui_print(" by MacCoremag ");
ui_print(" est 2012 ");
ui_print("===============================================");
ui_print("STARTING!");
format("MTD", "system");
format("MTD", "userdata");
format("MTD", "cache");
package_extract_dir("system/", "/system");
package_extract_dir("data/", "/data");
set_progress(1.000000);
ui_print("Ready!!!");
But it dont work, when i try to flash it over CWM-Recovery, then "Installation abroad" appears.
Pls help me, its my first own ROM.
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.