[CWM Flashable] Kernel Cleaning Script

jivy26

Inactive Recognized Developer
Aug 7, 2010
1,824
1,115
0
Virginia Beach, Va
what is this and what does it do?
ensures you have no issues flashing different kernels.

Clears init.d scripts associated with Kernels, removes bln associated files, clears dalvik-cache, cache, and any logcat on/off
how to use
download zip to your sdcard and reboot into cwm
flash kernel cleaning zip
flash new kernel
....that's it
when to use
When flashing from one kernel to another. Right now the only two primary kernels are Entropy's DD and Siyah. Siyah adds etc/init.d/ scripts so this ensures they are removed prior to flashing a different Kernel.​
 
Last edited:

highaltitude

Senior Member
Nov 4, 2010
2,041
255
163
NC
So "when" should this be used? Between flashing new roms? Or can it be used to clean a rom you are using?

Btw the link is not working

Sent from my SGH-I777 using xda premium
 
Last edited:

NJGSII

Senior Member
Nov 15, 2011
1,786
450
0
Howell, NJ
So "when" should this be used? Between flashing new rooms? Or can it be used to clean a rom you are using?

Btw the link is not working

Sent from my SGH-I777 using xda premium
Not to sound like a prick, but can't you read?

It says right under the first part of the OP titled "what is this and what does it do?"

in the OP it also the title says Kernel Cleaning Script.
 

afrojoc

Senior Member
Feb 18, 2011
672
108
0
Moore, OK
Not to sound like a prick, but can't you read?

It says right under the first part of the OP titled "what is this and what does it do?"

in the OP it also the title says Kernel Cleaning Script.

Chill brotha. He's asking for when it should be flashed for proper usage. Not what it is..
 
  • Like
Reactions: j510

highaltitude

Senior Member
Nov 4, 2010
2,041
255
163
NC
Well you do sound like one, I did read it and didn't say when exactly you were to use it. SO then, use it ONLY when changing kernels. So if you flash a new rom, then you do or dont use it? Only if youre running a rom, but decide to go to another kernel?

Sent from my SGH-I777 using xda premium
 
Last edited:

Jank4AU

Recognized Contributor
Nov 2, 2010
3,657
2,153
253
Alabama
Well you do sound like one, I did read it and didn't say when exactly you were to use it. SO then, use it ONLY when changing kernels. So if you flash a new rom, then you do or dont use it? Only if youre running a rom, but decide to go to another kernel?

Sent from my SGH-I777 using xda premium
I think you're on the right track:
1) use prior to flashing a new kernel
or
2) use prior to flashing a new ROM if that ROM uses a different kernel than what you are currently using
 

highaltitude

Senior Member
Nov 4, 2010
2,041
255
163
NC
Thanks that is what i thought, or at least figured out with your guys help. Just didnt know if it was useful in the middle of running a rom. i.e I just flashed the Siyah kernel to Miui yesterday, would this help me today, that kind of deal. So with that thinking, if I wanted to use this tool right now, I would run it, then flash the Siyah kernel again afterwards. Now, what about, when you restore a rom? I am about to put Shostock back, do I run this tool before restoring? ;)

well, I restored, rebooted, then boot back into cwm, flashed the cleaner, then flashed the kernel I wanted, then rebooted.
 
Last edited:

Jank4AU

Recognized Contributor
Nov 2, 2010
3,657
2,153
253
Alabama
After flashing SiyahKernel.

I make a point of not putting persistent cruft anywhere - not even rooting any more.
Is this something that would need to be done if flashing a different iteration of the same kernel? Siyah 2.6.1 to 2.6.3 for example?

I know you just said we don't need to run these kernel cleaning scripts for your kernels...thanks in advance. Also, is Pika's Bolt script compatible with your kernels or is it unnecessary? Just curious.
 
Last edited:

Caliesv

Senior Member
Oct 16, 2010
738
111
0
Not to sound like a prick, but can't you read?

It says right under the first part of the OP titled "what is this and what does it do?"

in the OP it also the title says Kernel Cleaning Script.
So quick to jump on someone! Not to sound like a prick, but can't YOU read?!

Sent from my SAMSUNG-SGH-I777 using Tapatalk
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
Is this something that would need to be done if flashing a different iteration of the same kernel? Siyah 2.6.1 to 2.6.3 for example?

I know you just said we don't need to run these kernel cleaning scripts for your kernels...thanks in advance. Also, is Pika's Bolt script compatible with your kernels or is it unnecessary? Just curious.
Depends on the kernel... If it puts crap in init.d or elsewhere on the system, then yes.

Note that it may also clobber stuff your firmware dev intentionally put into init.d - I believe gtg has a zipalign script along with a script to set the CPU governor to ondemand in Unnamed.
 

Peaster111

Senior Member
Feb 9, 2009
721
360
0
Ft. Worth, TX
I gather you just edited the script form the I9100 forums this thread samsung ultimate kernel cleaning script posted by buster041284... yes?

The scripts are very similar. Yours recursively deletes everything in the init.d folder and script posted by buster041284's version deletes specific files in the init.d folder.

I believe cleaning up scripts from Siyah's kernel prior to (re)installing Entropy's kernel is the only reason for us I777 folks to use the scripts.. . right?

Wouldn't you want to only kill those files vice every script in the entire folder?
 
Last edited:

jivy26

Inactive Recognized Developer
Aug 7, 2010
1,824
1,115
0
Virginia Beach, Va
I gather you just edited the script form the I9100 forums this thread samsung ultimate kernel cleaning script posted by buster041284... yes?

The scripts are very similar. Yours recursively deletes everything in the init.d folder and script posted by buster041284's version deletes specific files in the init.d folder.

I believe cleaning up scripts from Siyah's kernel prior to (re)installing Entropy's kernel is the only reason for us I777 folks to use the scripts.. . right?

Wouldn't you want to only kill those files vice every script in the entire folder?
Most cleaning scripts are about the same. I actually got the idea from the captivate forums back when it was my primary phone. Also updated the script to just remove siyah init's since that is the only kernel we have right now that installs them.
 

Peaster111

Senior Member
Feb 9, 2009
721
360
0
Ft. Worth, TX
Most cleaning scripts are about the same. I actually got the idea from the captivate forums back when it was my primary phone. Also updated the script to just remove siyah init's since that is the only kernel we have right now that installs them.
Gotcha... no surprise that the scripts would be similar. Good call on adjusting the updaterscript... folks might get a little concerned if you wiped their other init.d scripts too.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone