Go Back   Android Forums > Android Phones > Samsung Galaxy S2 (International) > Galaxy S2 (International) - All Things Root

Like Tree10Likes

test: Reply
 
LinkBack Thread Tools
Old December 22nd, 2011, 06:24 PM   #1 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default GS2KernelWipe Script

GS2KernelWipe thread

Advertisements
__________________
My Scripts/Threads
My Web Site
Hawker is offline  
Last edited by Hawker; January 31st, 2013 at 12:42 PM.
Reply With Quote
The Following 20 Users Say Thank You to Hawker For This Useful Post:
avushkaa (July 12th, 2012), Calvo1 (May 14th, 2013), fonegyro (December 24th, 2011), hippityhop (April 17th, 2012), ironass (December 22nd, 2011), Kaddoble (February 20th, 2012), Kie (December 23rd, 2011), Kuragari (January 26th, 2012), mcarans (December 30th, 2011), meerkat25 (June 15th, 2012), Pulse8 (November 14th, 2012), retrorom (October 18th, 2012), Rudedawg (December 23rd, 2011), Shotgun84 (December 23rd, 2011), simes6600 (December 30th, 2011), Sword Fish (January 1st, 2012), Sydney99 (December 23rd, 2011), THE RED BLUR (November 30th, 2012), turbohobbit (December 23rd, 2011), Twinn (December 22nd, 2011)
sponsored links
Old December 23rd, 2011, 12:56 AM   #2 (permalink)
Senior Member
 
Shotgun84's Avatar
 
Join Date: May 2011
Location: Cambridgeshire, England
Posts: 5,245
 
Device(s): Galaxy S4 GT-I9505 ROM: WanamLite, Kernel: KT-SGS4
Carrier: 3UK

Thanks: 1,613
Thanked 3,037 Times in 1,815 Posts
Default

Yeah post it up. I'm not really sure which scripts are relevant to my kernel anymore so it would come in handy.

Edit: Random question. Has the forum turned white instead of blue or is it my phone playing up?
Shotgun84 is offline  
Last edited by Shotgun84; December 23rd, 2011 at 12:58 AM.
Reply With Quote
Old December 23rd, 2011, 12:59 AM   #3 (permalink)
Kie
Senior Member
 
Kie's Avatar
 
Join Date: Oct 2011
Location: Perth, Australia
Posts: 822
 
Device(s): SGS4, HP Touchpad
Carrier: Virgin Australia

Thanks: 175
Thanked 224 Times in 162 Posts
Send a message via Skype™ to Kie
Default

I'd definitely use this instead of the other one (which i haven't used yet anyway :P). Post it up! I'm guessing it still does the cache wipes and all that nice stuff.
__________________
SGS4: Omega v29 build UFNDG Android v4.4.2
Kie is offline  
Reply With Quote
Old December 23rd, 2011, 02:38 AM   #4 (permalink)
Senior Member
 
Sydney99's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 1,653
 
Device(s): Galaxy S4: Danvdh KitKat GE + Philz + KT kernel + NE5 modem
Carrier: Vodafone

Thanks: 499
Thanked 427 Times in 313 Posts
Default

Quote:
Originally Posted by hawker View Post
I've developed a CWM flashable zip that is similar to the ultimate cleaning script, but instead, it also removes system/etc/init.d folder, thereby removing all previous crap that you may have sitting there from all your past kernels/tweaks etc.

This is handy, particularly now for Siyah, for the specific battery/performance tweaks, ensuring it is these tweaks, and only these tweaks that are in effect.
As it removes everything, it will therefore reset your voltage control settings.

As its bed time, I will look into changing it to keep the voltage control settings (or make a different version to do so) tomorrow.

If you're interested, then let me know, and I will post it up after more testing.

Let me know if you have any other requests to be included.

What a clever chappy. Don't go disappearing to xda now will you
Sydney99 is offline  
Reply With Quote
Old December 23rd, 2011, 02:54 AM   #5 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Quote:
Originally Posted by Sydney99 View Post
What a clever chappy. Don't go disappearing to xda now will you
I think after you run the script you will realise there is no chance of that happening butty!


Ok fellas, here it is.

GS2CleanV1.0.zip

I have to give the usual blurb of I cannot accept responsibility of any loss of data blah blah blah, but all it does everything the ultimate one did, but instead of removing specific files from the init.d folder, it removes the init.d folder itself, thereby clearing out any old kernel rubbish.

Like I said, as Voltage Control uses the init.d folder for its settings, you will have to re-enter its settings if you have got any.

Any suggestions appreciated for V1.1
Hawker is offline  
Last edited by Hawker; December 23rd, 2011 at 03:00 AM.
Reply With Quote
The Following 4 Users Say Thank You to Hawker For This Useful Post:
ironass (December 23rd, 2011), Kie (December 23rd, 2011), turbohobbit (December 23rd, 2011), Twinn (December 28th, 2011)
Old December 23rd, 2011, 03:06 AM   #6 (permalink)
Senior Member
 
steslatt's Avatar
 
Join Date: Jul 2010
Location: Manchester
Gender: Male
Posts: 1,145
 
