GS2KernelWipe Script


  1. Hawker

    Hawker Well-Known Member


    Advertisement
    Calvo1, THE RED BLUR, Pulse8 and 17 others like this.
  2. Shotgun84

    Shotgun84 Well-Known Member

    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?
  3. Kie

    Kie Well-Known Member

    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.
  4. Sydney99

    Sydney99 Well-Known Member


    What a clever chappy. Don't go disappearing to xda now will you
  5. Hawker

    Hawker Well-Known Member

    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 :D
  6. steslatt

    steslatt Well-Known Member

    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.
    Hawker likes this.
  7. Hawker

    Hawker Well-Known Member

    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.
  8. steslatt

    steslatt Well-Known Member

    Check the rom zip file, they are in there.
  9. Sydney99

    Sydney99 Well-Known Member

    Are they important?
  10. Hawker

    Hawker Well-Known Member

    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
  11. Hawker

    Hawker Well-Known Member

    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
    ironass and Sydney99 like this.
  12. Hawker

    Hawker Well-Known Member

    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
    :)
  13. Hawker

    Hawker Well-Known Member

    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.
    Sydney99, ironass and Kie like this.
  14. Kie

    Kie Well-Known Member

    Looking forward to it mate! Will give it a shot with 2.6.3 when it arrives :)
  15. Sydney99

    Sydney99 Well-Known Member

    No tempting us with a beta version then?;)
  16. ironass

    ironass Well-Known Member

    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! :rolleyes:


    (just to hedge your bets... you could do a S99_KernelCleanV1.1.zip as well.)
  17. Sydney99

    Sydney99 Well-Known Member

    What about a script to remove any voltage control settings??
  18. Hawker

    Hawker Well-Known Member

    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.

    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.
    :)
    Kie, turbohobbit, Twinn and 3 others like this.
  19. Sydney99

    Sydney99 Well-Known Member

    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???
  20. Hawker

    Hawker Well-Known Member

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

    How's your device running now tho?
  21. Sydney99

    Sydney99 Well-Known Member

    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).
  22. Hawker

    Hawker Well-Known Member

    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!!!!!
    Sydney99 likes this.
  23. Sydney99

    Sydney99 Well-Known Member

    Never noticed the vcremoveboot-CMW.zip before!! but don't need to run this if using your cleaner?
  24. Hawker

    Hawker Well-Known Member

    My script will also remove the voltage control settings.
    use the voltage control script to JUST remove its own settings.
  25. Twinn

    Twinn Well-Known Member

    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

Share This Page