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

Status
Not open for further replies.
Search This thread

jblanc

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

customLogo.gif

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

  • Sybr_Kernel_Cleaning_Script_Ed-1.zip
    138.5 KB · Views: 2,800
  • Sybr_Kernel_Cleaning_Script_Ed-1.1.zip
    138.5 KB · Views: 7,547
Last edited:

schaggo

Senior Member
Jan 16, 2008
2,623
826
Zürich
I noticed some residue as well, but only the obvious :rolleyes: Thanks for doing this to also clean out the other trash...

#Tapatalk #Galaxy Note
 

robertberma

Senior Member
Nov 9, 2010
2,827
590
53
BLEISWIJK
edit

Is this a joke? Zip is empty, ony system file. Please explain. Updater script and binaire are different than abyss zip?
 
Last edited:

jayGGjay

Senior Member
Dec 3, 2011
64
37
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
53
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
886
361
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
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
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
53
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
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
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
53
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.

Top Liked Posts

  • There are no posts matching your filters.
  • 146
    The Sybr.KCS can thoroughly clean any residue of a kernel files stored on your phone.

    customLogo.gif

    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
    5
    In different forums and threads there were hints that this script is absolutely useless:
    The best and even humorous analysis from antiochasylum. But the first analysis I read before was from nobnut.

    But even more it seems to be a simple copy of a script by buster041284 for Galaxy S2 which is a clone from script by lipol94 for Galaxy S. Surprisingly no credits given here - not really fair (even for a placebo).

    In the original there is the file "cleaningmodules" which isn't in the Sybr script - simply forgotten to copy it. The script would clean the modules:
    Code:
    #!/system/bin/sh
    rm -rf /system/lib/modules
    rm -rf /system/etc/glitch-config
    rm /data/local/logger.ko
    From busters script resulting are the strange kernel entries like Thoravukk, Siyah.... These are S2 Kernel (I assume). The thread is closed.

    This script doesn't do anything, so it doesn't do dangerous things.
    But: if a member just copies and adds entries without even checking what they'll do or wether they might work I would be afraid that he might add dangerous things by "nescience (or even ignorance?)" in new versions.

    And when I see ROMs that use this script without any control I'm even more surprised.

    So maybe the OP should check this script and clean it - even if the resulting content is NULL:
    3
    Stop talking about rom, and let this thread for my script. Thanks.
    3
    Edition 1.1 out !
    3
    Thread closed

    This thread could be closed for a few obvious reasons:

    • Useless
    • No own development
    • Taken from scripts of other developers without giving credit
    For this ^^^^^