[SCRIPT][Sybr.Lab] Sybr Kernel Cleaning Script Edition 1.1

Status
Not open for further replies.

jblanc

Senior Member
Feb 6, 2011
299
319
0
Clermont Ferrand
sybr.name
The Sybr.KCS can thoroughly clean any residue of a kernel files stored on your phone.


Visit Sybr.Lab for more informations
Please pay a beer to Sybr.name if you like our work !

This script is an archive flashable via the Recovery model of your Android phone, it will allow you to flash any kernel starting on a clean base.

This script will do cleaning your phone and remove any residue of previous kernels installed.

Instalaltion
- Put the file on your SD card
- Restart in recovery
- Flashing the script
- Flashing a kernel
- Restart

Download
Sybr.KCS : link

Changelog
  • More cleaning files for differents tweaks existed (Thunder, SuperCharger, Turbo...)
  • Changing nick for Sybr Kernel Cleaning Script
 

Attachments

Last edited:

jayGGjay

Senior Member
Dec 3, 2011
64
37
0
Well it is "only" a script that clean (recursive delete):
- cache
- dalvik-cache
- some init.d scripts
- modules that might be left from older kernel
- cache
- dalvik-cache

So yes the system is empty because it is not to overwrite stuff with new things only to clean up some old stuff

BUT BE CAREFULL WITH IT AS IT CLEAN SOME INIT.D scripts THAT MIGHT OR MIGHT NOT BE USEFULL DEPENDING YOUR KERNEL AND THAT NEW KERNEL FLASH USUALLY ONLY WRITE THE KERNEL AND not the scripts from init.d.

So very good/usefull if your are sur/know your ROM and it custom init.d scripts (or backup your init.d scripts before doing it)

EDIT:
here a the init.d that this scripts try to remove
/system/etc/init.d/S70zipalign
/system/etc/init.d/S90scheduler
/system/etc/init.d/S99finish
/system/etc/init.d/89system_tweak
/system/etc/init.d/98system_tweak
/system/etc/init.d/S89system_tweak
/system/etc/init.d/S98system_tweak
/system/etc/init.d/S90screenstate_scaling
/system/etc/init.d/90screenstate_scaling
/system/etc/init.d/98screenstate_scaling
/system/etc/init.d/S98screenstate_scaling
 
Last edited:

robertberma

Senior Member
Nov 9, 2010
2,827
590
0
50
BLEISWIJK
Well it is "only" a script that clean (recursive delete):
- cache
- dalvik-cache
- some init.d scripts
- modules that might be left from older kernel
- cache
- dalvik-cache

So yes the system is empty because it is not to overwrite stuff with new things only to clean up some old stuff

BUT BE CAREFULL WITH IT AS IT CLEAN SOME INIT.D scripts THAT MIGHT OR MIGHT NOT BE USEFULL DEPENDING YOUR KERNEL AND THAT NEW KERNEL FLASH USUALLY ONLY WRITE THE KERNEL AND not the scripts from init.d.

So very good/usefull if your are sur/know your ROM and it custom init.d scripts (or backup your init.d scripts before doing it)

Great work, every kernel dev should use this sript in there fash zip.

---------- Post added at 03:32 PM ---------- Previous post was at 03:28 PM ----------

I never use init.d scripts, only 99complete. So again great work.
 
Last edited:
  • Like
Reactions: eagleofdeath13

The_Steph

Senior Member
Mar 20, 2007
885
361
0
Paris
jblanc,

I don't get the follwing part:
ui_print("* Cleaning olds modules... *");
ui_print("*****************************************************");
package_extract_dir("script", "/tmp/script");
set_perm(0, 0, 755, "/tmp/script/cleaningmodules");
run_program("/tmp/script/cleaningmodules");
show_progress(0.100000, 70);


There is no script folder in zip file, so no reason for it...
 

jaiiscool

Senior Member
Jan 30, 2008
1,011
360
0
Mumbai
jaiparekh.com
jblanc,

I don't get the follwing part:
ui_print("* Cleaning olds modules... *");
ui_print("*****************************************************");
package_extract_dir("script", "/tmp/script");
set_perm(0, 0, 755, "/tmp/script/cleaningmodules");
run_program("/tmp/script/cleaningmodules");
show_progress(0.100000, 70);


There is no script folder in zip file, so no reason for it...
I was just about to post it.

The zip is missing the script folder, also the system folder can be deleted as it is of no use in the zip.

Sent from my GT-P1000 using xda premium
 

jayGGjay

Senior Member
Dec 3, 2011
64
37
0
lol, i was so focused on the updater-scripts I did not notice the module cleaning scripts was missing from the zip.

He might just add the module script in the updater-scripts and do everythings from there.
OR
He could also make a "external" scripts for the init.d scripts so people/dev might tailor it to theirs needs/rom/kernel
Anyway a corrected update should come now that a few have spot those "issue" ;)
 
  • Like
Reactions: jaiiscool

robertberma

Senior Member
Nov 9, 2010
2,827
590
0
50
BLEISWIJK
Well it is "only" a script that clean (recursive delete):
- cache
- dalvik-cache
- some init.d scripts
- modules that might be left from older kernel
- cache
- dalvik-cache

So yes the system is empty because it is not to overwrite stuff with new things only to clean up some old stuff

BUT BE CAREFULL WITH IT AS IT CLEAN SOME INIT.D scripts THAT MIGHT OR MIGHT NOT BE USEFULL DEPENDING YOUR KERNEL AND THAT NEW KERNEL FLASH USUALLY ONLY WRITE THE KERNEL AND not the scripts from init.d.

So very good/usefull if your are sur/know your ROM and it custom init.d scripts (or backup your init.d scripts before doing it)

EDIT:
here a the init.d that this scripts try to remove
/system/etc/init.d/S70zipalign
/system/etc/init.d/S90scheduler
/system/etc/init.d/S99finish
/system/etc/init.d/89system_tweak
/system/etc/init.d/98system_tweak
/system/etc/init.d/S89system_tweak
/system/etc/init.d/S98system_tweak
/system/etc/init.d/S90screenstate_scaling
/system/etc/init.d/90screenstate_scaling
/system/etc/init.d/98screenstate_scaling
/system/etc/init.d/S98screenstate_scaling

Here he explains wy he use system folder
 

jayGGjay

Senior Member
Dec 3, 2011
64
37
0
robertberma:
Tx, but i am NOT Jblanc the creator of the scripts only some "guy" with linux knowledge and curiosity that wanted to have a look at it before using it.

So I could NOT explain with he has left the empty system directories. I have only look at the script and understand/try to understand what he was trying to achived with it.
 

jaiiscool

Senior Member
Jan 30, 2008
1,011
360
0
Mumbai
jaiparekh.com
Here he explains wy he use system folder
The system folder is not used in this case, the folder i the zip is for copying files over to system drive, and since no files are copied, it can be deleted.

As for the above lines, those are for deleting files present in the system drive.

In whatever case the system folder inside the zip is not required as of now.

Sent from my GT-N7000 using xda premium
 

robertberma

Senior Member
Nov 9, 2010
2,827
590
0
50
BLEISWIJK
The system folder is not used in this case, the folder i the zip is for copying files over to system drive, and since no files are copied, it can be deleted.

As for the above lines, those are for deleting files present in the system drive.

In whatever case the system folder inside the zip is not required as of now.

Sent from my GT-N7000 using xda premium
Can paste in this zip zimage of every kernel i want to flash. Maby again a stupid quastion but than if i flash a kernel it will do all in one go.
 
Status
Not open for further replies.