Device(s): Nexus 4
Carrier: 3

Thanks: 38
Thanked 303 Times in 220 Posts
Default

Not sure if you are aware or if your cleaner touches these but if you are using checkrom then you will have 6 scripts in the init.d folder regardless of kernel. Removing these will remove some of the tweaks that come with checkrom as standard.
__________________
Google+
steslatt is offline  
Reply With Quote
The Following User Says Thank You to steslatt For This Useful Post:
Hawker (December 23rd, 2011)
Old December 23rd, 2011, 03:15 AM   #7 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

I dont remember having any init.d files when I installed CheckROM.
I dont notice any difference running it anyway.
I will keep an eye out when I install KL1 (perhaps) on a full wipe.
Hawker is offline  
Reply With Quote
Old December 23rd, 2011, 03:21 AM   #8 (permalink)
Senior Member
 
steslatt's Avatar
 
Join Date: Jul 2010
Location: Manchester
Gender: Male
Posts: 1,145
 
Device(s): Nexus 4
Carrier: 3

Thanks: 38
Thanked 303 Times in 220 Posts
Default

Check the rom zip file, they are in there.
steslatt is offline  
Reply With Quote
Old December 23rd, 2011, 03:38 AM   #9 (permalink)
Senior Member
 
Sydney99's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 1,653
 
Device(s): Galaxy S4: Danvdh KitKat GE + Philz + KT kernel + NE5 modem
Carrier: Vodafone

Thanks: 499
Thanked 427 Times in 313 Posts
Default

Are they important?
Sydney99 is offline  
Reply With Quote
Old December 23rd, 2011, 04:04 AM   #10 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Well most of us on CheckROM on here dont have them Syd, so I guess not overly so.

The Ultimate Kernel Cleaner deletes the following from init.d:
S_volt_scheduler
S70zipalign
S90scheduler
S99finish
89system_tweak
98system_tweak
S89system_tweak
S98system_tweak
S90screenstate_scaling
90screenstate_scaling
98screenstate_scaling
S98screenstate_scaling

Seems like this was developed to clean up a specific kernel in particular perhaps.


The CheckROM scripts are:

02modules
#!/system/bin/sh
# Load MODULES
sleep 1
insmod /system/lib/modules/cifs.ko
echo "+++ EXTRA MODULES activated +++";

This is to do with mounting samba file systems, so probably not needed by most


05module
#!/system/bin/sh
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ];
then
echo "Modifying read_ahead_kb parameters"
echo "4096" > /sys/devices/virtual/bdi/179:0/read_ahead_kb
else
echo "read_ahead_kb not found"
fi

I've never had any keyboard issues, so probably not important.


90ram-tweaks
#!/system/bin/sh
# Copyrightę 2011 Juwe11
if [ -e /sys/module/lowmemorykiller/parameters/minfree ];
then
echo "2560,4096,6144,12288,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree
fi
if [ -e /proc/sys/vm/swappiness ];
then
echo "50" > /proc/sys/vm/swappiness
fi
if [ -e /proc/sys/vm/vfs_cache_pressure ];
then
echo "10" > /proc/sys/vm/vfs_cache_pressure
fi
if [ -e /proc/sys/vm/dirty_expire_centisecs ];
then
echo "500" > /proc/sys/vm/dirty_expire_centisecs
fi
if [ -e /proc/sys/vm/dirty_writeback_centisecs ];
then
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
fi
if [ -e /proc/sys/vm/dirty_ratio ];
then
echo "90" > /proc/sys/vm/dirty_ratio
fi
if [ -e /proc/sys/vm/dirty_background_ratio ];
then
echo "5" > /proc/sys/vm/dirty_background_ratio
fi

Seems to have something to do with what the system does when memory gets low


98mounts
#!/system/bin/sh
/system/xbin/busybox
mount -o remount,noatime,barrier=0,nobh,noauto_da_alloc /data
/system/xbin/busybox mount -o remount,noatime,barrier=0,nobh,noauto_da_alloc /system

Not sure about this one. Mounting /data and /system slightly differently to normal but not entirely sure why

99complete
#!/system/bin/sh
busybox mount -o remount,rw -t rootfs /
# sh /system/bin/userinit.sh
sync;
setprop cm.filesystem.ready 1;
setprop dc.filesystem.ready 1;
setprop oxygen.filesystem.ready 1;

No idea what this one does.


S95zipalign
#!/system/bin/sh
# Automatic ZipAlign by Wes Garner
# ZipAlign files in /data that have not been previously ZipAligned (using md5sum)
# Thanks to oknowton for the changes
# Credits to doctorcete from Hyperdroid team for adding system/app and /system/framework
LOG_FILE=/data/zipalign.log
if [ -n $zipalign ] && [ $zipalign = "true" ];
then
busybox mount -o remount,rw /;
busybox mount -o remount,rw -t auto /system;
busybox mount -o remount,rw -t auto /data;
fi;
busybox mount -t tmpfs -o size=70m none /mnt/tmp;
echo "Starting Hyperdroid Automatic ZipAlign " `date` | tee -a $LOG_FILE;
if [ -e $LOG_FILE ];
then
rm $LOG_FILE;
fi;
echo "Starting Automatic ZipAlign $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
for apk in /data/app/*.apk ;
do
zipalign -c 4 $apk;
ZIPCHECK=$?;
if [ $ZIPCHECK -eq 1 ];
then
echo ZipAligning $(basename $apk) | tee -a $LOG_FILE;
zipalign -f 4 $apk /cache/$(basename $apk);
if [ -e /cache/$(basename $apk) ];
then
cp -f -p /cache/$(basename $apk) $apk | tee -a $LOG_FILE;
rm /cache/$(basename $apk);
else
echo ZipAligning $(basename $apk) Failed | tee -a $LOG_FILE;
fi;
else
echo ZipAlign already completed on $apk | tee -a $LOG_FILE;
fi;
done;
for apk in /system/app/*.apk ;
do
zipalign -c 4 $apk;
ZIPCHECK=$?;
if [ $ZIPCHECK -eq 1 ];
then
echo ZipAligning $(basename $apk) | tee -a $LOG_FILE;
zipalign -f 4 $apk /cache/$(basename $apk);
if [ -e /cache/$(basename $apk) ];
then
cp -f -p /cache/$(basename $apk) $apk | tee -a $LOG_FILE;
rm /cache/$(basename $apk);
else
echo ZipAligning $(basename $apk) Failed | tee -a $LOG_FILE;
fi;
else
echo ZipAlign already completed on $apk | tee -a $LOG_FILE;
fi;
done;
for apk in /system/framework/*.apk ;
do
zipalign -c 4 $apk;
ZIPCHECK=$?;
if [ $ZIPCHECK -eq 1 ];
then
echo ZipAligning $(basename $apk) | tee -a $LOG_FILE;
zipalign -f 4 $apk /cache/$(basename $apk);
if [ -e /cache/$(basename $apk) ];
then
cp -f -p /cache/$(basename $apk) $apk | tee -a $LOG_FILE;
rm /cache/$(basename $apk);
else
echo ZipAligning $(basename $apk) Failed | tee -a $LOG_FILE;
fi;
else
echo ZipAlign already completed on $apk | tee -a $LOG_FILE;
fi;
done;
echo "Automatic ZipAlign finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

zipaligns the apps in /system/app and /data/app
I think this is only done once on the initial run after the ROM has been flashed, so it shoudlnt be needed after this. This is probably why the first run takes so long.
Hawker is offline  
Last edited by Hawker; December 23rd, 2011 at 04:29 AM.
Reply With Quote
sponsored links
Old December 28th, 2011, 04:15 PM   #11 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

For those who would like to wipe init.d folder, but restore CheckROM init.d scripts, you can use my kernel cleaner to do the wipe, and follow this with the zip below:

CheckROM4 init scripts restore

This will restore the following into the init.d folder:
02modules
05module
90ram-tweaks
98mounts
99complete
S95zipalign
Hawker is offline  
Last edited by Hawker; December 30th, 2011 at 02:05 PM.
Reply With Quote
The Following 2 Users Say Thank You to Hawker For This Useful Post:
ironass (December 29th, 2011), Sydney99 (December 29th, 2011)
Old December 29th, 2011, 02:58 PM   #12 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Version 1.1 now deletes /data/user.log

This file is a log of any error messages generated on boot, and possibly during usage. This file stays resident until it is removed manually, so it is possible for old messages from a previous kernel to remain, even after a new kernel is flashed, so these messages would no longer be applicable, and could possibly cause confusion.

v1.1 now removes this file, so if you have this file present then you will know for sure that the messages have been generated since the script was last performed.

I will post this up in the next day or two, as I am still thinking of other things to include, and would be interested to hear of any suggestions to include in this version off you all.
thanks
Hawker is offline  
Last edited by Hawker; December 29th, 2011 at 06:29 PM.
Reply With Quote
Old December 29th, 2011, 06:29 PM   #13 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

I have done further digging, and it seems the ultimate kernel cleaner was not mounting the correct devices in order to wipe cache and dalvik cache. I always wondered why the first boot always seems to be just as quick after running the UKC script!

GS2CleanV1.1.zip now gives a true wipe of both cache and dalvik cache partitions along with wiping init.d folder and user.log.
Because of this, do not be alarmed if the first boot takes a long time. (my first boot after this true wipe now takes approx 3 minutes!) This is because a true wipe has taken place, and cache partitions are being rebuilt from new.

I would be interested to hear if this solves the problems old Syd has been having.

I will do further testing, and hopefully get this version up and running on here for you all tomorrow.
Hawker is offline  
Last edited by Hawker; December 29th, 2011 at 06:35 PM.
Reply With Quote
The Following 3 Users Say Thank You to Hawker For This Useful Post:
ironass (December 30th, 2011), Kie (December 29th, 2011), Sydney99 (December 30th, 2011)
Old December 29th, 2011, 09:26 PM   #14 (permalink)
Kie
Senior Member
 
Kie's Avatar
 
Join Date: Oct 2011
Location: Perth, Australia
Posts: 822
 
Device(s): SGS4, HP Touchpad
Carrier: Virgin Australia

Thanks: 175
Thanked 224 Times in 162 Posts
Send a message via Skype™ to Kie
Default

Looking forward to it mate! Will give it a shot with 2.6.3 when it arrives
Kie is offline  
Reply With Quote
Old December 30th, 2011, 01:14 AM   #15 (permalink)
Senior Member
 
Sydney99's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 1,653
 
Device(s): Galaxy S4: Danvdh KitKat GE + Philz + KT kernel + NE5 modem
Carrier: Vodafone

Thanks: 499
Thanked 427 Times in 313 Posts
Default

No tempting us with a beta version then?
Sydney99 is offline  
Reply With Quote
Old December 30th, 2011, 01:39 AM   #16 (permalink)
Senior Member
 
ironass's Avatar
 
Join Date: Aug 2010
Location: Cotswolds, England
Gender: Male
Posts: 8,695
 
Device(s): SGS5 SM-G900F. Rooted. KitKat 4.4.2 NG7 NEAT ROM. Baseband: NG8. KT kernel+PhilZ recovery.
Carrier: Vodafone

Thanks: 1,187
Thanked 3,918 Times in 2,582 Posts
Default

Quote:
Originally Posted by hawker View Post
Any suggestions appreciated for V1.1
Any chance that you could name your v1.1 Kernel Cleaner something like...

XXXKernelCleanV1.1.zip

or something along those lines as your present v1.0 kernel is named GS2CleanV1.0.zip and when I'm in Recovery I have to frantically push the Volume button 20+ times to navigate to it....

... what, you expected a technical request from me!


(just to hedge your bets... you could do a S99_KernelCleanV1.1.zip as well.)
__________________
Did you know that hitting the Thanks button is quicker than typing it and the Search button is your friend.

Dummies Guides Rooting Galaxy S4 * Know Your S4 * Update Problems * Knox Security * Bloatware * GPS
ironass is online now  
Last edited by ironass; December 30th, 2011 at 01:44 AM.
Reply With Quote
Old December 30th, 2011, 02:45 AM   #17 (permalink)
Senior Member
 
Sydney99's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 1,653
 
Device(s): Galaxy S4: Danvdh KitKat GE + Philz + KT kernel + NE5 modem
Carrier: Vodafone

Thanks: 499
Thanked 427 Times in 313 Posts
Default

What about a script to remove any voltage control settings??
Sydney99 is offline  
Reply With Quote
Old December 30th, 2011, 04:22 AM   #18 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Quote:
Originally Posted by ironass View Post
Any chance that you could name your v1.1 Kernel Cleaner something like...

XXXKernelCleanV1.1.zip

or something along those lines as your present v1.0 kernel is named GS2CleanV1.0.zip and when I'm in Recovery I have to frantically push the Volume button 20+ times to navigate to it....
That would put it down at the bottom of the list. Suppose you want to press up to it instead? I create a kernel folder, and have 2 or 3 of the good ones (siyah, neak, void) and have the scripts in there also, so there is never much key pressing required.

Quote:
Originally Posted by Sydney99 View Post
What about a script to remove any voltage control settings??
The script clears this anyway, but voltage control creates on install a file called vcremoveboot-CMW.zip which removes the startup script for you.



V1.1 is up. Download here

What this script does:
1. Removes /system/etc/init.d folder (this is where all the device's startup scripts are stored
2. Removes /data/user.log (shows any boot error messages. Deleting ensures the messages you see will be from your current kernel and not any previous
3. Deletes contents of cache partition
4. Deletes contents of dalvik-cache

This does a true wipe of cache and dalvik cache (unlike before, and unlike UKC) then I would do a full CWM backup first just in case, as although it works for me, I wouldnt want the finger pointed to me for buggering up your device. Once your happy it works fine of course, then just dive in next time!

Remember, V1.1 performs a proper clean, so expect at least a 3 minute first boot as cache and dalvik cache gets regenerated on this boot. UKC doesnt take long to boot first time around, as it couldnt have been wiping those areas properly.

Note, all startup scripts are wiped so any siyah specific settings (battery etc) voltage control settings, ROM-specific starup scripts. etc will get wiped and will need to be redone. Custom ROM users may have startup scripts specific to their ROM. If you want to restore these scripts, then use one below according to your ROM. So far, only 2 have been developed, but I can do more if requested.
Restore CheckROM 4 init.d scripts
Restore DelvROM3 init.d scripts

Happy wiping folks.
Hawker is offline  
Last edited by Hawker; December 30th, 2011 at 03:15 PM.
Reply With Quote
The Following 6 Users Say Thank You to Hawker For This Useful Post:
ironass (December 30th, 2011), Kie (January 23rd, 2012), mcarans (December 30th, 2011), Sydney99 (December 30th, 2011), turbohobbit (December 30th, 2011), Twinn (December 30th, 2011)
Old December 30th, 2011, 05:11 AM   #19 (permalink)
Senior Member
 
Sydney99's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 1,653
 
Device(s): Galaxy S4: Danvdh KitKat GE + Philz + KT kernel + NE5 modem
Carrier: Vodafone

Thanks: 499
Thanked 427 Times in 313 Posts
Default

More like 6 minutes for me. Once media scanning etc finished I got a weird skype like whooshing sound effect, never had this before, was that your addition hawker???
Sydney99 is offline  
Reply With Quote
Old December 30th, 2011, 05:18 AM   #20 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

No I dont get that Syd.
All the script does is what I've mentioned above.

How's your device running now tho?
Hawker is offline  
Reply With Quote
sponsored links
Old December 30th, 2011, 05:31 AM   #21 (permalink)
Senior Member
 
Sydney99's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 1,653
 
Device(s): Galaxy S4: Danvdh KitKat GE + Philz + KT kernel + NE5 modem
Carrier: Vodafone

Thanks: 499
Thanked 427 Times in 313 Posts
Default

Silky smooth and seems to work perfectly. Good work old boy! (didn't help with the lulzactive stutter but have resigned myself to this being a quirk of my phone).
Sydney99 is offline  
Last edited by Sydney99; December 30th, 2011 at 05:47 AM.
Reply With Quote
Old December 30th, 2011, 05:45 AM   #22 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Chuffed as a bean old fruit! All the problems you've had with your device, its about time you had some luck butty.

In the future at some point tho mate, it may be worth considering giving your device a factory format. This will wipe EVERYTHING including contacts, messages, sd card data, the whole shebbang, but at least your phone will be in a truely out-of-factory state and gives you a blank sheet to work off (you would have to root again etc etc....). I would remove your external sd card just in case.

Factory reset: dial *2767*3855# ONLY USE AS LAST RESORT. AS SOON AS YOU PRESS THE "#" KEY, THERE'S NO GOING BACK!!!!!
Hawker is offline  
Reply With Quote
The Following User Says Thank You to Hawker For This Useful Post:
Sydney99 (December 30th, 2011)
Old December 30th, 2011, 05:55 AM   #23 (permalink)
Senior Member
 
Sydney99's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 1,653
 
Device(s): Galaxy S4: Danvdh KitKat GE + Philz + KT kernel + NE5 modem
Carrier: Vodafone

Thanks: 499
Thanked 427 Times in 313 Posts
Default

Never noticed the vcremoveboot-CMW.zip before!! but don't need to run this if using your cleaner?
Sydney99 is offline  
Reply With Quote
Old December 30th, 2011, 05:56 AM   #24 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Quote:
Originally Posted by Sydney99 View Post
Never noticed the vcremoveboot-CMW.zip before!! but don't need to run this if using your cleaner?
My script will also remove the voltage control settings.
use the voltage control script to JUST remove its own settings.
Hawker is offline  
Reply With Quote
Old December 30th, 2011, 07:44 AM   #25 (permalink)
Senior Member
 
Twinn's Avatar
 
Join Date: Jul 2011
Location: Ireland
Gender: Male
Posts: 804
 
Device(s): GT-I9100 4.4.4 Rom: AOSP NeatROM v7.8 Kernel: Apolo 7.1 R Modem: MS4
Carrier: Three

Thanks: 970
Thanked 225 Times in 163 Posts
Default

I`ll give it a go tonight (working) so will see i`ll let ya know lads..

Ps. anyone knows what happened to ur m8 Richie101 ? haven`t seen him here for a while... thx for reply
__________________
Device: GT-I9100 4.4.4
Rom: AOSP NeatROM v7.8
Kernel: Apolo 7.1 R
Modem: XXMS4
Twinn is offline  
Reply With Quote
Old December 30th, 2011, 07:47 AM   #26 (permalink)
Senior Member
 
ironass's Avatar
 
Join Date: Aug 2010
Location: Cotswolds, England
Gender: Male
Posts: 8,695
 
Device(s): SGS5 SM-G900F. Rooted. KitKat 4.4.2 NG7 NEAT ROM. Baseband: NG8. KT kernel+PhilZ recovery.
Carrier: Vodafone

Thanks: 1,187
Thanked 3,918 Times in 2,582 Posts
Default

Bravo old boy!

It does exactly what it says on the box... wiped, clean as a whistle.

Will link to it in my, soon to be obsolete, Siyah 2.6.2 - A Dummies Guide to installation & settings

I notice that on the xda, Siyah thread, that gokhanmoral is having to come up with an init.d wipe script and the merits, or otherwise, of the Ultimate Kernel Cleaning Script are currently being discussed.

Thanks hawker, I owe you a lemonade.
ironass is online now  
Reply With Quote
Old December 30th, 2011, 08:00 AM   #27 (permalink)
Senior Member
 
Shotgun84's Avatar
 
Join Date: May 2011
Location: Cambridgeshire, England
Posts: 5,245
 
Device(s): Galaxy S4 GT-I9505 ROM: WanamLite, Kernel: KT-SGS4
Carrier: 3UK

Thanks: 1,613
Thanked 3,037 Times in 1,815 Posts
Default

Quote:
Originally Posted by Twinn View Post

Ps. anyone knows what happened to ur m8 Richie101 ? haven`t seen him here for a while... thx for reply

Yeah haven't seen much of him lately. This is the last thing I remember seeing him post
Siyah Gingerbread kernel (v2.x)
Shotgun84 is offline  
Reply With Quote
The Following User Says Thank You to Shotgun84 For This Useful Post:
Twinn (December 30th, 2011)
Old December 30th, 2011, 08:06 AM   #28 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Personally I don't think the ukc script actually does anything of use unless you have the files it specifically deletes from the init.d folder.
It does a feeble job of wiping cache and dalvik cache as the first boot demonstrates and on top of this, it runs a module cleaning script that is not even bundled in its zip file.

Take your pick as to which one you all use but I know which one I shall be using from now on.
Hawker is offline  
Reply With Quote
The Following User Says Thank You to Hawker For This Useful Post:
ironass (December 30th, 2011)
Old December 30th, 2011, 09:44 AM   #29 (permalink)
Check six!
 
Slug's Avatar
 
Join Date: Aug 2009
Location: Inverness, UK
Gender: Male
Posts: 17,953
 
Device(s): Sony Xperia Z
Carrier: EE

Thanks: 2,752
Thanked 11,424 Times in 5,795 Posts
Send a message via Skype™ to Slug slugbrem@gmail.com
Default

Quote:
Originally Posted by ironass View Post
gokhanmoral is having to come up with an init.d wipe script
I don't know why he's bothering. Anyone using a custom kernel must be rooted, and if rooted can surely access /etc/init.d and delete one flippin' file (01siyah) before rebooting into recovery to flash the new kernel?

Any other scripts will either be user-created or placed there by the ROM, so all bets are off as to whether they or Siyah's settings should/will take precedence.
Slug is offline  
Reply With Quote
The Following User Says Thank You to Slug For This Useful Post:
ironass (December 30th, 2011)
Old December 30th, 2011, 10:06 AM   #30 (permalink)
Senior Member
 
ironass's Avatar
 
Join Date: Aug 2010
Location: Cotswolds, England
Gender: Male
Posts: 8,695
 
Device(s): SGS5 SM-G900F. Rooted. KitKat 4.4.2 NG7 NEAT ROM. Baseband: NG8. KT kernel+PhilZ recovery.
Carrier: Vodafone

Thanks: 1,187
Thanked 3,918 Times in 2,582 Posts
Default

Quote:
Originally Posted by Slug View Post
I don't know why he's bothering. Anyone using a custom kernel must be rooted, and if rooted can surely access /etc/init.d and delete one flippin' file (01siyah) before rebooting into recovery to flash the new kernel?
Never underestimate the human capacity for stupidity!

You just have to look at this years Darwin Awards nominations to prove that:-

Darwin Awards: 2011 Darwin Awards
ironass is online now  
Reply With Quote
The Following User Says Thank You to ironass For This Useful Post:
Twinn (December 30th, 2011)
sponsored links
Old December 30th, 2011, 10:09 AM   #31 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Quote:
Originally Posted by Slug View Post
I don't know why he's bothering. Anyone using a custom kernel must be rooted, and if rooted can surely access /etc/init.d and delete one flippin' file (01siyah) before rebooting into recovery to flash the new kernel?
or you could go the whole hog and run GS2CleanV1.1 script beforehand of course!
Hawker is offline  
Last edited by Hawker; December 30th, 2011 at 10:12 AM.
Reply With Quote
Old December 30th, 2011, 10:50 AM   #32 (permalink)
Senior Member
 
Sydney99's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 1,653
 
Device(s): Galaxy S4: Danvdh KitKat GE + Philz + KT kernel + NE5 modem
Carrier: Vodafone

Thanks: 499
Thanked 427 Times in 313 Posts
Default

Why not offer him yours hawker?
Sydney99 is offline  
Reply With Quote
Old December 30th, 2011, 10:52 AM   #33 (permalink)
Senior Member
 
ironass's Avatar
 
Join Date: Aug 2010
Location: Cotswolds, England
Gender: Male
Posts: 8,695
 
Device(s): SGS5 SM-G900F. Rooted. KitKat 4.4.2 NG7 NEAT ROM. Baseband: NG8. KT kernel+PhilZ recovery.
Carrier: Vodafone

Thanks: 1,187
Thanked 3,918 Times in 2,582 Posts
Default

Quote:
Originally Posted by Sydney99 View Post
Why not offer him yours hawker?
Good idea hawker!

I'll second that.
ironass is online now  
Reply With Quote
Old December 30th, 2011, 11:37 AM   #34 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Quote:
Originally Posted by ironass View Post
Good idea hawker!

I'll second that.
Old age getting the better of you again old man!


I get repeatedly shunned over on xda but if any of you want to put the suggestion forward to gokhan I would be more than willing.
Hawker is offline  
Reply With Quote
Old December 30th, 2011, 12:01 PM   #35 (permalink)
Senior Member
 
ironass's Avatar
 
Join Date: Aug 2010
Location: Cotswolds, England
Gender: Male
Posts: 8,695
 
Device(s): SGS5 SM-G900F. Rooted. KitKat 4.4.2 NG7 NEAT ROM. Baseband: NG8. KT kernel+PhilZ recovery.
Carrier: Vodafone

Thanks: 1,187
Thanked 3,918 Times in 2,582 Posts
Default

Quote:
Originally Posted by hawker View Post
Old age getting the better of you again old man!


I get repeatedly shunned over on xda but if any of you want to put the suggestion forward to gokhan I would be more than willing.
Consider it done old fruit!

The ball's in their park now.
ironass is online now  
Reply With Quote
The Following 2 Users Say Thank You to ironass For This Useful Post:
Hawker (December 30th, 2011), Sydney99 (December 30th, 2011)
Old December 30th, 2011, 01:13 PM   #36 (permalink)
Senior Member
 
Sydney99's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 1,653
 
Device(s): Galaxy S4: Danvdh KitKat GE + Philz + KT kernel + NE5 modem
Carrier: Vodafone

Thanks: 499
Thanked 427 Times in 313 Posts
Default

A pm might be more effective than a generic post
Sydney99 is offline  
Reply With Quote
Old December 30th, 2011, 01:21 PM   #37 (permalink)
Check six!
 
Slug's Avatar
 
Join Date: Aug 2009
Location: Inverness, UK
Gender: Male
Posts: 17,953
 
Device(s): Sony Xperia Z
Carrier: EE

Thanks: 2,752
Thanked 11,424 Times in 5,795 Posts
Send a message via Skype™ to Slug slugbrem@gmail.com
Default

Quote:
Originally Posted by hawker View Post
or you could go the whole hog and run GS2CleanV1.1 script beforehand of course!
Erm no, because that would wipe out my DlevROM-specific scripts.
Slug is offline  
Reply With Quote
Old December 30th, 2011, 01:50 PM   #38 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Quote:
Originally Posted by Slug View Post
Erm no, because that would wipe out my DlevROM-specific scripts.
Then I shall do you a dlevrom init.d restore flashable zip then sir!
Hawker is offline  
Reply With Quote
Old December 30th, 2011, 01:54 PM   #39 (permalink)
Check six!
 
Slug's Avatar
 
Join Date: Aug 2009
Location: Inverness, UK
Gender: Male
Posts: 17,953
 
Device(s): Sony Xperia Z
Carrier: EE

Thanks: 2,752
Thanked 11,424 Times in 5,795 Posts
Send a message via Skype™ to Slug slugbrem@gmail.com
Default

Quote:
Originally Posted by hawker View Post
Then I shall do you a dlevrom init.d restore flashable zip then sir!
Thanks but there's no need, as I'll have to go through everything once v2.6.3 appears and work out what's duplicated in the new startup scripts. My plan is to (eventually) have everything non-Siyah in the one script, but the bloomin' goalposts keep moving!
Slug is offline  
Reply With Quote
Old December 30th, 2011, 03:13 PM   #40 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

I did one for you (and anyone else on DlevROM3) anyway butty, just in case. Might come in handy in the future for you.

Restore DelvROM3 init.d scripts
Hawker is offline  
Last edited by Hawker; December 30th, 2011 at 03:16 PM.
Reply With Quote
sponsored links
Old December 30th, 2011, 04:01 PM   #41 (permalink)
Senior Member
 
ironass's Avatar
 
Join Date: Aug 2010
Location: Cotswolds, England
Gender: Male
Posts: 8,695
 
Device(s): SGS5 SM-G900F. Rooted. KitKat 4.4.2 NG7 NEAT ROM. Baseband: NG8. KT kernel+PhilZ recovery.
Carrier: Vodafone

Thanks: 1,187
Thanked 3,918 Times in 2,582 Posts
Default

Quote:
Originally Posted by Sydney99 View Post
A pm might be more effective than a generic post


Did that as well.
ironass is online now  
Reply With Quote
Old December 30th, 2011, 04:37 PM   #42 (permalink)
Senior Member
 
Sydney99's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 1,653
 
Device(s): Galaxy S4: Danvdh KitKat GE + Philz + KT kernel + NE5 modem
Carrier: Vodafone

Thanks: 499
Thanked 427 Times in 313 Posts
Default

Quote:
Originally Posted by Slug View Post
Thanks but there's no need, as I'll have to go through everything once v2.6.3 appears and work out what's duplicated in the new startup scripts. My plan is to (eventually) have everything non-Siyah in the one script, but the bloomin' goalposts keep moving!

Both steslatt and slug seem to be concerned about losing what's in their roms start up scripts. What's the issue with deleting these files?
Sydney99 is offline  
Reply With Quote
Old December 30th, 2011, 04:51 PM   #43 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

None really. Most are just tweaks. But it depends on the ROM, as I can't say categorically as I've not seen every rom's startup scripts.
My handset on checkrom 4 runs just fine with no startup scripts at all.
If you want to keep them then just flash the associated ROM file I created afterwards.

I've not been on a stock ROM for a long time. I would be interested to hear off people on a stock ROM as to what startup scripts, if any are present. I've a feeling the stock kernel has no init.d support.
Hawker is offline  
Last edited by Hawker; December 30th, 2011 at 04:56 PM.
Reply With Quote
Old December 31st, 2011, 04:29 AM   #44 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

Just to let you all know, my kernel cleaner script does not seem to want to play with the latest Siyah 2.6.3. This version of Siyah (or CWM) does not seem to execute certain commands as expected (eg. getting the firmware version). It is not clearing init.d folder.

I'm working in it and will keep you posted....
Hawker is offline  
Last edited by Hawker; December 31st, 2011 at 05:02 AM.
Reply With Quote
Old December 31st, 2011, 05:20 AM   #45 (permalink)
Senior Member
 
Shotgun84's Avatar
 
Join Date: May 2011
Location: Cambridgeshire, England
Posts: 5,245
 
Device(s): Galaxy S4 GT-I9505 ROM: WanamLite, Kernel: KT-SGS4
Carrier: 3UK

Thanks: 1,613
Thanked 3,037 Times in 1,815 Posts
Default

I was wondering if all the files in /customkernel/property are relevant to the kernel you are running. I'm wondering as the file customkernel.cwm.version says cwm is 5.0.2.7 even though the new siyah has a different cwm. Its confused me a bit as all the dates of the files match up. Anyway if some of these are old files is it possible for your script to remove these?
Shotgun84 is offline  
Reply With Quote
Old December 31st, 2011, 05:52 AM   #46 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

I'll look into it butty.

Issues with latest Siyah now fixed. I've not updated the version number, as the script doesnt do anything new.

GS2CleanV1.1
Hawker is offline  
Reply With Quote
The Following User Says Thank You to Hawker For This Useful Post:
ironass (December 31st, 2011)
Old January 1st, 2012, 02:32 PM   #47 (permalink)
Senior Member
 
Join Date: Aug 2010
Location: England
Posts: 662
 
Device(s): Samsung Galaxy S II - GONE iPhone - GONE (thank God) Samsung Note 3 Asus Eee Transformer
Carrier: Virgin Mobile

Thanks: 108
Thanked 19 Times in 18 Posts
Default

I've just flashed this before flashing NEAK. It took no time at all to reboot - it was quicker than usual if anything. Cheers dude!
__________________
"Last one in's an officer... No offence, Sir."
turbohobbit is offline  
Reply With Quote
Old January 5th, 2012, 10:38 AM   #48 (permalink)
Senior Member
Thread Author (OP)
 
Hawker's Avatar
 
Join Date: Aug 2011
Location: UK
Posts: 3,929
 
Device(s): GT-I9505
Carrier: EE UK (4G)

Thanks: 558
Thanked 1,819 Times in 1,121 Posts
Default

V1.2 now up
Does everything v1.1 does, but it recreates the init.d folder. This is handy for NEAK 1.2 kernel users who want to activate governors/tweaks from the NEAK-modified CWM Recovery.

GS2CleanV1.2
Hawker is offline  
Last edited by Hawker; January 5th, 2012 at 10:53 AM.
Reply With Quote
The Following 3 Users Say Thank You to Hawker For This Useful Post:
ironass (January 5th, 2012), turbohobbit (January 5th, 2012), Twinn (January 7th, 2012)
Old January 5th, 2012, 10:47 AM   #49 (permalink)
Senior Member
 
Join Date: Aug 2010
Location: England
Posts: 662
 
Device(s): Samsung Galaxy S II - GONE iPhone - GONE (thank God) Samsung Note 3 Asus Eee Transformer
Carrier: Virgin Mobile

Thanks: 108
Thanked 19 Times in 18 Posts
Default

Tasty, cheers mate.
turbohobbit is offline  
Reply With Quote
Old January 7th, 2012, 11:42 AM   #50 (permalink)
Senior Member
 
Twinn's Avatar
 
Join Date: Jul 2011
Location: Ireland
Gender: Male
Posts: 804
 
Device(s): GT-I9100 4.4.4 Rom: AOSP NeatROM v7.8 Kernel: Apolo 7.1 R Modem: MS4
Carrier: Three

Thanks: 970
Thanked 225 Times in 163 Posts
Default

does the job cheers!
Twinn is offline  
Last edited by Twinn; January 7th, 2012 at 11:46 AM.
Reply With Quote
Reply
Tags
my scripts


Go Back   Android Forums > Android Phones > Samsung Galaxy S2 (International) > Galaxy S2 (International) - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://androidforums.com/galaxy-s2-international-all-things-root/469630-gs2kernelwipe-script.html
Posted By For Type Date
[KERNEL TESTS][ICS][4.0.4]HyDrOG3N-ICS [SIYAH][N.E.A.K][THORAVUKK][NETCHIP] - xda-developers This thread Refback April 20th, 2012 03:22 PM
[ROM][ICS][10/04][4.0.4 NOW!]HyDrOG3N-ICS 10.04[1080P][OVER9000!][Fix'ed] - Page 887 - xda-developers This thread Refback April 11th, 2012 04:23 AM


All times are GMT -5. The time now is 03:54 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.