You are on page 1of 195

#!

/system/bin/sh # # V6 SuperCharger Update 9 RC12 by -=zeppelinrox=# # When using scripting tricks, ideas, or code snippets from here, please give pr oper credit. # There are many things may look simple, but actually took a lot of time, trial, and error to get perfected. # # This script can be used freely and can even be modified for PERSONAL USE ONLY. # It can be freely incorporated into ROMs - provided that proper credit is given WITH a link back to the XDA SuperCharger thread. # If you want to share it or make a thread about it, just provide a link to the main thread. # - This ensures that users will always be getting the latest versions. # Prohibited: Any modification (excluding personal use), repackaging, redistribu tion, or mirrors of my work are NOT PERMITTED. # Thanks, zeppelinrox. # # V6 SuperCharger, OOM Grouping & Priority Fixes created by zeppelinrox. # SuperMinFree Calculator & MFK Calculator (for min_free_kbytes) created by zepp elinrox also ;^] # Entropy-ness Enlarger (sysctl tweak for kernel.random.read_wakeup_threshold th at keeps entropy_avail full) discovered by zeppelinrox. # # See http://goo.gl/qM6yR - SuperCharger thread at XDA # See http://goo.gl/IvGL1 - Ultimatic Jar Patcher Tools thread at XDA for more G oodness and MultiTasking! # ie. Patch services.jar for ICS and above to get 100% SuperCharged with "Jelly ISCream" # Patch services.jar for ALL ROMS (Froyo and above ) and get "Maximum MultiTasking Mods" # Patch services.jar for Sense 4 and above ROMS (N ot needed for Sense 3.6 and below) and get a "Non-Sense App Limit" # # See http://goo.gl/krtf9 - Linux Memory Consumption - Nice article! # See http://goo.gl/hFdNO - Memory and SuperCharging Overview, or... "Why 'Free RAM' Is NOT Wasted RAM!" # See http://goo.gl/4w0ba - MFK Calculator Info - explanation for vm.min_free_kb ytes. # See http://goo.gl/P8Bvu - How Entropy-ness Enlarger works. # See http://goo.gl/Zc85j - Possible reasons why it may actually do something :p # # For Debugging: Delete the # at the beginning of the next line and watch the ou tput on the next run! # set -x # if [ ! -d "/data/local/busybox*/xbin" ]; then export PATH=$PATH:/system/xbin:/sb in:/vendor/bin:/system/sbin:/system/bin else export PATH=$PATH:/system/xbin:/sbin:/vendor/bin:/system/sbin:/system/bin:` ls -d /data/local/busybox*/xbin 2>/dev/null` fi 2>/dev/null line================================================= echo "" echo $line echo " NOTE: BUSYBOX v1.16.2 OR HIGHER IS RECOMMENDED!" echo $line sleep 2 mount -o remount,rw /data 2>/dev/null busybox mount -o remount,rw /data 2>/dev/null

mount -o remount,rw / 2>/dev/null mount -o remount,rw rootfs 2>/dev/null busybox mount -o remount,rw / 2>/dev/null busybox mount -o remount,rw rootfs 2>/dev/null if [ -d "/sqlite_stmt_journals" ]; then madesqlitefolder=0 else mkdir /sqlite_stmt_journals; madesqlitefolder=1 fi if [ "`ls $EXTERNAL_STORAGE`" ]; then storage=${EXTERNAL_STORAGE#*mnt} elif [ "`ls $EXTERNAL_STORAGE2`" ]; then storage=${EXTERNAL_STORAGE2#*mnt} elif [ "`ls $USBHOST_STORAGE`" ]; then storage=${USBHOST_STORAGE#*mnt} elif [ "`ls $SECONDARY_STORAGE`" ]; then storage=${SECONDARY_STORAGE#*mnt} elif [ "`ls $PHONE_STORAGE`" ]; then storage=${PHONE_STORAGE#*mnt} else storage="/sdcard" fi 2>/dev/null cat > $storage/!SuperCharger.html <<EOF <br> <br> <i><u><b>The -=V6 SuperCharger=-</b></u> created by -=zeppelinrox=-</i><br> <br> <u><b>Owner's Guide</b></u><br> <br> Hi! I hope that the V6 SuperCharger script is working well for you!<br> <br> <b>Did this file just auto load?</b> If so, there are 3 reasons why this could h appen:<br> 1. You're <u>not</u> 100% SuperCharged and minfrees <u>don't match</u>! If this is the case, <u><b>READ</b></u> this entire help file - <u><b>BEFORE</b></u> ask ing redundant questions!</u><br> 2. You set Wheel Alignment to run on boot but you don't have the zipalign binary installed. Get it by installing the <a href="http://goo.gl/1JPl8">SuperCharger Starter Kit</a>.<br> 3. You set Detailing to run on boot but you don't have the sqlite3 binary instal led. Get it by installing the <a href="http://goo.gl/1JPl8">SuperCharger Starter Kit</a>.<br> <br> Here is some <b><u>Background Info</u></b> in case you're curious...<br> <br> <a href="http://goo.gl/krtf9">Linux Memory Consumption</a> - Nice article!<br> <a href="http://goo.gl/hFdNO">Memory and SuperCharging Overview</a>, or... "Why 'Free RAM' Is NOT Wasted RAM!"<br> <a href="http://goo.gl/4w0ba">MFK Calculator Info</a> - explanation for <b>vm.mi n_free_kbytes</b><br> <a href="http://goo.gl/P8Bvu">Entropy-ness Enlarger Info</a> - explanation for < b>kernel.random.read_wakeup_threshold</b><br> <a href="http://goo.gl/Zc85j">Entropy-ness Enlarger Musings...</a> - Possible re asons why it may actually do something :p<br> <br> <u><b>Patching services.jar/odex for ALL ROMS:</b></u>: It actually has 3 Mods. See the <a href="http://goo.gl/IvGL1">-=Ultimatic Jar Patcher Tools=-</a> thread .<br> Mod 1. "Jelly ISCream" for ICS, Jelly Bean and above. This will SuperCharge Your Home Launcher and ADJ/OOM Priorities!<br> Mod 2. "Maximum MultiTasking Mods" for Froyo and above<br> Mod 3. "Non-Sense App Limit" for Sense 4 and above (Not needed for Sense 3.6 and below).<br> <br> Ok... now be sure to have <a href="http://play.google.com/store/apps/details?id= com.jrummy.busybox.installer">BusyBox</a> installed or else the scripts won't wo rk!<br> Most custom roms should already have a version installed and that usually works

OK.<br> So if you need to, only install <b>BusyBox v1.16.2 or higher!</b><br> Note that some versions above v1.18.2 and below v1.19.1 sometimes give errors so <u>PAY ATTENTION</u> to the script output!<br> Versions above v1.19.0 should be fine though.<br> If all else fails or if you get "<b>applet not found</b>" errors, just grab Busy Box from the <a href="http://goo.gl/qM6yR">V6 SuperCharger Thread!</a><br> Or even better, get the <b>SuperCharger Starter Kit!</b> <br> A nice app for running the script is <a href="http://play.google.com/store/apps/ details?id=os.tools.scriptmanager">Script Manager</a><br> It can even load scripts on boot - on ANY ROM!<br> Plus, it even has WIDGETS!<br> So you can actually put a V6 SuperCharger shortcut on your desktop, launch it, a nd have a quick peek at your current status!<br> <br> But first, you need to set up Script Manager properly!<br> In the "Config" settings, enable "Browse as Root."<br> Then browse to where you saved the V6 SuperCharger script, select it, and in the script's properties box, be sure to select "Run as Root" ie. SuperUser!<br> <b>Do NOT run this file at boot!</b> (You don't want to run the install on every boot, do you?)<br> Run the V6 SuperCharger script, touch the screen to access the soft keyboard, an d enter your choice :)<br> <br> <u><b>Stock ROMs</b></u>: After running the script, have Script Manager load the newly created <b>/data/99SuperCharger.sh</b> on boot<br> In the "Config" settings, be sure that "Browse as Root" is enabled.<br> Press the menu key and then Browser. Navigate up to the root, then click on the "data" folder.<br> Click on 99SuperCharger.sh and select "Script" from the "Open As" menu.<br> In the properties dialogue box, check "Run as root" (SuperUser) and "Run at boot " and "Save".<br> And that's it!<br> Script Manager will load your most recent settings on boot!<br> If you run the script later and with different settings, you don't have to recon figure anything.<br> Script Manager will just load the new /data/99SuperCharger.sh on boot automagica lly ;^]<br> <br> <u><b>Custom ROMs</b></u>: If you have a custom rom that loads /system/etc/init. d boot scripts,<br> You DON'T need to use Script Manager to load a boot script. It will all be autom atic!<br> Also, if you can run boot scripts from the /system/etc/init.d folder, there are other options.<br> For example you can use an app like Terminal Emulator to run the script.<br> <u>PRE-ICS ROMS</u>: If your ROM has the option, <b>DISABLE "Lock Home In Memory .</b> This takes effect immediately.<br> Alternately, <u>if you need to free up extra ram</u>, you can use "Lock Home in Memory" as a "Saftey Lock".<br> ie. Use it to toggle your launcher from "Bulletproof" (0) or Hard To Kill (1) to "Weak" (2) in the event that you want to make the launcher an easy kill and fre e up extra RAM ;)<br> <br> <u><b>If Settings Don't Stick:</b></u> If you have Auto Memory Manager, DISABLE SuperUser permissions and if you have AutoKiller Memory Optimizer, DISABLE the a pply settings at boot option!<br> Also, if you have a <b>Custom ROM</b>, there might be something in the init.d fo lder that interferes with priorities and minfrees.<br>

?" sleep 1 echo " 2.gl/qM6yR">-=V6 SuperCharger Thread=-</a><br> Feedback is Welcome!<br> <br> -=zeppelinrox=.ro / 2>/dev/null busybox mount -o remount." echo "" sleep 2 echo $line fi if [ "$madesqlitefolder" -eq 1 ].ro / 2>/dev/null mount -o remount. Busybox isn't installed.No Supe For You!!" echo $line echo "" sleep 4 echo " If you continue.net/forum/droid-hacks/148268-script-v6-supercharger-htk-bulletproof-la unchers-fix-memory-all-androids.d/*99SuperCharger</b> "at boot" and "as root..@ <a href="http://goo...If you can't find the problem. and there will be a SuperCharger Menu on the main screen! <br> <br> For more SuperCharging help and info. I made a version for <b>Androidiani Open Reco very</b> too :D<br> Just extract the zip to the root of $storage (it contains the directory structur e)."<br> <br> Another option is to make a Script Manager widget for <b>/system/etc/init." echo $line echo "" sleep 1 if [ ! "`which busybox`" ].html">Droid</a> Forums<br> <br> EOF if [ ! -d "/sqlite_stmt_journals" ]. then FAIL=yes echo $line echo "" sleep 2 echo " Big Problem! Can't create a temporary folder!" echo "" sleep 2 echo " Possible reasons:" echo "" sleep 2 echo " 1. then FAIL=yes echo " BusyBox NOT FOUND.." echo "" sleep 4 echo $line echo " ." .. problems can occur.d/*99S uperCharger</b> or <b>/data/99SuperCharger.. then rm -r /sqlite_stmt_journals.. fi 2>/dev/nu ll mount -o remount. Not running as root..<br> <br> For those with a <b>Milestone</b>.gl/qM6yR">XDA</a> & <a href="http://www...?" sleep 1 echo " 3.sh</b> on your homescreen and simply launch it after each reboot.<br> See the <a href="http://goo.ro rootfs 2>/dev/null echo " Test Driving Your Android Device. Busybox can't mount as r/w for some reason..dr oidforums. a quick fix is to have Script Manager run <b>/sys tem/etc/init.. load AOR.ro rootfs 2>/dev/null busybox mount -o remount.

?" echo "" sleep 2 echo -n " Enter Y for Yes..... echo " WARNING: head applet NOT FOUND. sleep 2.." echo "" sleep 4 echo " Get BusyBox from the V6 SuperCharger Thread!" echo "" echo $line echo "" sleep 4 su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start http://goo.." echo "" exit 69.. then badbb=yes. echo " WARNING: awk applet NOT F OUND.. sleep 2.gl/qM 6yR" echo "" echo $line echo "" sleep 4 echo " I hope that helped! :^)" echo "" sleep 4 echo " Continue anyway. esac else if [ ! "`which awk`" ]." echo "" sleep 4 echo $line echo " It's MISSING basic applets and functions!" echo $line echo "" sleep 4 . okay. then FAIL=yes echo "" echo " Your BusyBox is an EPIC FAIL.. fi if [ ! "`which sed`" ]." echo "" echo $line echo "" sleep 2.Please install BusyBox and try again. fi if [ "$badbb" ]. Bad BusyBox!". echo $line. echo $line... then badbb=yes... then badbb=yes...echo "" sleep 4 echo " . echo " WARNING: pgrep applet N OT FOUND. echo " WARNING: sed applet NOT F OUND... sleep 2....... Bad BusyBox!".. Bad BusyBox!". echo $line... Bad BusyBox!". echo $line.. any key for No: " read bbnotfound echo "" case $bbnotfound in y|Y)echo " uh. *)echo " Buh Bye.. :p" echo "" sleep 4 echo " It's version does NOT even matter because. sleep 2. fi if [ ! "`which head`" ].. right. fi if [ ! "`which pgrep`" ].and even bootloops!" echo "" sleep 4 echo " .. then badbb=yes.

0f %.3000.0f %.. $6/256}'` if [ "$test2" ]." echo "" sleep 4 echo " . $3/256.. $5/256.6000 | awk -F ....0f %.5000.. '{printf "%." echo "" sleep 4 echo $line echo " . problems can occur. $4/256. $2/256.echo " If you continue.. pgrep test passe d too!" else FAIL=yes echo " BusyBox has holes in it..0f %..gl/qM6yR" echo "" echo $line echo "" sleep 4 echo " I hope that helped! :^)" echo "" sleep 4 fi test1=`busybox | head -n 1 | awk '{print $1}'` test2=`busybox | head -n 1 | awk '{print $2}'` test3=`echo 1000.pgrep test FAILED!" echo $line fi else FAIL=yes echo " There was an AWK error.0f\n". $1/256. then echo " BusyBox $test2 Found!" else echo " ERROR! Can't determine BusyBox version!"..0f %." echo "" sleep 4 echo " .4000..Please reinstall BusyBox and try again.. FAIL=yes fi echo "" sleep 1 if [ "$test1" = "BusyBox" ] && [ "$test3" = "4 8 12 16 20 23" ]..and even bootloops!" echo "" sleep 4 echo " .2000.. AWK test passed!" echo "" sleep 1 test4=`pgrep ini` if [ "$test4" ].. then echo " Groovy.BulletProof Apps ain't gonna work." echo "" sleep 4 .." echo "" sleep 4 echo " Get BusyBox from the V6 SuperCharger Thread!" echo "" sleep 4 echo $line echo " And DON'T play stupid and ask me what's wrong!!" echo $line echo "" sleep 4 su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start http://g oo.... then echo " AWKing Awesome....

..... id=${id#*=}. then echo $line echo " It can't even do." echo "" echo $line. problems can occur.... *)echo " Buh Bye..echo $line echo " . right..... okay..what the AWK!?" echo $line echo "" sleep 4 if [ "$test3" != "4 8 12 16 20 23" ]..and even bootloops!" echo "" sleep 4 echo " . id=${id%%[\( ]*} if [ "$id" = "0" ] || [ "$id" = "root" ]." echo "" exit 69.Please reinstall BusyBox and try again.... then echo " g as Root/SuperUser!" else Nice! You're Runnin ...gl/qM6yR" echo "" echo $line echo "" sleep 4 echo " I hope that helped! :^)" echo "" sleep 4 echo " Continue anyway." echo "" sleep 4 echo " Get BusyBox from the V6 SuperCharger Thread!" echo "" sleep 4 echo $line echo " And DON'T DARE ask me to support broken shit!!" echo $line echo "" sleep 4 su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start http://g oo.?" echo "" sleep 2 echo -n " Enter Y for Yes." echo "" sleep 4 echo " . esac fi echo "" sleep 1 fi id=$(id). SIMPLE math! LOL WUT!?" echo $line echo "" sleep 4 fi echo " If you continue... any key for No: " read awkerror echo "" case $awkerror in y|Y)echo " uh...

FAIL=yes echo $line echo " You are NOT running this script as root..inten t.$LIMIT4.LIMIT4=10.b=bad_jar..Please Run as Root and try again.html" echo "" echo $line echo "" sleep 4 echo " I hope that helped! :^)" echo "" sleep 4 exit 69 fi echo "" sleep 1 echo $line echo -n " Test Drive Report: " if [ "$FAIL" ].7.rc" initrcpath="/data$initrcpath1" initrcbackup=$initrcpath.unsuper LIMIT1=0.android.2" smrun=`pgrep scriptmanager` bbversion=`busybox | head -n 1 | awk '{print $1.preics=yes.$LIMIT3.LIMIT6=15 newscadj="$LIMIT1.jb=0." echo $line echo "" sleep 4 echo $line echo " .ram1=9600 .action.$2}'` ram=$((`free | awk '{ print $2 }' | sed -n 2p`/1024)) opt=0...memory=c.LIMIT3=6.5..browser/.ran=0.14 .3. then echo "FAIL!" else echo "PASS!" fi echo $line echo "" sleep 2 if [ "`busybox ps -w`" ]. then w=" -w".oldscadj1="0.BrowserActivity -d file://$storage/!SuperC harger.oomstick=0.$LIMIT2.." echo "" sleep 4 echo " Loading Owner's Guide.$LIMIT6".minfrees=0 heapsize=$(($ram*16/100)) remainder=$(($heapsize%2)) heapsize=$(($heapsize+$remainder)) if [ "$ram" -lt 512 ].gb=0.a=already_modified.$LIMIT5.LIMIT2=3..OOMs=0.LIMIT5=12.No SuperUser For You!!" echo $line echo "" sleep 4 echo " . then sdtweak=1024 else sdtweak=2048 fi TMP_DIR="$storage/V6_SuperCharger/temp" initrcpath1="/init..VIEW -n com.." echo "" echo $line echo "" sleep 4 su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start -a android.ADJs=0. fi 2>/dev/null animspeed="busybox sleep 0..

*import*. '{print $4}' /data/V6_SuperCharger/SuperChargerOptions` launcheradj=`awk -F .15" minfreefile="/sys/module/lowmemorykiller/parameters/minfree" if [ -f "/sys/module/lowmemorykiller/parameters/adj" ].oldscadj3="0.15". then cp -fr /data/V6_SuperCharger/SuperChargerMinfree /data/V6_SuperCharger/S uperChargerMinfreeOld scminfreeold=`cat /data/V6_SuperCharger/SuperChargerMinfreeOld` fi mount -o remount.4.rw $(busybox mount | grep system | awk '{print $1. then mkdir /data/V6_SuperCharger.4.rw / 2>/dev/null mount -o remount.2.rw /system 2>/dev/null busybox mount -o remount.$3}' | sed -n 1p) 2>/dev/null if [ -f "/data/V6_SuperCharger/SuperChargerOptions" ]. then if [ ! -f "$rc" ].ro / 2>/dev/null busybox mount -o remount.rw / 2>/dev/null busybox mount -o remount. do if [ "`echo $rc | grep -Ev "goldfish|ueventd"`" ] && [ ! "`echo $allrcpa ths | grep $rc`" ]. '{print $3}' /data/V6_SuperCharger/SuperChargerOptio ns` initrc=`awk -F .15".14. fi fi done mount -o remount. then adjfile="/sys/modul e/lowmemorykiller/parameters/adj" elif [ -f "/data/V6_SuperCharger/SuperChargerAdj" ].ro /system 2>/dev/null busybox mount -o remount.scamadj2="0. then oom_adj="oom_adj" elif [ -f "/proc/1/oom_score_adj" ].14.rw rootfs 2>/dev/null mount -o remount.12. then rcpaths="$rcpaths $rc".10. then mkdir $storage/V6_SuperCharger.oldscadj2="0. then adjfile="/data/V6_Supe rCharger/SuperChargerAdj" fi if [ -f "/proc/1/oom_adj" ].ro $(busybox mount | grep system | awk '{print $1.rw /system 2>/dev/null busybox mount -o remount.scamadj1="0.1.3. '{print $5}' /data/V6_SuperCharger/SuperChargerOpt ions` panicmode=`awk -F . '{print $1}' /data/V6_SuperCharger/SuperChargerOptions` buildprop=`awk -F .14 .7.7.rc"`.8.$3}' | sed -n 1p) 2>/dev/null if [ ! -d "/data/V6_SuperCharger" ].unsuper fi chown 0. '{print $6}' /data/V6_SuperCharger/SuperChargerOptio ns` .0 $rc.2. then echo "on early-boot" > $rc echo "on boot" > $rc touch $rc.6.4.14.15".. then speed=`awk -F .ro / 2>/dev/null mount -o remount.2.rw rootfs 2>/dev/null busybox mount -o remount.oldscadj4="0.ro rootfs 2>/dev/null busybox mount -o remount.ro /system 2>/dev/null busybox mount -o remount. chmod 644 $rc allrcpaths="$allrcpaths $rc" if [ "`grep -ls "on boot" $rc`" ]. '{print $2}' /data/V6_SuperCharger/SuperChargerOptio ns` animation=`awk -F .15". then oom_adj="oom_score_adj" fi if [ -f "/data/V6_SuperCharger/SuperChargerMinfree" ].6.5.ro rootfs 2>/dev/null mount -o remount.//'` `busyb ox find /system -iname "*.15". fi if [ ! -d "$storage/V6_SuperCharger" ]. fi for rc in `grep import $initrcpath1 | grep -v "#" | sed 's/.

echo "".echo $line.echo $line.echo " || // # #" .echo " || // #####".echo "".echo "".echo "".echo $line. then missingoptions=yes.echo "".echo "".echo "". echo "".echo "".echo " |/ #####".echo "". echo " |/ #####".echo " || // #".echo "".echo "".echo "".echo "".echo " || // #####".$animspeed clear.echo "".echo "".echo " | / # #".echo " || // # ".echo "".echo "".echo " | / # #".fixalign=`awk -F .echo "". fi if [ ! "$tc3g" ].echo " || // #".echo "".$animspeed clear.echo "".echo $line.echo " || // #####".echo " |/ #####".echo $line.echo "". '{print $8}' /data/V6_SuperCharger/SuperChargerOption s` fixemissions=`awk -F .echo "".echo "".echo "" .echo "".echo " ||// # #" .echo "".echo "".echo $line.echo " |/ #####".echo " || // #####".$animspeed clear.echo "".echo "".$animspeed clear.echo "".$animspeed clear.echo "". echo "".echo "".echo " | / # #".echo $line.echo " |/ #####".echo "".echo "".echo " | / # #".echo "" .echo $line.echo "". '{print $11}' /data/V6_SuperCharger/SuperCharge rOptions` miscsd=`awk -F .echo " || // #####".echo "".sh | sed 's/flushOmaticHours=//'` 2>/dev/null sleep="sleep $speed" if [ "$buildprop" -eq 1 ]. '{print $10}' /data/V6_SuperCharger/SuperChargerOpti ons` detailinterval=`awk -F .echo "".echo " || // # #".echo "".echo " ||// # #".echo $line. sleep="sleep 2" fi if [ ! "$animation" ] || [ "$animation" -eq 1 ].echo "".echo "".echo "" .echo " || // #####".$animspeed clear. '{print $9}' /data/V6_SuperCharger/SuperChargerOp tions` detailing=`awk -F .echo "".echo "".ec ho "".echo "".echo $line.ec ho " ||// # #".sleep 1 clear.prop" fi if [ ! "$detailinterval" ] || [ "`echo $detailinterval | grep "[^0-9]"`" ] || [ "$detailinterval" -gt 9 ].echo "".echo "".echo "". echo "". '{print $12}' /data/V6_SuperCharger/SuperChargerOptions ` tc3g=`awk -F .echo "".echo " |/ #####".echo " | / # #".echo .echo "".echo $line.echo "". '{print $7}' /data/V6_SuperCharger/SuperChargerOption s` zepalign=`awk -F .$animspeed clear.echo $line.echo " ||// # #".echo $line. echo "".echo $line.echo $line.echo "".echo "". then clear.echo "".$animspeed clear.echo " || // # -=SUPERCHARGER=-".echo "".echo "". then prop="/system/build.echo "".echo "".echo " || // # #".$animspeed.echo " || // #####".echo "".echo "".echo " | / # #". '{print $13}' /data/V6_SuperCharger/SuperChargerOptions` flushOmaticHours=`grep "^flushOmaticHours=" /data/V6_SuperCharger/!FastE ngineFlush.echo "".echo "". fi else firstgear=yes.echo "". then detailinterval=3.echo $line.echo "". autoshowcalculated=yes.echo "".echo "".echo $line.echo $line.$animspeed clear.echo " ".echo "". fi if [ ! "$flushOmaticHours" ] || [ "`echo $flushOmaticHours | grep "[^0-9 ]"`" ] || [ "$flushOmaticHours" -gt 24 ].echo " |/ #####".echo " | / # #". echo "".echo "".echo "".$animspeed clear.echo "".echo " ||// # #".echo " || // #".echo $line.echo $line.echo "".echo " |/ #####".echo "".echo "".echo "". animation=1.prop" else prop="/data/local.echo $line.echo "".echo " || // #####".echo " |/ #####".echo "".echo " ||// # #".echo " ||// # #".echo " || // #####". then flushOmaticHours=0.echo " | / # #".echo "".$animspeed clear.echo "".echo "".echo $line.echo $line.echo "".echo "".echo " || // # #".echo "".

16." else echo "less than v1.e cho " || // #####".echo $line.and less that v1.echo "".1" ] && [ "$bbversion" \< "BusyBox v1. zoOM.$10}'`" echo "" $sleep if [ "$bbversion" \> "BusyBox v1.18.echo " || // # -=SUPERCHARGER=-".16.2" echo "" sleep 2 echo " .e cho " || // #####".echo " || // # #".$5.18.and you may have issues such as bootloops..echo $line.18.echo " || // # #".echo "".echo "".19.echo " || // #####".echo "".echo $line......".echo " || // # #"..0" ]. echo $line fi echo " NOTE: BUSYBOX v1..if it's COMPLETE!" else echo $line echo -n " WARNING! Your BusyBox is " if [ "$bbversion" \> "BusyBox v1.2" ] && [ "$bbversion" \< "BusyBox v 1.echo " zoOM.echo " ||// # #".$4.0!" echo $line echo "" sleep 2 echo " These versions can cause problems. then echo "greater than v1...echo " | / # # Presented by:"..18.echo $line..".sleep 1 clear.echo " || // ### ##".echo " || // #####".echo "".sleep 1 clear." fi echo "" sleep 2 echo " ..9" ].. echo "".echo "".echo " ||// # #".$7.echo " zOOM..3" ] || [ "$bbversion" \> "BusyBox v1. zOOM.sl eep 1 else clear.echo " | / # # Presented by:".echo $line.echo " |/ #####".echo $line.echo " || // ### ##"." .echo " || // # -=SUPERCHARGER=-". then echo " Touch the screen to bring up soft keyboard" else echo " Try Script Manager..19.echo " |/ #####"....2" echo $line echo "" sleep 2 echo " Some commands may not even work.2 OR HIGHER IS RECOMMENDED!" echo $line echo "" sleep 2 if [ "$smrun" ]..16.echo " | / # # Presented".."".echo " || // # -=SUPERCHARGER=-".echo $line.".$8.echo " ||// # #".which is fi ne .$6...$9. then echo " .echo " zoom. it's easier!" fi echo "" echo $line echo "" $sleep echo " Additional BusyBox Info:" echo "" $sleep echo " $bbversion" echo " `busybox | head -n 1 | awk '{print $3.sleep 1 clear.echo " |/ ##### -=zeppelinrox=-".

PERCEPTIBLE_APP_ADJ`.L.FA=0. adjs7=0 for launchers in `grep set.. do for lpid in `pgrep $l`.xml | sed 's/\/*.acore" ] && [ "$loom_adj" -lt 0 ].build..proceed at your own risk!!" echo "" sleep 2 echo " Get BusyBox from the V6 SuperCharger Thread!" echo "" echo $line echo "" sleep 2 su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start http://goo.process. then jb=1. adjs3=0. do validlauncher=`pgrep -l $launchers | awk '{print $2}' | grep -Ev "/|noti fication|gowidget|downloadservice"` 2>/dev/null if [ "$validlauncher" ] && [ ! "`echo $llist | grep $validlauncher`" ]. then gb=1 fi adjs1=0.gl/qM 6yR" fi echo "" homeadj=`getprop ro.0f\n".. then if [ "$lname" ] && [ "$lname" != "android.process.PA=`getprop ro. then loom_adj=-16 elif [ "$loom_adj" -eq 1000 ]. any key for Yes: " read islauncher echo "" case $islauncher in n|N).*/*.process. $1*17/1000}'` fi if [ "$l" = "android.*\)". then loom_adj=`echo $loom_adj | awk '{p rintf "%.FOREGROUND_APP_ADJ`.prop | sed 's/..HOME_APP_ADJ`.Launcher /d*/system/packages. adjs6=0.preics=. then echo $line echo "" $sleep echo " Erm. then llist="$llist $validlauncher"..acore" ] && [ "$l" = "android.sdk /system/build. then con tinue elif [ ! "$HL" ] || [ "$HL" -gt "$loom_adj" ]. *)continue. fi elif [ "$PA" ].VISIBLE_APP_ADJ` api="`grep ro.*=//' | tr -d '\r'` " if [ "$api" -ge 14 ].* n ame="\(. then loom_adj=15 elif [ "${loom_adj#-}" -gt 20 ]. fi 2>/dev/null done for l in $llist.FA=`getprop ro. do loom_adj=`cat /proc/$lpid/$oom_adj` if [ "$loom_adj" -eq -1000 ].VA=`getprop ro.* //' | sed 's/.echo "" sleep 2 echo " . adjs5=0. esac fi . Is $lname the launcher?" echo "" $sleep echo -n " Enter N for No.xml | grep -E "adwfreak|zeam|tw3|tw4|tw5|nextgen|shell|home|trebuchet|launcher" | sed 's%.*%\1%' | cut -d '"' -f1` adwfreak zeam tw3 tw4 tw5 nextgen shell ho me trebuchet launcher acore. then postics=yes.PA=2 if [ "$api" -ge 16 ].*serId" /d*/system/packages..acore" ].version.*="//'` `grep "^<package.

break. fi if [ "$adj" -eq 5 ]. then adj=15 elif [ "${adj#-}" -gt 20 ]. then hijackedadj=$HL if [ "$adjs1" -eq 1 ]. then adjs3=$(($adjs3+1)). fi if [ "$adj" -eq 3 ].tmp. do if [ -f "/proc/$i/$oom_adj" ]. fi fi fi if [ "$preics" ] && [ "$HL" -gt "$homeadj" ]. then showparlor=.*\///'` break . then serv icesjarpatched=hellzyeah. then ser vicesjarpatched=hellzyeah. then for i in `busybox ps | grep -v "\]$" | awk '{print $1}'`. fi if [ "$adj" -eq 6 ]. then if [ "$adjs7" -gt 0 ] || [ "$adjs5" -gt 0 ] && [ "$adjs6 " -eq 1 ]. then diehard=yes. then hijackedlname=$lname. fi fi done done 2>/dev/null if [ "$postics" ]. then for i in `busybox ps | grep -v "\]$" | awk '{print $1}'`. $1*17/1000}'` fi if [ "$adj" -eq 1 ]. do if [ "`cat /proc/$i/$oom_adj`" -eq 1 ] || [ "`cat /proc/$i/$oom_ adj`" -eq 58 ].0f\n". then showparlor=yes else servicesjarpatched=hellzyeah. then showparlor=yes else servicesjarpatched=hellzyeah. then showparlor=yes elif [ "$adjs7" -gt 0 ] || [ "$adjs6" -gt 0 ] && [ "$adjs5" -eq 0 ]. usedwebapp=yes fi if [ -f "$storage/ultimatic. usedweb app=yes elif [ "$adjs7" -gt 0 ] || [ "$adjs5" -gt 0 ] && [ "$adjs6" -eq 0 ]. then HL=1 lname=`cat /proc/$i/cmdline | sed 's/. fi fi done 2>/dev/null if [ ! "$HL" ]. fi elif [ "$servicesjarpatched" ] && [ "$HL" -gt 2 ]. then adj=`echo $adj | awk '{ printf "%. then HL=6. then showparlor=yes elif [ "$adjs7" -gt 0 ] || [ "$adjs6" -gt 0 ] && [ "$adj s5" -eq 1 ]. usedwebapp=yes fi elif [ "$HL" -eq 1 ]. VA=3 elif [ "$HL" -eq 0 ] || [ "$HL" -eq 2 ] && [ "$adjs1" -eq 0 ]. then hijackedadj=$HL if [ "$homeadj" -eq "$(($FA+1))" ]. then servicesjarpatched=hellzyeah. fi if [ "$HL" -eq 1 ] && [ "$adjs1" -eq 1 ] || [ "$adjs3" -gt 0 ]. then hijackedlname=$lname. then adjs1=$(($adjs1+1)). then adjs7=$(($adjs7+1)). fi if [ "$adj" -eq 7 ]. fi fi if [ "$hijackedlname" ]. VA=3 else VA=1 if [ "$HL" -gt 2 ]. then adjs5=$(($adjs5+1)). then adjs6=$(($adjs6+1)).HL=$loom_adj lname=$l if [ "$preics" ] && [ "$HL" -eq "$homeadj" ] && [ "$HL" -lt "$VA " ] && [ "$HL" -eq "$(($FA+1))" ]. then adj=-16 elif [ "$adj" -eq 1000 ].tmp" ]. rm $storag e/ultimatic. then adj=`cat /proc/$i/$oom_adj` if [ "$adj" -eq -1000 ].

..." echo "" $sleep echo " . then echo " $lname is N OT the Home Launcher!" else echo " $lname is the Home Launcher!" fi echo $line echo "" $sleep if [ "$hijackedadj" ].so it must have gotten killed already!" fi echo "" echo $line echo "" $sleep echo -n " Press The Enter Key... then echo " BUT it may have HIJACKED Home Launcher Status!" echo $line echo "" $sleep echo " Since $hijackedlname.process.acore" ] && [ ! "$diehard" ] | . " echo "" $sleep echo " . then echo ".since launchers often HIDE INSIDE IT...has an ADJ priority of $hijack edadj :P" echo "" else echo " Home Launcher Status may have been HIJACKED!" fi echo $line echo "" $sleep fi echo -n " Verify groupings with the bOOM Stick" if [ "$lname" = "android. then echo $line if [ "$hijackedlname" ].." echo "" $sleep echo " .. then echo $line if [ "$hijackedadj" ] && [ ! "$hijackedlname" ]..so I'm not 100% sure :P" else echo "!" fi else echo $line echo "" $sleep echo " No home launcher detected in memory....fi done 2>/dev/null fi if [ "$lname" ]." echo "" $sleep echo " ... " read enter echo "" echo $line if [ "$preics" ] && [ "$lname" = "android.acore" ] && [ ! "$diehard" ].process....

." echo "" $sleep echo " ... any key for No. Enter Y for Yes..$5/256".".." echo "" $sleep echo -n " Just say \"No\" if you don't know: " read homelocked echo "" case $homelocked in y|Y)HL=$VA echo " WHAT? You need to disable that feature!". esac echo "" echo $line fi if [ ! -f "$storage/V6_SuperCharger/SuperChargerAdj" ]. Nitro Lag Nullifier & 3G Turbo." echo "" $sleep echo $line echo " Run The Re-SuperCharger!!" echo $line echo "" $sleep echo " This lets you restore settings and scripts."... then newsupercharger=woohoo if [ -f "$initrcpath" ]..a Launcher.prop`" ].." echo "" $sleep echo " ..$4/256".. then echo "" $sleep echo " Is Home is \"Locked in Memory\"?" echo "" $sleep echo " If it is. fi if [ -f "$storage/V6_SuperCharger/SuperChargerAdj" ] && [ ! "`grep "SuperCharger " /system/build.." echo "" echo $line echo "" $sleep echo " Your previous V6 SuperCharger Settings are..without overwriting your new system files!" echo "" $sleep echo " You may need to install separately." echo "" $sleep awk -F .$3/256". "..". fi echo "" $sleep echo " Oh wait. then rookie=yes. *)HL=$homeadj echo " Good Stuff!".. Did you flash a new ROM or kernel?" echo "" $sleep echo " I Can Automagically. then rm $initrcpath.$6/256 " MB"}' $storage/V6_SuperCharger/SuperChargerMinfree echo "" $sleep echo " Re-SuperCharge from $storage?" .".... '{print " "$1/256".| [ ! "$HL" ].$2/256".

. meh.." echo "" $sleep echo " ." echo "" $sleep echo " .." if [ "$firstgear" ].Driver Options!" echo "" else echo " Prior Scrolling Speed has been applied .. Die-Hard!!" fi ..." echo "" $sleep echo " ...PROP" else echo "BUILD.PROP" fi echo $line $sleep echo -n " SuperCharged Launcher Option is" if [ "$launcheradj" -eq 0 ]." echo "" $sleep echo " . then echo $line echo "" $sleep echo " Going to load Driver Options instead!" echo "" fi... *)echo " Re-SuperCharging Declined.. then echo " Hard To Kill!" else echo ". then echo " Missing Some NEW Options!!" echo $line echo "" $sleep echo " You need to refresh them so.Driver Options!" echo "" elif [ "$missingoptions" ]. then echo " BulletProof!!" elif [ "$launcheradj" -eq 2 ]..echo "" $sleep echo -n " Enter Y for Yes. then echo -n " Prop file used for SuperCharging .... then echo " Hey Rookie!!" echo $line echo "" $sleep echo " First Time SuperChargers.will make a Pit Stop in.......gonna make a Pit Stop in." if [ "$buildprop" -eq 0 ].. any key for No: " read resuper echo "" echo $line case $resuper in y|Y)echo " Re-SuperCharger will Auto Load!" autoresupercharge=indeed.$speed" echo $line $sleep if [ "$preics" ].. then echo "LOCAL. esac elif [ "$firstgear" ]..

echo $line $sleep fi echo -n " Kernel & Virtual Memory Tweaks" if [ "$panicmode" -eq 3 ].Rock & R oll!" elif [ "$panicmode" -eq 0 ].$flushOmaticHours" hrs fi echo $line $sleep if [ -d "/system/etc/init. kpoops=1. then . echo " are Rock Hard !" elif [ "$panicmode" -eq 2 ]. echo " ala Soft Rock!" fi echo $line $sleep echo -n " Miscellaneous and SD Card Speed Tweaks . then kpanic=0.Disco Da nce!" else kpanic=30.Enabled @ Every .d" ]. echo " ." if [ "$fixalign" -eq 0 ].NO!" else echo " Detailing(Clean Database) Runs Every $detailinterva l Boots!" fi echo $line $sleep if [ "$preics" ]." if [ "$zepalign" -eq 0 ]. kpoops=1." if [ "$tc3g" -eq 0 ]. then echo -n " Fix Alignment (Dual Tool) Runs On Boot ." if [ "$fixemissions" -eq 0 ].OFF!" else echo " Engine Flush-O-Matic . kpoops=0. then kpanic=30. then echo "NO!" else echo "YES!" fi echo $line $sleep echo -n " 3G TurboCharger Enhancement(3GTC Addon). then echo "NO!" else echo "YES!" fi echo $line $sleep echo -n " Wheel Alignment(ZipAlign) Runs On Boot ." if [ "$miscsd" -eq 0 ]. then echo " Engine Flush-O-Matic Mode is Currently . then echo "NO!" else echo "YES!" fi echo $line $sleep echo -n " Fix Emissions (Fixes FCs) Runs On Boot . then echo "NO!" else echo "YES!" fi echo $line $sleep if [ "$flushOmaticHours" -eq 0 ]. then echo "NO!" else echo "YES!" fi echo $line $sleep if [ "$detailing" -eq 0 ]. then kpanic=30. kpoops=0. echo " . then echo " Detailing(Clean Database ) Runs On Boot .

SL6=0 scpercent=0..for greater System Integra tion!" fi echo "" echo $line $sleep fi fi echo "" echo " All settings can be changed in Driver Options!" echo "" $sleep echo $line echo " Note: You can bake $initrcpath into your ROM!" fi 2>/dev/null echo $line echo "" $sleep if [ -f "/data/!!SuperChargerBootLoopMessage.break=0..ca lculatorcharge=0.UnSuperChargerError=0 .MB6=0 SL0=0." echo "" $sleep echo " . then echo "ON!" echo $line echo "" $sleep echo " Go to Driver Options and DISABLE.d/*99SuperCharger. then echo $line echo " DAMMIT.SL3=0.quickcharge=0.. fi echo -n " Press the Enter Key.....MB5=0." echo "" $sleep echo " . A Boot Loop Was Detected!" echo $line echo "" $sleep echo " Do Over! Re-Enabling /init...log fi chmod 777 $minfreefile if [ "$adjfile" ]. do MB0=4. then chmod 777 $adjfile..echo -n " System Integration of $initrcpath1 Setting " if [ "$initrc" -eq 1 ].SL5=0.SL1=0.MB1=0.UnSuperCharged=0.MB2=0. and Come Get Some!! " read getsome while :.log" ]." echo "" echo $line echo "" $sleep rm /data/!!SuperChargerBootLoopMessage.revert=0.SL2=0.newlauncher=0.restore=0.SL4=0...showbuildpropopt=0..MB3=0.MB4=0..if you have root/permission is sues!" else echo "OFF!" echo $line echo "" $sleep echo " Go to Driver Options and ENABLE.ReSuperCharge=0.

100 MB}" echo "7. UnLedded (Multitasking){8. '{print $4} ' $adjfile`. fi done if [ "$opt" -ne 69 ]. '{printf "%.oomadj2=1. fi for rc in $allrcpaths.oomadj6=15 currentadj="$oomadj1. Super UL (Aggressive){8.165.50 MB}" echo " }" echo "==================== 512 HP ====================" echo "5.14. '{print $2}' $adjfile`. Ledded (Balanced){8.85. '{print $ 6}' $adjfile` currentadj=`cat $adjfile` fi ram2=`$low$memory "$0" | awk '{print $1}'` if [ -f "/data/V6_SuperCharger/SuperChargerAdj" ]. then oomadj1=`awk -F .220.$oomadj5. then bpapplist=`cat /data/V6_SuperCharger/BulletProof_Apps_HitList`.75.0f\n".200. fi if [ "`grep "super_service" $rc`" ].240.unsuper"..1.bpservice= currentminfree=`cat $minfreefile` if [ ! "$adjfile" ]. '{printf "%.SuperChargerScriptManagerHelp=0. $4*17/1000}' $a djfile`.vroomverifier=.oomadj2=`awk -F . then echo "". then scservice="scsinstalled".oomadj2=`awk -F . $1*17/1000}' $adjfile`.32 MB}" echo "4. UnLedded (Multitasking){8.70.oomadj4=4.low= w.12. fi echo $line echo " For Help & Info.275}" echo " }" echo $line .90.html" echo $line $sleep busybox echo " \\\\\\\\ T H E V 6 S U P E R C H A R G E R ////" echo " ============================================" busybox echo " \\\\\\\\ Driver's Console ////" echo " ==============================" echo "" echo "1.16.35. then allrcbackups="$allrcbackups $rc.oomadj5=`awk -F . Super 768HP(Aggressive){8.28.15" elif [ "`awk -F .scservice=. then sccminfree=`c at /data/V6_SuperCharger/SuperChargerCustomMinfree`. $5*17/1000}' $adjfile`. $3*17/1000}' $adjfile`.40.0f\n".oomadj3=`awk -F . SuperCharger & Launcher Status{Update 9 RC12}" echo " }" echo "==================== 256 HP ====================" echo "2.50.oomadj5=9.$oomadj4. else $sleep. Super 1000HP(Agressive){8.4.30. '{printf "%.9. fi if [ -f "/data/V6_SuperCharger/SuperChargerCustomMinfree" ]. 75 MB}" echo "6. fi if [ "`grep "bullet_service" $rc`" ].$oomadj3.0f \n".180.30.22. '{printf "%.unsuper" ].currentadj="0. fi if [ -f "/data/V6_SuperCharger/SuperChargerMinfree" ].oomadj5=`awk -F .150.$oomadj2.55.0f\n". then scadj=`cat /data/V6_Sup erCharger/SuperChargerAdj`.SuperChargerHelp=0. then bpservice="bpsinstalled".oomadj4=`awk -F .26. see $storage/!SuperCharger.bpblind=. '{print $3}' $adjfile`.oomadj6=`awk -F .14.12. fi if [ -f "/data/V6_SuperCharger/BulletProof_Apps_HitList" ].$oomadj6" else oomadj1=`awk -F . then oomadj1=0.oom adj6=15.12.24. then scminfree=`cat /dat a/V6_SuperCharger/SuperChargerMinfree`. '{printf "%.14. do if [ -f "$rc.200}" echo "9.28 MB}" echo "3.125 MB}" echo " }" echo "=================== 768+ HP ====================" echo "8. Ledded (Balanced){8. $2*17/1000}' $adjfile`.26. Super UL (Aggressive){8. '{print $5}' $adjfile`.oomadj3=`awk -F .60.oomadj4=`awk -F . '{print $3}' $adjfile`" -gt 15 ].oomadj3=2.0f\n".16. '{print $1}' $adjfile`.2.95.28.

^]" echo $line echo " The Next 4 Sections Are Worth 25% Each!" echo $line fi echo "" echo -n " Launcher is" if [ "$postics" ] && [ ! "$servicesjarpatched" ]. so. Quick V6 Cust-OOMizer " if [ "$sccminfree" ]."$3/256".echo -n "10. status=4 elif [ "$HL" -eq "$VA" ]. status=1 else echo -n " HARD TO KILL=". System Installer {Terminal Usage}" echo "24. then echo ". PowerShifting {Switch Presets FAST!}" echo $line echo "27. Fix Emissions {Fix FCing Errors}" echo "21.. status=2 fi echo -n " SUPERCHARGED" if [ "$ran" -eq 1 ]. OOM Grouping Fixes + Die-Hard Launcher }" echo "13.. SuperClean & ReStart {Wipe Dalvik & Reboot}" echo "33.. Nitro Lag Nullifier {Experimental}" echo $line echo "23. weak. BulletProof Apps {Hit or Miss}" echo "17. then echo " NOT Patched. Eject {Exit}" echo $line busybox echo " \\\\\\\\ The One and ONLY OOM Fixer! ////" echo " ============================================" if [ "$ran" -eq 0 ] && [ ! "$rookie" ]. Wheel Alignment {ZipAlign APKs}" echo "20. OOM Grouping Fixes + Hard To Kill Launcher }" echo "12.. SuperCharge You {Really!}" echo "31.. then echo $sccminfree | awk -F .. weak :(". OOM Grouping Fixes + BulletProof Launcher }" echo $line echo "14. Fix Alignment {ZipAlign & Fix FCs}" echo "22. then echo -n " DIE-HARD! ie. status=4 elif [ "$usedwebapp" ].. scpercent=$(($scpercent+25)) if [ "$HL" -eq "$FA" ]. then echo " So is it working? READ MESSAGES BELOW .. Help Centre {Open XDA SC Thread}" echo "29.jar}" echo "26. status= 3 else oomstick=1. status= 3 elif [ "$HL" -gt "$VA" ].."."$4/256". The bOOM Stick {Verify OOM Groupings}" echo "16. then echo " Patched via WebApp ie. Jelly ISCream Parlor {Install services. Driver Options {Settings}" echo "30. then echo "!" else echo "! $scpercent%" fi ."$2/2 56". s o... '{print "{"$1/256".. ReStart Your Engine {Reboot Instantly}" echo "32. Re-SuperCharger {Restore V6 Settings}" echo "25. Detailing {Vacuum & Reindex SQL DBs}" echo "19. then echo -n " BULLETPROOF =". :("."$5/256". UnSuperCharger {UnDo Everything}" echo $line echo "15. Engine Flush-O-Matic {ReCoupe RAM Booster}" echo "18.. then echo " Locked In Memory ie. Very Weak!".. Owner's Guide {Open !SuperCharger.. Very Weak!".html}" echo "28."$6/256"}"}' else echo " {Create Or Restore!}" fi echo $line echo "11. status=0 elif [ "$HL" -eq "$(($FA+1))" ].

then echo " ." echo "" echo " Apps simply got moved up a slot. then OOMs=1. then ADJs=1...prop" if [ "$ran" -eq 1 ].. you were mislead.prop" ] && [ "`grep "V6 SuperCharger" /data/local..and Home Is NOT \"Locked In Memory\"!" echo " If you thought it was. then echo "" echo " NON-SuperCharger OOM Grouping In Effect $scpercent%" echo "" if [ "$currentadj" = "$scamadj1" ].. then echo " Found \"Stockish\" OOM Grouping.prop`" ]." echo " .." . echo $line fi elif [ "$currentadj" = "$scamadj2" ]. then echo "ARE NOT Patched In!" echo " Select The \"Jelly ISCream Parlor\" Option!" elif [ "`grep "V6 SuperCharger" /system/build..prop`" ]. then echo "!" else echo "! $scpercent%" fi else echo "NOT Found!" fi echo $line if [ "$currentadj" = "$newscadj" ] || [ "$currentadj" = "$oldscadj1" ] || [ "$c urrentadj" = "$oldscadj2" ] || [ "$currentadj" = "$oldscadj3" ] || [ "$currentad j" = "$oldscadj4" ] || [ "$currentadj" = "$scamadj1" ].. then echo " OOM Grouping Fixe s ARE In Effect! $scpercent%".. scpercent=$(($scpercent+25)) echo -n "ARE Patched In" if [ "$ran" -eq 1 ]. scpercent=$ (($scpercent+25)) if [ "$currentadj" != "$newscadj" ]. scpercent= $(($scpercent+25)) echo -n "in build... then echo "!" else echo "! $scpercent%" fi elif [ -f "/data/local.which basically does nothing :P" echo $line fi if [ "$ran" -eq 1 ]. then ADJs=1..fi echo "" echo $line sleep 2 echo -n " SuperCharger ADJ Entries " if [ "$servicesjarpatched" ]. then scpercent=$(($scpercent+25)) else if [ "$showparlor" ] || [ "$usedwebapp" ] && [ "$postics" ]. then ADJs=1. then echo "!" else echo "! $scpercent%" fi elif [ "$postics" ].so the minfrees become less aggressive!" echo "" echo $line echo " You Got SCAMMED!" fi echo $line elif [ ! "$scadj" ] && [ "$ran" -eq 0 ].prop" if [ "$ran" -eq 1 ]." echo " . scpercent=$(($scpercent+25)) echo -n "in local... then echo "" echo " SuperCharged Launcher is NOT in effect.

then echo "" echo " SuperCharged Launcher Is NOT In Effect!" echo " You may need to use the build. fi if [ "$scminfree" ] && [ "$currentminfree" != "$scminfree" ].... then echo "". echo $line.. then minf rees=1. then echo " SuperCharger Minfrees NOT FOUND! Run 2 .." echo " Select \"Owner's Guide\" on menu for Repairs!" elif [ "$scadj" ] && [ "$currentadj" = "$scadj" ]." echo " .prop option." echo " Select 2 . then echo "". then echo " $scpercent%" else echo " $scpercent%" fi echo " That means that it's working! .if [ "$showparlor" ]. echo $line .10!" echo $line else echo "". then echo ""..See the XDA Thread for more info.. scpercent=$(($scpercent+25)) echo -n " Current Values MATCH Prior SuperCharge!" if [ "$scpercent" -lt 100 ]. fi if [ "$scadj" ] && [ "$currentadj" != "$scadj" ]. then echo " This ROM WON'T load values from a prop file!" echo " You can do it with a SERVICES.In both ROM and Launcher settings!" elif [ "$preics" ] && [ "$scadj" ] && [ "$oomstick" -eq 0 ] && [ "$build prop" -eq 0 ].JAR patch." elif [ "$scadj" ] && [ "$status" -eq 3 ].. feature. then echo "" echo " OOM Grouping Fixes ARE NOT In Effect!" echo " That means the boot script did NOT run. then echo "" echo " Home Launcher is \"Locked in Memory\"!" echo " You need to DISABLE this shi.)" fi fi if [ ! "$scminfree" ].log" ]. fi if [ "$scminfree" ]. echo $line..12 from the menu NOW to access it!" showbuildpropopt=1 fi if [ "$preics" ] && [ "$scadj" ] && [ "$oomstick" -eq 0 ] && [ "$buildpr op" -eq 0 ] || [ "$showparlor" ] || [ "$usedwebapp" ]. then echo "" echo " OOM Grouping Fixes ARE In Effect! $scpercent%" echo " That means the boot script ran!" else newsupercharger=woohoo fi if [ "$showparlor" ] || [ "$usedwebapp" ] || [ "$scadj" ].." echo " Just pick the \"Jelly ISCream Parlor\" Option!" echo " Note: Automatic Transmission is OUTDATED!" else echo " It was Patched with the OUTDATED WebApp!" echo " Pick the \"Jelly ISCream Parlor\" Option!" fi echo " ... then echo " Current Values DON'T MATCH Prior SuperCharge!" if [ -f "/data/Ran_SuperCharger... then echo " Check /dat a/Ran_SuperCharger for boot info." else echo " The boot script *99SuperCharger did NOT run!" fi echo " Select \"Owner's Guide\" on menu for Repairs!" elif [ "$scminfree" ] && [ "$currentminfree" = "$scminfree" ].

then echo -n " .. $1/256..." echo " . "$4/ 256".1000 HP" calculatedmb="8. then echo $scminfreeold | awk -F . '{print $1/256"."$6/256" MB"}'.256 HP" calculatedmb="8. "$3/256".d support!" echo "" .%."$4*256".."$3/256".. $(($ram*13/100)). $(($ram*19/100))."$2/256"... $(($ram*21/100))" elif [ "$ram" -lt 896 ].." echo "" awk -F ."$5/256". $(($ram*24/100) ). $(($ram*13/100) )." $3/256".%.says:" echo "" echo " Cust-OOMize with $calculatedmb MB!" echo "" echo " Slot 3 Sets Free RAM & Is Your Task Killer!" echo "" else echo " BUT SuperMinFree Calculator Values are set. '{print " Prior V6 Minfrees = "$1/256"."$4/256"."$2/256". $(($ram*17/100))" elif [ "$ram" -lt 640 ].%. 12. $6/256}' if [ "$scminfreeold" ]. then echo " Re-SuperCharger Settings on $storage. "$6/256" MB"}' $storage/V6_SuperCharger/SuperChargerMinfree echo $line fi 2>/dev/null if [ "$allrcpaths" ].%. then echo -n " . $4/256.. $(($ram*11/100)). "$5/256". %."$2*256"."$4/256". $3/256." echo "" echo $line echo " SO THAT'S COOL TOO!" fi echo $line if [ "$currentminfree" != "`cat $storage/V6_SuperCharger/SuperChargerMinfree`" ] && [ "$ran" -eq 0 ].0f. $(($ram*21/100) ).. $(($ram*17/100)).. $(($ram*20/100)). 16.0f. then echo " -=SuperMinFree Calculator=. $(($ram*17/100)).0f. then echo -n " . $(($ram*14/100))" elif [ "$ram" -lt 512 ]. '{print $1*256".since those builds have no init. 14."$6*256}'` calculatedmbnosp=`echo $calculatedminfree | awk -F . $(($ram*26/100))" fi calculatedminfree=`echo $calculatedmb | awk -F . $(($ram*12/100)). $(($ram*13/100)).." if [ "$ram" -lt 256 ]."$5/256". 14. $(($ram*15/100)). 14. $(($ram*17/100) ).512 HP" calculatedmb="8. fi echo $line echo "" echo " You have $ram MB of RAM on your device.1000 HP" calculatedmb="8.0f MB\n". $(($ram*11/100)).. '{printf " Current Minfrees = %. $(($ram*19/100) ).768 HP" calculatedmb="8."$6/256}'` echo " settings are recommended!" echo "" if [ "$currentminfree" != "$calculatedminfree" ]. $2/256. then echo "" echo " STOCK ROMS will benefit most from Services.. $(($ram*19/100))" elif [ "$ram" -lt 768 ].0f.0f. $5/256.."$5*256". $(($ram*15/100)).. then echo -n " . 12.... $(($ram*23/100))" else echo -n " . $(($ram*22/100)).768 HP" calculatedmb="8. then echo -n " . "$2/256".. '{print " "$1/256"...fi echo $currentminfree | awk -F . $(($ram*15/100) )."$3*2 56".

ec ho $line fi done ldone=yes elif [ "`ls /system/etc/init. your ROM wipes service entries on boot.d`" ]. then echo "Installed!" else echo "NOT Installed!" fi else if [ "$minfrees" -eq 0 ]. then for i in `busybox ps$w | grep -i flush | grep -E "_|/"`. ech o $line elif [ "`echo $i | grep init." if [ "$minfrees" -eq 1 ]. then echo " $i".sh" ]. then echo "Installed!" else echo "NOT Installed!" fi echo $line echo -n " BulletProof Apps Service is " if [ "$bpservice" ]. then echo " `ls /system/ etc/init. then echo " Fast Engine Flush is NOT Installed!" elif [ "$flushOmaticHours" -eq 0 ].*etc//'` is Running!". then echo " `echo $i | sed 's/. then echo " BulletProof Apps Script is NOT Installed!" elif [ "`busybox ps$w | grep Bullet | grep Proof`" ]. then echo "" echo $line echo " But the Minfrees Match so it doesn't matter!" fi fi echo $line fi if [ ! -f "`ls /system/etc/init. then for i in `busybox ps$w | grep Bullet`. echo $line fi done echo " Engine Flush-O-Matic is ON @ Every $flushOmaticHours hrs" echo $line ldone=yes else echo " Engine Flush-O-Matic is ON & NOT in RAM!" . then echo " $i".sh" ]. echo $line elif [ "`echo $i | grep data`" ].*etc//'` is NOT Running!" else echo "/data/97BulletProof_Apps. then echo "$i is Running!". echo $l ine elif [ "`echo $i | grep xbin`" ].if [ "$scservice" ] || [ "$bpservice" ] || [ ! "$scminfree" ].d/*BulletProof_Apps*`" ]. then ldone= else echo $line fi if [ ! -f "/system/xbin/flush" ] && [ ! -f "/data/V6_SuperCharger/!FastEngineFl ush. then echo " $i is Runn ing!". then echo " Engine Flush-O-Matic is N OT Enabled!" elif [ "`busybox ps$w | grep -i flush | grep -E "_|/"`" ].d/*BulletProof_Apps*`" ] && [ ! -f "/data/97Bul letProof_Apps. then echo $line. fi echo " Sorry.d/*BulletProof_Apps* | sed 's/. do if [ "`echo $i | grep Effect`" ]. do if [ "`echo $i | grep Effect`" ]. echo $line elif [ "`echo $i | grep data`" ].*SuperCharger\///'` is Running!". then echo " `echo $i | sed ' s/.sh is NOT Running!" fi 2>/dev/null if [ "$ldone" ]. then echo $line echo -n " SuperCharger Service is " if [ "$scservice" ].

. then echo " Lose 25% .put a V6 SuperCharger WIDGET on the desktop!" else echo " Optimized for display with Script Manager.SuperCharged Launcher N OT In Effect". then echo " Lose 25% . fi if [ "$oomstick" -eq 0 ]. then echo "Installed!" else echo "NOT Installed!" fi echo $line if [ `cat /proc/sys/kernel/random/entropy_avail` -gt 1000 ].. then if [ "$ADJs" -eq 0 ].OOM Grouping Fix(adj) NOT I n Effect". then echo " Hey Rookie! SCROLL UP to see the Menu Options!" echo $line elif [ "$ran" -eq 1 ] && [ "$scpercent" -lt 90 ]. then echo " Whoah. Your Entropy-ness is THIS BIG => `cat /proc/sys/kernel/random/entropy_avail`" else echo " Entropy-ness Envy? It is THIS small => `cat /proc/sys/kernel/r andom/entropy_avail`" fi echo $line echo "" if [ "$postics" ]..fi 2>/dev/null if [ "$ldone" ]. select Run as Root & Browse as Root!" echo " But DO NOT run this script at boot!" echo "" echo " For a quick status check.Cached Apps $ramcach ed" echo $line echo " SuperCharger Level: $scpercent% SuperCharged!" echo $line if [ "$scpercent" -eq 0 ] && [ "$rookie" ]. fi if [ "$minfrees" -eq 0 ]." echo "" echo " SM can give you a quick status check.." echo " .Put a V6 SuperCharger WIDGET on the desktop!" echo " .. then ldone= else echo $line fi echo -n " Nitro Lag Nullifier is " if [ "`grep Nullifier /system/build.^]" fi echo "" echo $line ramkbytesfree=`free | awk '{ print $4 }' | sed -n 2p` ramkbytescached=`cat /proc/meminfo | grep Cached | awk '{print $2}' | sed -n 1p ` ramfree=$(($ramkbytesfree/1024)).. then echo " Did it work? READ ABOVE MESSAGES AFTER REBOOT!" echo $line elif [ "$scpercent" -lt 100 ].Try it! .ADJ Entries NOT Found / NOT Patched".ramcached=$(($ramkbytescached/1024))...ramreport edfree=$(($ramfree + $ramcached)) echo " True Free $ramfree MB = \"Free\" $ramreportedfree . then echo " Lag? Disabling Compcache May Help!" else echo " Lag? Disable Lock Home in Memory & Compcache!" fi echo " Also Run Engine Flush Every Few Hours!" echo "" if [ "$smrun" ].. fi if [ "$OOMs" -eq 0 ]. then echo " Lose 25% .prop`" ].SuperCharger Minfrees N .. then echo " Lose 25% ." echo " .. . then echo " In Config.

browser/. then didsomethin g=yes mount -o remount. then echo "" echo " Values DON'T MATCH.. then echo $line. then opt=29.rw /system 2>/dev/null busybox mount -o remount.action.33]: " if [ "$autoresupercharge" ].BrowserActivity -d file://$storage /!SuperCharger. echo $opt elif [ "$postics" ] && [ "$scadj" ] && [ "$showparlor" ]. echo $op t else read opt fi $sleep echo $line busybox echo " \\\\\\\\ V6 SUPERCHARGER ////" echo " =======================" echo "" $sleep if [ "$opt" -gt 1 ] && [ "$opt" -le 29 ] || [ "$opt" -eq 32 ]. echo $opt elif [ "$firstgear" ] || [ "$missingoptions" ].OT In Effect".VIEW -n com. Read The Owner's Guide!" echo "" echo $line echo "" $sleep su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start -a andro id. fi echo $line fi $sleep if [ ! "$didsomething" ] && [ ! "$missingoptions" ] && [ ! "$newsupercharger" ] && [ "$scminfree" ] && [ "$currentminfree" != "$scminfree" ]. echo " OUTDATED Web App Pat ch Is In Effect". then echo "# SuperCharger Installation Marker.prop.html" 2>/dev/null echo "" echo $line fi 2>/dev/null fi echo -n " Please Enter Option [1 . fi if [ ! -d "/data/V6_SuperCharger" ].prop`" ] . then opt=25.. then if [ ! "`grep "SuperCharger Installation" /system/build.android.rw / 2>/dev/null mount -o remount.rw rootfs 2>/dev/null busybox mount -o remount. then mkdir /data/V6_SuperCharger/BulletProof_One_Shots.rw / 2>/dev/null busybox mount -o remount.rw $(busybox mount | grep system | awk '{print $1.intent. then mkdir /data/V6_SuperCh arger.d" ] && [ "`ls /system/etc/init.d" ]. fi if [ "$usedwebapp" ]. echo $opt elif [ "$autoshowcalculated" ] && [ "$currentminfree" != "$calculatedminfree" ] . then opt=24.rw rootfs 2>/dev/null mount -o remount. fi if [ ! -d "/data/V6_SuperCharger/PowerShift_Scripts" ].d/*SuperCharge r*`" ] || [ ! -d "/system/etc/init. then if [ -d "/system/etc/init.rw /system 2>/dev/null busybox mount -o remount. then madesqlitefolder=0 else mkdir /sqlite_stmt_journals." >> /system/build. madesqlitefolder=1 fi if [ "$opt" -ne 14 ]. then mkd ir /data/V6_SuperCharger/PowerShift_Scripts. fi . then opt=10.$3}' | sed -n 1p) 2>/dev/null if [ -d "/sqlite_stmt_journals" ]. fi if [ ! -d "/data/V6_SuperCharger/BulletProof_One_Shots" ].

then echo " 512HP LEDDED MINFREES +" else echo " 512HP LEDDED MINFREES SELECTED!" fi CONFIG="512HP Ledded" MB1=8.MB4=165.MB3=55.MB4=70.MB5=26. fi if [ ! -d "$storage/V6_SuperCharger/temp" ].MB6=100.MB5=60.MB4=28.. then echo " 512HP SUPER UNLEDDED MINFREES +" else echo " 512HP SUPER UNLEDDED MINFREES SELECTED!" fi CONFIG="512HP Super" MB1=8. then mkdir $storage/V6_S uperCharger.. 9) if [ "$preics" ]. then echo " 256HP UNLEDDED MINFREES +" else echo " 256HP UNLEDDED MINFREES SELECTED!" fi CONFIG="256HP UnLedd" MB1=8. 8) if [ "$preics" ].MB2=14. then opt=26 echo $line $sleep echo " WHOA! There's NOT Enough RAM! lulz!" else CONFIG="768HP Super" MB1=8.MB5=85. 4) if [ "$preics" ].MB6=50.. then echo " 1000HP SUPER UNLEDDED MINFREES +" else echo " 1000HP SUPER UNLEDDED MINFREES SELECTED!" fi if [ "$ram" -le 256 ].MB2=12.MB5=35.MB4=30.MB2=12. 2) if [ "$preics" ].MB6=200 fi.MB6=125.. then echo " 256HP LEDDED MINFREES +" else echo " 256HP LEDDED MINFREES SELECTED!" fi CONFIG="256HP Ledded" MB1=8.MB5=180.. fi if [ ! -d "$storage/V6_SuperCharger/BulletProof_One_Shots" ]. 6) if [ "$preics" ]. then mkdir $storage/V6_SuperCharger/PowerShift_Scripts.MB6=32.MB4=50.MB6=28.MB4=24.MB2=12.MB3=75.MB2=14.MB3=26. then echo " 768HP SUPER UNLEDDED MINFREES +" else echo " 768HP SUPER UNLEDDED MINFREES SELECTED!" fi if [ "$ram" -le 256 ]. then echo " 512HP UNLEDDED MINFREES +" else echo " 512HP UNLEDDED MINFREES SELECTED!" fi CONFIG="512HP UnLedd" MB1=8. then mkdir $storage /V6_SuperCharger/temp.MB4=90.MB3=28. 7) if [ "$preics" ].MB3=40. 3) if [ "$preics" ].if [ ! -d "$storage/V6_SuperCharger" ]..MB2=14. then opt=26 echo $line $sleep echo " WHOA! There's NOT Enough RAM! lulz!" . 5) if [ "$preics" ].MB3=22.MB6=75.. then echo " 256HP SUPER UNLEDDED MINFREES +" else echo " 256HP SUPER UNLEDDED MINFREES SELECTED!" fi CONFIG="256HP Super" MB1=8.MB5=95.MB2=16. fi fi fi 2>/dev/null case $opt in 1) echo " V6 SUPERCHARGER AND LAUNCHER STATUS!". th en mkdir $storage/V6_SuperCharger/BulletProof_One_Shots..MB3=150.MB5=30. fi if [ ! -d "$storage/V6_SuperCharger/PowerShift_Scripts" ].

.MB6=`echo $sccminfree | awk -F . "$5/256". '{print $5/256}'`.. any key for No: " read crestore echo "" echo $line case $crestore in y|Y)restore=1 MB1=`echo $sccminfree | awk -F .MB4=220.. %. %. "$6/256" MB"}' echo "" fi if [ "$scminfreeold" ] && [ "$currentminfree" != "$scminfreeold" ]. $2/256. $5/256. "$3/256". '{print $4/256}'`. then echo " CUST-OOMIZER MINFREES +" else echo " CUST-OOMIZER MINFREES SELECTED!" fi CONFIG="Cust-OOMized" echo $line echo "" $sleep echo " Your Current Minfree values are.MB4=`echo $sccminfree | awk -F .. 0f. then $sleep echo " Your Prior Cust-OOMizer values are. "$6/256" MB"}' echo "" fi echo $line if [ "$sccminfree" ] && [ "$currentminfree" != "$sccminfree" ] && [ "$c alculatedminfree" != "$sccminfree" ] && [ ! "$autoshowcalculated" ]. then echo "" $sleep echo " Restore Previous Cust-OOMizer Settings?" echo "" $sleep echo -n " Enter Y for Yes.else CONFIG="1000HP Super" MB1=8. '{print " "$1/256". $1/256.MB6=275 fi. "$4/256". '{print $3/256}'`..MB3=200." echo "" $sleep echo $scminfreeold | awk -F . "$5/256". '{prin .MB3=`echo $sccminfree | awk -F . 10)if [ "$preics" ].. '{print $1/256}'`. '{printf " %. %..0f.MB5=`echo $sccminfree | awk -F . "$4/256"..0f. $4/256.. "$ 2/256".0f MB\n". %.0f. '{print " "$1/256". "$2/256".0f." echo "" $sleep echo " $calculatedmb MB" echo "" if [ "$sccminfree" ]." echo "" $sleep echo $sccminfree | awk -F .MB2 =`echo $sccminfree | awk -F . $3/256. '{print $2/256}'`. "$3/256".MB2=16. $6/256}' echo "" $sleep echo " Your SuperMinFree Calculator values are. %." echo "" $sleep echo $currentminfree | awk -F . the n $sleep echo " Your Prior V6 Minfrees are.MB5=240.

MB3=`echo $scminfreeold | aw k -F .. '{print $2/256}'`. *). '{print $1/256}'`. any key for No: " read prior echo "" echo $line case $prior in y|Y)revert=1 MB1=`echo $scminfreeold | awk -F .MB3=`echo $calculatedmbnosp | awk -F . esac fi if [ "$currentminfree" != "$calculatedminfree" ] && [ "$calculatedminfr ee" != "$scminfree" ] && [ "$restore" -eq 0 ]. '{print $6}'` echo " Cust-OOMizing with SuperMinFree Calculator!". Cust-OOMizer Settings will be Restored!". '{print $5}'`. esac fi 2>/dev/null if [ "$scminfreeold" ] && [ "$currentminfree" != "$scminfreeold" ] && [ "$sccminfree" != "$scminfreeold" ] && [ "$calculatedminfree" != "$scminfreeold" ] && [ "$restore" -eq 0 ] && [ "$calculatorcharge" -eq 0 ] && [ ! "$autoshowcal culated" ]... '{print $4/256}'`. then echo " Well. '{print $6/256}'` echo " Prior V6 Minfrees will be Restored!"..M B2=`echo $scminfreeold | awk -F .MB4=`echo $calculatedmbnosp | awk -F .MB 5=`echo $scminfreeold | awk -F . any key for No: " read calculated echo "" echo $line case $calculated in y|Y)calculatorcharge=1 CONFIG="Calculator" MB1=`echo $calculatedmbnosp | awk -F .t $6/256}'` echo " *). *)if [ "$autoshowcalculated" ]. there are still more options ahead!" fi echo "" $sleep echo -n " Enter Y for Yes. esac fi 2>/dev/null if [ "$currentminfree" != "$sccminfree" ] && [ "$currentminfree" != "$s . '{print $3/256}'`. sheesh!".. '{print $3}'`. '{print $1}'`.. then echo "" $sleep echo " Apply SuperMinFree Calculator Settings?" echo "" $sleep if [ "$autoshowcalculated" ]. '{print $4}'`.MB 5=`echo $calculatedmbnosp | awk -F . '{print $5/256}'`.. come back late r for more options!" else echo " If not.. I tr ied to do you a favour.. then echo "" $sleep echo " Revert to Prior V6 Minfrees?" echo "" $sleep echo -n " Enter Y for Yes.M B2=`echo $calculatedmbnosp | awk -F .MB6=`echo $scminfreeold | awk -F .. then echo " If not.MB4=`echo $scminfreeold | awk -F . '{print $2}'`. fi.MB6=`echo $calculatedmbnosp | awk -F .

then break else echo " Input Error! Try again :p".0f\n". then echo "" $sleep echo " Apply Quick SuperCharge of Current Minfrees?" echo "" $sleep echo " If Yes. '{printf "%. do echo -n " Slot 1: "..read MB2 if [ "$MB2" = "X" ] || [ "$MB2" = "x" ].MB6=`echo $currentminfree | awk -F . any key for No: " read quick echo "" echo $line case $quick in y|Y)quickcharge=1 MB1=`echo $currentminfree | awk -F .sleep 2. '{printf "%." echo "" $sleep echo -n " Enter Y for Yes." echo $line $sleep busybox echo " \\\\\\\\ V6 CUST-OOMIZER ////" echo " =======================" echo "" $sleep echo " Enter your desired lowmemorykiller OOM levels!" echo "" $sleep echo " Slot 3 determines your free RAM the most!!" echo "" $sleep echo " Note: Enter \"X\" to Exit at any time . '{printf "%. $2/256}'`.0f\n".MB4=`echo $curre ntminfree | awk -F .. then break else echo " Input Error! Try again :p". *). then echo " Running Cust-OOMizer.MB2=`echo $currentminfree | awk -F .0f\n". '{printf "%. do echo -n " Slot 2: ".. these become your Cust-OOMizer values.MB 3=`echo $currentminfree | awk -F . esac fi 2>/dev/null if [ "$restore" -eq 0 ] && [ "$calculatorcharge" -eq 0 ] && [ "$quickch arge" -eq 0 ] && [ "$revert" -eq 0 ] && [ ! "$autoshowcalculated" ].0f\n". $4/256}'`..cminfree" ] && [ "$restore" -eq 0 ] && [ "$calculatorcharge" -eq 0 ] && [ "$reve rt" -eq 0 ] && [ ! "$autoshowcalculated" ]. $3/256}'`.^]" echo "" echo $line echo "" $sleep while [ "$break" -eq 0 ]. then break=1 elif [ "$MB2" -gt 0 ] 2>/dev/null.0f\n" . fi done . fi done while [ "$break" -eq 0 ]. '{print f "%.MB5=`echo $currentminfree | aw k -F . $5/256}'`. '{printf "%.0f\n". $6/256}'` echo " Quick Cust-OOMizer Settings will be Saved!".read MB1 if [ "$MB1" = "X" ] || [ "$MB1" = "x" ]. then break=1 elif [ "$MB1" -gt 0 ] 2>/dev/null. $1/256}'`.sleep 2.

. $MB6 MB?" echo $line echo "" $sleep echo -n " Enter N for No.sleep 2.. then break=1 0 ] 2>/dev/null.read MB4 ] || [ "$MB4" = "x" ]. echo -n " if [ "$MB3" = "X" elif [ "$MB3" -gt else echo " Input :p".$launcheradj." echo "" echo " . then launcheradj=2 echo "$speed. esac fi fi if [ "$break" -eq 1 ] || [ "$MB1" -eq 0 ].$initrc. then $sleep echo $line echo " CONFIRM! $MB1. 11)echo " OOM GROUPING FIXES PLUS. then break Error! Try again done echo "" if [ "$break" -eq 0 ]. then break=1 0 ] 2>/dev/null. then break Error! Try again do Slot 4: ".read MB6 ] || [ "$MB6" = "x" ]. $MB3. then break Error! Try again do Slot 6: ". then break Error! Try again do Slot 5: ". $MB5.sleep 2. echo -n " if [ "$MB6" = "X" elif [ "$MB6" -gt else echo " Input :p". any key for Yes: " read custOOM echo "" case $custOOM in n|N)opt=26. *)echo $line echo " Cust-OOMizer Settings Accepted!" . echo -n " if [ "$MB5" = "X" elif [ "$MB5" -gt else echo " Input :p". fi do Slot 3: ".$animation..HARD TO KILL LAUNCHER!" $sleep echo $line echo " This Launcher Is Strong BUT Still Killable" echo $line echo "" $sleep if [ "$gb" -eq 1 ]. echo -n " if [ "$MB4" = "X" elif [ "$MB4" -gt else echo " Input :p".sleep 2.while [ "$break" -eq 0 ].$panicmo . then break=1 0 ] 2>/dev/null. fi done while [ "$break" -eq 0 ]. fi autoshowcalculated=. $MB2.$buildprop. fi done while [ "$break" -eq 0 ]. fi done while [ "$break" -eq 0 ].read MB5 ] || [ "$MB5" = "x" ]. then break=1 0 ] 2>/dev/null. then opt=26...sleep 2..read MB3 ] || [ "$MB3" = "x" ].. $MB4.

" echo "" $sleep echo " .de.. ...$miscsd.jar is already patched.DIE-HARD LAUNCHER!" $sleep echo $line echo " This Launcher Is Stronger and RECOMMENDED!" echo $line echo "" $sleep if [ "$postics" ].$fixalign..." echo "" $sleep echo " ..." echo "" echo " ...and other tweaks!" ...so who cares!" else echo " See The \"Jelly ISCream Par lor\" to change it!" fi else echo " Select The \"Jelly ISCream Parlor\" Option N ext!" fi else opt=26 echo " Sorry.. 12)echo " OOM GROUPING FIXES PLUS." echo "" $sleep echo " .$fixemissions..$detailinterval.. then echo " This CAN'T SuperCharge ADJs on POST-ICS ROMS!" echo "" $sleep echo " It can only apply adj/Grouping Fixes. Hard To Kill Launcher..$detailing..with a Hard To Kill Launch er..and other tweaks!" echo "" $sleep echo $line if [ "$servicesjarpatched" ]...is not available on this ROM. then echo " This CAN'T SuperCharge ADJs on POST-ICS ROMS!" echo "" $sleep echo " It can only apply adj/Grouping Fixes." echo "" $sleep if [ "$HL" -eq 2 ].. then echo " ." echo "" fi fi.." echo "" $sleep echo " ... then echo " Hey your services.$zepalign.$tc3g" > /data/V6_SuperCharger/SuperChargerOptions cp -fr /data/V6_SuperCharger/SuperChargerOptions $storage/V6_Sup erCharger/SuperChargerOptions echo $line echo " Driver Options Updated!" else if [ "$postics" ]....

" echo "" $sleep echo " .. then echo " Hey your services.so who cares!" else echo " See The \"Jelly ISCream Parlor\" to change it!" fi else echo " Select The \"Jelly ISCream Parlor\" Option Next!" fi else launcheradj=1 echo "$speed." echo "" $sleep echo " . 13)echo " OOM GROUPING FIXES PLUS..BULLETPROOF LAUNCHER!" $sleep echo $line echo " This Launcher Is Strongest and UNKILLABLE!" echo $line echo "" $sleep if [ "$postics" ]..echo "" $sleep echo $line if [ "$servicesjarpatched" ].$fixemissions.$animation. then echo " ...$miscsd..$panicmo de....and other tweaks!" echo "" $sleep echo $line if [ "$servicesjarpatched" ]." echo "" $sleep echo " ...$detailing..." echo "" $sleep if [ "$HL" -eq 0 ]..$detailinterval.$launcheradj... then echo " This CAN'T SuperCharge ADJs on POST-ICS ROMS!" echo "" $sleep echo " It can only apply adj/Grouping Fixes.with a BulletProof Launcher.." echo "" echo " ..jar is already patched." echo "" $sleep if [ "$HL" -eq 1 ].jar is already patched.$fixalign..$zepalign..with a Die-Hard Launcher...$buildprop.so who cares!" else echo " See The \"Jelly ISCream Parlor\" to change it!" fi else echo " Select The \"Jelly ISCream Parlor\" Option Next!" fi .. then echo " ..$initrc.$tc3g" > /data/V6_SuperCharger/SuperChargerOptions cp -fr /data/V6_SuperCharger/SuperChargerOptions $storage/V6_Sup erCharger/SuperChargerOptions echo $line echo " Driver Options Updated!" fi.. then echo " Hey your services.

$buildprop.$launcherad j.$detailinterval..$panicmode.$detailing..." echo "" $sleep echo " . erm..$tc3g" > /data/V6_SuperCharger/SuperChargerOptions cp -fr /data/V6_SuperCharger/SuperChargerOptions $stor age/V6_SuperCharger/SuperChargerOptions echo " Driver Options Updated!" echo $line echo "" $sleep echo $line echo " Break Back Button.)" echo "" $sleep echo $line echo " Note 1: This is NOT for Gamers! (Less Free RAM)" echo $line $sleep echo " Note 2: It also does not play nice with Tasker!" echo $line echo "" $sleep echo -n " BulletProof? Enter Y for Yes. *)echo " OK. Die-Hard Launcher Is Great Anyway!" opt=26.or don't know what it is ... BulletProofing!".$animation..$miscs d..just say \"Yes\" .else echo " ==================" busybox echo " \\\\\\ WARNING! ///" echo " ==============" echo "" $sleep echo $line echo " This Breaks \"Long-Press Back To Kill\"!" echo $line echo "" $sleep echo " If you don't have or don't use this feature.$initrc..$zepalign.. any key for No:" read breakback echo "" echo $line case $breakback in y|Y)launcheradj=0 echo "$speed.. 14)echo " =======================" busybox echo " //// UN-SUPERCHARGER \\\\\\\\" echo $line echo "" $sleep echo -n " :|" sleep 3 echo -n " !@#?&%(*)(*)&(!)?!" sleep 3 echo " :/" sleep 3 echo "" echo $line echo "" .. esac fi..$fixemissions.$fixalign.

busybox echo "$flushmode".sleep 1.echo "".echo "".ec ho "".echo " ======================="..echo " ".echo " ".echo "".echo "".echo "".echo "".echo "".echo "".ec ho "".echo "".echo "".echo "".echo "".ech o "".echo "". be like that! :p".echo "".echo "" .echo "".$animspeed clear.echo "$flushmodebar".echo "".echo "".echo "".echo "".echo " WHAT? UnSuperCharge? Are you sure?" echo "" $sleep echo -n " Enter Y for Yes.e cho "".echo $line.echo $line.echo "".echo "". *)echo " False alarm.echo ""..busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".echo "".echo "".echo "".echo $line.echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo $line.echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo $line.echo "".echo "".125" clear.echo "".echo "". any key for No: " read unsuper echo "" echo $line case $unsuper in y|Y)echo " Well.echo "".echo "".echo " =======================".$animspeed clear.echo $line.echo ""..echo "".\\\\\\\\" fi animspeed="busybox sleep 0.echo "".echo "".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo $line.echo $line. okay then.$animspeed clear.echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo "".echo " =================== ====". *whew*" opt=26.echo " ".echo "".echo "".echo "".echo "".echo "".$animspeed clear.echo "".echo "".busybox echo "$flushmode".\\\\\\\\" else flushmodebar=" =============================" flushmode=" //// -=Fast Engine Flush=.echo $line.echo "".echo ""..echo $line.echo "".echo "". 15)echo " =======================" busybox echo " //// THE bOOM STICK! \\\\\\\\".echo " ".echo "".$animspeed clear.echo "". then flushmodebar=" ================================" flushmode=" //// -=Engine Flush-O-Matic=.echo $line.echo "" .echo "".echo "$flushmodeb ar".echo "".$animspeed clear.echo "".echo "".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".echo $line.echo " ". esac.echo " ".echo "".echo "".echo ""..echo "".echo "".echo "".echo "$fl ushmodebar".echo " =======================".echo "".echo "".echo "".echo "".echo ""..echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo ""..echo "".echo "".$animspeed clear.echo "".echo "".echo "".echo ""..echo "".echo $line..echo " "...echo "".echo "".echo "".echo "".echo "".echo "".echo "".ech o "".echo " ".echo $line. 17)if [ "$flushOmaticHours" -ne 0 ].echo "".$animspeed clear.echo "".echo $line.echo $line.echo "".echo "".echo "".echo "".echo "".echo "".$animspeed clear.echo "".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".echo " =======================".$animspeed clear.echo "".echo "".echo "".echo "".echo "".echo "".busybox echo "$flushmode".echo "".echo "".busybox echo " \\\\\\\\ V6 . 16)echo " ========================" busybox echo " //// BULLETPROOF APPS \\\\\\\\".e cho "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".

echo " =======================".echo " =======================".echo " | D".echo ""..echo "".echo "".echo "".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".SUPERCHARGER ////".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////"._(".echo $line.echo "".echo " |_(--------) '-'".echo " || ________ -( (-".echo "$flushmodeba r".busybox echo " \\\\\\\\ V6 .echo "".$ animspeed clear..echo " | |".echo "". $animspeed clear.echo "".echo " | |".echo "".busybox echo "$flushmode".echo "".echo "".echo "".echo "".echo "".echo "$flushmodebar".echo "".echo " )_.echo "".echo " |_(--------) '-'".echo " \ /".echo "".echo " |___| __".echo " |_(--------) '-'".echo " =======================".echo "".echo " | |".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo ""._(".$animspeed clear.echo " \ /".echo "$flushmodebar".echo " || ________ -( (-"._(". echo "".echo "".echo " |___| __".echo " | |".echo $lin e.echo " || ________ -( (-".echo " =======================".echo " |___| __".echo "".echo $line._(".echo " |_(--------) '-'".echo " |___| __".echo $line.echo "".bu sybox echo "$flushmode".echo " )_.echo "".echo "".echo " | |".echo " \ /".echo "".$animspeed clear.echo "".echo "".echo "".echo "$flushmodebar".echo "$flushmodebar".echo " |_(--------) '-'".busybox echo "$flushmode".echo " =======================".echo "".echo " \ /".echo ""._(".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////"..echo $line.echo "".echo "".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".busybox echo "$flushmode".busybox echo "$flushmode".echo $line.echo " =======================".echo ""._(".echo " \ /".echo $line.echo $l ine.echo "$flushmodebar".echo " |___| __" .echo " )_.echo " )_.echo "".busybox echo "$flushmode".echo $line.echo "$flushmodebar".ech o "".echo $line.echo $line.echo "".echo "".echo " \ /".echo "".echo " |___| __".echo " )_.echo "".echo "".echo " )_.echo " )_.echo " =======================".echo "".$animspeed clear.ech o "".echo "".$animspeed clear.echo " )_.echo "".._(".echo " || ________ -( (-". echo $line.echo "".. echo $line.echo "".echo $line.echo ""..echo "$flushmodebar".echo " \ /".echo "".echo " | D".echo "$flushm odebar".echo ""._(".echo " ___".echo "".busybox echo "$flushmode".busybox echo "$flushmode".busybox echo "$flushmode".echo "".echo "".$animspeed clear.echo " )_.echo " | | ________ -( (-"..echo ""..._(".echo " =======================".$animspeed clear.echo " |_(--------) '-'".echo " =======================".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".busybox echo "$flushmode".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo " |_(--------) '-'".echo $line.echo "".echo $line.echo "$flushmodebar" .echo "".echo " \ /".echo " | |".echo " | |".echo $line.$animspeed clear.busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".$animspeed clear.echo $line.echo $line.echo " | D".echo " \ /".echo " )_._(".echo "".echo " || _ _______ -( (-"..$animspeed.busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo $line.echo " |_(--------) '-'".echo " =======================".echo " | |".echo "".echo " || ________ -( (-".echo " | |".echo "".

echo " \ /".echo "".echo $line.echo $line.echo "".$animspeed clear.echo "" .busybox echo "$flushmode".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo " ============================".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////"..echo "".".busybox echo "$flushmode".echo "".echo "".echo " zoom..echo " =======================".._(".busybox echo "$flushmode".echo " =======================".$animspeed clear.echo " || ________ -( (-".echo "".echo " \ /".echo "".echo "".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".echo " =======================".echo " \ /".echo "".echo " )_.echo $line.echo $line.busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".busybox echo "$flushmode".echo $line.echo "".echo " ==================".echo "".echo ""..echo $line.echo " \ /".echo $line.$ animspeed clear.echo $line._(".echo "$flushm odebar"._(".echo "".busybox echo "$flushmode".echo "".echo "".echo "".echo " zoom.echo "".busybox echo "$flushmode".echo " |___| __".echo ""..echo "".echo "$fl ushmodebar".echo " )_.echo " |_(--------) '-'".$animspeed clear.echo "".echo " zoom.echo "".busybox echo "$flushmode".echo $line.SUPERCHARGER ////".echo " | |".echo $line. echo "".echo ""..".echo " || ________ -( (-".echo " )_.echo "$flushmodebar".echo $line.echo "".echo "".echo "".echo "".echo "".$animspeed clear.$animspeed clear.echo "".echo "".busybox echo "$flushmode".echo "".echo " |___| __" .echo "".echo "".echo "".echo "".echo "".echo ""..echo $line..echo $line.echo " |_(--------) '-'".echo ""..echo "".echo " | |".echo " \ /".echo "".echo ""..echo " =======================".echo " )_.busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".busybox echo " \\\\\ \\\ V6 SUPERCHARGER ////".echo "".echo " | |".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".busybox echo "$flushmode"._(".echo "".echo $line.echo "$flushmodebar".$animspeed clear.$animspeed clear.echo $line.echo " )_.echo $lin e.echo $line.echo "".echo " |_(--------) '-'".ech o "".echo $line.echo " =======================".echo "". echo ""._(".".echo "".echo "".echo " ======================================".echo "".echo "".echo "".echo " |___| __".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo " =======================".echo "".echo " =======================".echo "". echo "".echo "".echo "$flushmodebar".echo "".echo $line.echo "".echo " =======".echo " |_(--------) '-'".echo $line.echo "".ec ho "$flushmodebar"..echo "".$animspeed clear.echo $l ine.echo " || ________ -( (-"._(".echo " =======================".echo " =======================".echo " )_..echo "".echo "".echo ""..echo "$flushmodebar".echo "$flushmodebar".ec ho "".echo " )_.echo "".echo "".echo "".echo "$flushmodeba r".ech o "".echo " =======================".echo "".echo "".echo "".echo "".bu sybox echo "$flushmode"..".echo "".b .busybox echo " \\\\\\\\ V6 SUP ERCHARGER ////".echo "".echo "".echo "".echo "".echo " zoom.$animspeed clear.echo "$flushmodebar".echo "".echo "".echo "".echo "".$animspeed clear.echo ""._(".echo "".echo $line.echo " =======================".echo " =======================".echo " |_(--------) '-'".echo " ".echo "$flush modebar".echo "".echo "".echo "".echo " \ /".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".echo "".echo " || _ _______ -( (-"..busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "$flushmodebar".busybox echo "$flushmode".

echo "".busybox sleep 1 clear.".echo $line.echo "".echo " ======================= ".echo "".busybox echo " \ \\\\\\\ V6 SUPERCHARGER ////".echo $line.echo "".echo " zOOM.echo $line.$animspeed clear.echo "".echo "".busybox e cho " \\\\\\\\ V6 SUPERCHARGER ////".echo "".echo "".echo $line." .echo "".echo $line.echo "$flushmodebar".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo ""..echo "". 25)echo " ============================" busybox echo " //// JELLY ISCREAM PARLOR \\\\\\\\" if [ "$preics" ]. zOOM. zoom...echo " zoom.echo $line.echo "".echo " zoom. zoom.echo " ======================= ".busybox echo "$flushmode".echo "".echo "".busybox echo "$flushmode".echo "".echo ""..echo "".ec ho "".echo "".echo ""..echo "$flushmodebar".echo "".echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".busybox echo "$flushmode".busybox sleep 0.echo $line.echo "".busybox echo "$flushmode".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".echo "".echo "$flushmodebar".echo " === ====================".echo " zOOM.".echo $line.echo ""..echo $line..echo " =======================". zoom.5 clear..echo $line..".echo " ======================= "..echo ""..echo "".echo "$flushmodebar"..echo "".echo "".busybox echo "$flushmode".echo "".echo $line.echo " ============= ==========".echo "".echo "". then opt=26 echo $line echo "" $sleep echo " FAIL: This is a PRE-ICS ROM! lol" .. zoom.echo " ======================= ".echo " zoom... 18)echo " =================" busybox echo " //// DETAILING \\\\\\\\". 21)echo " =====================" busybox echo " //// FIX ALIGNMENT \\\\\\\\"..$animspeed clear.5 clear.echo "".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////". zOOM..echo $line.echo "$flushmodebar".echo "". 19)echo " =======================" busybox echo " //// WHEEL ALIGNMENT \\\\\\\\".echo "".echo "".echo "".echo "".busybox echo "$flu shmode".echo "".echo "". 20)echo " =====================" busybox echo " //// FIX EMISSIONS \\\\\\\\"..busybox echo "$flushmode".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".echo "".echo "".echo $line.echo " zOOM.echo $line.echo " ".usybox echo "$flushmode"..echo $line.echo ""...echo $line.echo "". 22)echo " ===========================" busybox echo " //// NITRO LAG NULLIFIER \\\\\\\\"."..echo "".busybox echo "$flushmode".echo "".echo "".echo "".echo ""..echo "".echo "".echo "".echo "$flushmodebar".. zoom.echo "".echo "".echo "".echo "".echo " zoom.echo ""..echo "".. zOOM...busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".. 24)echo " =======================" busybox echo " //// RE-SUPERCHARGER \\\\\\\\".echo $line.echo "".".echo $line.echo "".echo "".echo "".echo "".echo $line ..echo "".echo $line.".".busybox sleep 0.echo ""...echo "".echo $line..echo " zoom.echo " ======================= "..echo $line.busybox echo "$flushmode".busybox echo " \\\\\\\\ V6 SUPERCHARGER ////".5 clear.echo "".".echo "".echo $line.busybox sleep 0.echo "".echo " zoom.$animspe ed clear.echo " ======================="..echo "".$animspeed clear.echo "".echo "$flushmodebar".echo "".echo "".echo "".echo $line.echo $line.echo "".echo ""..echo "$flushmodebar". 23)echo " ======================" busybox echo " //// SYSTEM INSTALL \\\\\\\\".$animspeed clear.echo "".....ech o $line...echo $line.echo "$flushmodebar".echo "".

echo "" fi;; 26)echo " =====================" busybox echo " //// POWERSHIFTING \\\\\\\\" echo $line echo "" $sleep echo " Now you can quickly switch minfree settings!" echo "" $sleep echo " When you run a preset or the Cust-OOMizer..." echo "" $sleep echo " ...a PowerShift Script is automatically saved!" echo "" echo $line $sleep echo " You can find them in the folder..." echo "" $sleep echo " .../data/V6_SuperCharger/PowerShift_Scripts :D" echo $line echo "" $sleep echo " Create \"Quick Widgets\" for them..." echo "" $sleep echo " ...and PowerShift between settings!" echo "" $sleep echo $line echo " They will also be your new SuperCharger values!" echo $line echo "" $sleep echo " They will have descriptive names..." echo "" $sleep echo " ...indicating minfree values." echo "" $sleep echo " Different Cust-OOMizer settings will be saved!" echo "";; 27)echo " =====================" busybox echo " //// Owner's Guide \\\\\\\\" echo $line echo "" $sleep echo " Loading Owner's Guide..." echo "" $sleep su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start -a android.inte nt.action.VIEW -n com.android.browser/.BrowserActivity -d file://$storage/!Super Charger.html" echo "" echo $line echo "" $sleep echo " I hope that helped! :^)" echo "";;

28)echo " ===================" busybox echo " //// HELP CENTRE \\\\\\\\" echo $line echo "" $sleep echo " Loading web site for more help & updates..." echo "" $sleep su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start http://goo.gl/q M6yR" echo "" echo $line echo "" $sleep echo " I hope that helped! :^)" echo "";; 29)echo " ======================" busybox echo " //// DRIVER OPTIONS \\\\\\\\" echo $line echo "" for p in /data/local.prop /system/build.prop /system/bin/build.prop /sy stem/etc/ram.conf; do if [ -f "$p" ]; then chown 0.0 $p; chmod 644 $p if [ ! -f "$p.unsuper" ]; then backedup=yes $sleep echo " Backing up ORIGINAL ${p##*/}..." echo "" $sleep cp -r $p $p.unsuper if [ "`diff $p $p.unsuper`" ]; then echo " ERROR BACKING UP $p!" else sed -i '/SuperCharger Installation/d' $p .unsuper echo " ...as $p.unsuper!" fi echo "" fi fi done if [ -f "$initrcpath1" ] && [ ! -f "$initrcpath" ]; then cp -r $initrcp ath1 $initrcpath; fi for rc in $initrcpath1 $allrcpaths /system/etc/hw_config.sh; do if [ -f "$rc" ] && [ "$rc" = "$initrcpath1" ] && [ ! -f "$initrc backup" ]; then backedup=yes $sleep echo " Backing up ORIGINAL $rc..." cp -r $rc $initrcbackup if [ "`diff $rc $initrcbackup`" ]; then echo "" $sleep echo " ERROR BACKING UP $rc!" fi echo "" elif [ -f "$rc" ] && [ "$rc" != "$initrcpath1" ] && [ ! -f "$rc. unsuper" ]; then backedup=yes $sleep echo " Backing up ORIGINAL $rc..." cp -r $rc $rc.unsuper if [ "`diff $rc $rc.unsuper`" ]; then

echo "" $sleep echo " ERROR BACKING UP $rc!" fi echo "" fi done 2>/dev/null if [ "$backedup" ]; then backedup=; echo $line; echo ""; fi $sleep echo " Scrolling Speed Options..." echo " ==========================" echo "" $sleep echo -n " " if [ "$scpercent" -eq 100 ]; then echo -n "0 (no delay), "; fi echo "1 (fast), 2 (normal), 3 (slow)" while :; do echo "" $sleep if [ "$scpercent" -eq 100 ]; then echo -n " Please select scroll ing speed (0 - 3): " else echo -n " Please select scrolling speed (1 - 3): " fi read speed echo "" case $speed in 0)sleep="sleep $speed";break;; 1)sleep="sleep $speed";break;; 2)sleep="sleep $speed";break;; 3)sleep="sleep $speed";break;; *)echo " Invalid entry... Please try again :p";; esac done echo $line echo " Scrolling Speed is now set to $speed..." echo $line echo "" $sleep if [ "$preics" ]; then echo " Build.prop vs Local.prop..." echo " ===========================" echo "" $sleep echo $line if [ ! "$buildprop" ] && [ ! -f "/data/local.prop" ]; then echo " WARNING: You don't have a /data/local.prop!" echo $line echo "" $sleep echo " You can try creating /data/local.prop..." echo "" $sleep echo " ...and see if the launcher gets SuperCharged!" echo "" $sleep echo $line fi echo " Using local.prop is STRONGLY recommended!" echo $line echo ""

chmod 64 4 $prop.prop instead of local.prop" if [ ! "$buildprop" ] && [ ! -f "/data/local...prop Mode Activated!".prop >> /data/local.prop: " read buildpropopt echo "" echo $line case $buildpropopt in b|B)buildprop=1 prop="/system/build." echo "" $sleep echo " .prop!" echo "" $sleep echo " This is more likely to stick but is RISKIER..prop .or create /data/local." echo "" $sleep echo " You can apply MEM and ADJ values..prop echo " Copied SuperCharger entries to local.to build...so have a backup available!" echo $line echo "" $sleep echo -n " Do you want to use Build.*V6 SuperCharged/d .*V6 SuperCharged/p ' /system/build..0 $prop.prop or any key for local." echo "" $sleep sed -i '/./..*V6 SuperCharger/. chown 0.. esac echo $line echo "" $sleep showbuildpropopt=0 if [ ! -f "$prop" ]. fi if [ "$buildpropold" ] && [ "$buildprop" != "$buildpropold" ].. then echo "...prop" ].." echo "" $sleep echo " . then sed -n '/.prop" echo " Okay! local..prop?" else echo "?" fi echo "" $sleep buildpropold=$buildprop echo -n " Enter (B)uild.$sleep echo " But if the launcher DOES'T get SuperCharged. then touch $prop.prop" echo " Okay! build. *)buildprop=0 prop="/data/local.*V6 SuperCharger/...prop Mode Activated!"./.." echo "" $sleep echo $line echo " WARNING: There is a small chance of bootloops!" echo "" $sleep echo " .. t hen if [ "$buildpropold" -eq 1 ].

..*V6 SuperCharged/p ' /data/local.. then echo " Hard To Kill Launcher is.*V6 SuperCharged/d ' /data/local..and cleaned SuperCharger from build. .prop" ].." echo "" $sleep sed -i '/. then sed -n '/.....prop echo " Copied SuperCharger entries to build.VERY Strong and RECOMMENDED!" echo "" $sleep echo " BulletProof Launcher is....prop >> /system/build./...prop .and cleaned SuperCharger from local..prop echo " prop!" elif [ -f "/data/local." echo "" $sleep echo " ." echo "" $sleep echo " . " read enter echo "" echo $line echo "" $sleep echo " SuperCharged Launcher Strength.' /system/build..Strong BUT Still Killable!" echo "" $sleep fi echo " Die-Hard Launcher is... prop!" fi echo "" echo $line echo "" $sleep fi echo -n " Press The Enter Key.prop echo " ...." echo " =================================" echo "" $sleep if [ "$gb" -eq 1 ].." echo "" $sleep echo " .*V6 SuperCharger/./.*V6 SuperCharger/.Strongest and UNKILLABLE!" echo "" $sleep echo " =======================================" busybox echo " \\\\\\ BULLETPROOF LAUNCHER WARNING! ///" echo " ===================================" echo "" $sleep echo $line echo " This Breaks \"Long-Press Back To Kill\"!" echo $line echo "" $sleep .

fi echo -n "(B)ulletProof.." echo "" echo -n " " if [ "$gb" -eq 1 ]... any key for Die-Hard: " read lstrength echo "" echo $line case $lstrength in h|H)if [ "$gb" -eq 0 ]. *)launcheradj=1 echo " SuperCharged Launcher Strength is DieHard!" break.for RAM management and battery savings!" echo "" $sleep echo $line echo " Note: The Kick Ass Kernelizer has DOZENS MORE!" . do echo $line echo "" $sleep echo " Select a Launcher Strength.." echo "" $sleep echo " . do if [ -f "$p" ].echo " If you don't have or don't use this feature. then echo -n "(H)TK.conf $prop. ".don't worry about it . fi.." echo "" $sleep echo " . esac done for p in /system/etc/ram. then echo " Invalid entry .HOME_APP_ADJ=.... done echo $line echo "" $sleep else buildprop=1.... prop="/system/build... then sed -i 's/ro. Please try again :p" else launcheradj=2 echo " SuperCharged Launcher Strength is Hard To Kill!" break fi.)" echo "" $sleep echo $line echo " Note 1: This is NOT for Gamers! (Less Free RAM)" echo $line $sleep echo " Note 2: It also does not play nice with Tasker!" while :..prop"." echo " =================================" echo "" $sleep echo " SuperCharger will apply additional tweaks.*/ro... launcheradj=1 fi echo " Kernel & Virtual Memory Tweaks.HOME_APP_ADJ='$launcheradj/ $p. b|B)launcheradj=0 echo " SuperCharged Launcher Strength is Bulle tProof!" break..

*panic. DON'T PANIC!" echo " ===========================================" echo " ." echo " ..*swappiness....." echo "" $sleep echo " . Rock & Roll Kernel aka OOPS. do if [ -f "$sc" ]..*oom.*overcommit_memory.so choose this for STABLE kernels!" echo " Note: This causes hangs on reboot on some ROMS" echo "" $sleep echo " 2.*/d' $sc sed -i '/..*/d' $sc sed -i '/.sh /sy stem/etc/hw_config. Rock Hard Kernel aka DON'T PANIC!" echo " =================================" echo " .*/d' $rc sed -i '/kernel\/panic.so choose this for UNSTABLE kernels!" echo "" if [ "$scpercent" -eq 0 ]." echo " ..echo $line echo "" $sleep echo $line echo " But The -=Entropy-ness Enlarger=...*/d' $sc sed -i '/...*/d' $rc .reboots after a 30s recovery attempt!" echo " . " echo "" $sleep echo " 1..*/d' $rc sed -i '/vm\/..... do sed -i '/vm\/.sh.battery drains on a frozen screen...*/d' $rc sed -i '/vm\/.but NOT when an OOPS or BUG turns up!" echo " Note: This causes hangs on reboot on some ROMS" echo "" $sleep echo " 3.*overcommit_memory.reboots after a 30s recovery attempt..this PREVENTS reboots!" echo " ..is included!" echo $line echo "" $sleep echo " \"Kernel Panics\" are inevitable..*read_wakeup_threshold.13 still needs to be run!" fi echo $line echo "" $sleep for sc in /system/etc/init.*/d' $sc fi done for rc in $initrcpath $allrcpaths. then $sleep echo $line echo " An Option from 2 .*oom.*/d' $sc sed -i '/....d/*SuperCharger* /data/99SuperCharger.*swappiness. then sed -i '/.. Soft Rock Kernel aka EVERYBODY PANIC!" echo " =====================================" echo " .and can result in \"Random Reboots\"!" echo "" $sleep echo " Choose a \"Random Reboot Tolerance\" Level.

kpoops=0 echo " OOPS. kpanic=30. kpoops=1 echo " NONE!? Good Luck with that! LOL" break.MAY save battery and/or boost responsi veness' $sc fi if [ "$panicmode" -ne 0 ]..d/*SuperCharger* /data/99SuperCharger.swappiness=20. kpanic=30. do sed -i '/vm\/min_free_kbytes/ a\ write /proc/sys/vm/oom_kill_allocating_task 0\ write /proc/sys/vm/panic_on_oom 0\ write /proc/sys/vm/overcommit_memory 1\ write /proc/sys/vm/swappiness 20\ .sh /sy stem/etc/hw_config.panic/s/#//' $sc. then sed -i '/min_free_kbytes=/ a\ busybox sysctl -w vm. esac done echo $line echo "" $sleep for sc in /system/etc/init. kpanic=30. kpoops=1 echo " EVERYBODY PANIC! Soft Rock Kernel Chosen!" break. *)echo " Invalid entry. # Entropy-n ess Enlarger .read_wakeup_threshold=1376.NEVER reboot on panic. then sed -i '/^#.\ busybox sysctl -w vm..\ busybox sysctl -w vm.sed -i '/random\/read_wakeup_threshold.\ # busybox sysctl -w kernel..panic_on_oom=0.random.panic_on_oops='$kpoops'... do echo "" $sleep echo -n " Pick a Kernel Strength / \"Reboot Tolerance\": " read kvm echo "" echo $line case $kvm in n|N)panicmode=0. kpoops=0 echo " DON'T PANIC! Rock Hard Kernel Chosen!" break.. fi done for rc in $initrcpath $rcpaths.keeps entropy_avail full .oom_kill_allocating_task=0.Wait 30s but NOT on OOPS/Bug." echo " (R)ock & Roll .panic='$kpanic'." echo "" $sleep echo $line echo " VM Tweaks & Entropy-ness Enlarger Still Apply!" echo $line while :..." echo " (S)oft Rock .use your ROM's / other tweak's values" echo " Rock (H)ard .\ busybox sysctl -w vm.*kernel.*/d' $rc done echo " (N)one . s|S)panicmode=1.\ # busybox sysctl -w kernel. r|R)panicmode=2.overcommit_memory=1.. Please try again :p" echo $line.\ busybox sysctl -w kernel. DON'T PANIC! Rock & Roll Kernel Chosen! " break. do if [ -f "$sc" ]. h|H)panicmode=3. kpanic=0.sh.Wait 30s on ANY panic.

.." echo "" $sleep echo " .panic_on_oom=0 echo -n " ".sys. then sed -i '/^#.busybox sysctl -w vm..panic_on_o ops=$kpoops echo -n " ".oom_kill_allocating_task=0 echo -n " ".busybox sysctl -w vm.sys.vm .purgeable_assets = 1" echo " wifi.busybox sysctl -w vm." echo "" $sleep echo " .supplicant_scan_interval = 180" .vm.vm.heapgrowthlimit = $heapsize MB".vm.pa nic=$kpanic fi echo -n " ". then echo -n " "....swappiness=20 if [ "$panicmode" -ne 0 ].." echo " =======================================" echo "" $sleep echo " SuperCharger can apply additional tweaks.read_wakeup_threshold=137 6 echo "" $sleep echo $line echo " Note: Last one's the -=Entropy-ness Enlarger=-!" echo $line echo "" $sleep echo -n " Press The Enter Key." echo "" $sleep echo -n " ".# # write /proc/sys/kernel/panic_on_oops '$kpoops'\ write /proc/sys/kernel/panic '$kpanic'\ write /proc/sys/kernel/random/read_wakeup_threshold 1376' $rc if [ "$panicmode" -ne 0 ].busybox sysctl -w kernel.based on the $ram MB of RAM on your device!" echo "" echo $line echo "" $sleep echo " SD Card Read Speed Tweak = $sdtweak KB" if [ "`getprop | grep heapgrowthlimit`" ]. " read enter echo "" echo $line echo "" $sleep echo " Miscellaneous & SD Card Speed Tweaks.busybox sysctl -w kernel.busybox sysctl -w vm.heapsize`" ].which include additional battery savings!" echo "" $sleep echo " They are as follows. fi done echo " Applying Kernel & Virtual Memory Tweaks.. then echo " persist..overcommit_memory=1 echo -n " "..sys. fi echo " dalvik. fi echo " persist..heapsize = $heapsize MB" if [ "`getprop | grep persist..random.heapsize = $heapsize MB".. then echo " dalvik.*kernel\/panic/s/#/ /' $rc.busybox sysctl -w kernel..

heapsize='$heapsize'm\ persist.sys./queue/d' $sc elif [ -f "$sc" ].sleep_mode = 1" "" "$scpercent" -eq 0 ].sh. do if [ -f "$sc" ]. then sed -i '/heapgrowthlimit/d' $prop.vm.vm.sh /sy stem/etc/hw_config./edge=/d' $prop fi for sc in /system/etc/init.sleep_mode=1' $prop if [ ! "`getprop | grep heapgrowthlimit`" ].max_events_per_sec=200\ pm.max_events_per_sec = 200" " pm. do sed -i '/bdi\/read_ahead_kb/d' $r c.heapsize/d' $prop. done echo " Enable Miscellaneous & SD Card Speed Tweaks?" echo "" $sleep echo -n " Enter Y for Yes.vm. do if [ -f "$sc" ] && [ "$tc3g" ]. then\ for i in \`ls /sys/devices/virtual/bdi/179*/read_ahead_kb\`.sys.sys.echo echo echo if [ " windowsmgr. fi if [ ! "`getprop | grep persist. then sed -i '/#==#/ a\ if [ "\`ls /sys/devices/virtual/bdi/179*/read_ahead_kb\`" ]. any key for No: " read misc echo "" echo $line case $misc in y|Y)miscsd=1 echo " Miscellaneous & SD Card Speed Tweaks are ON!" echo $line echo "" $sleep sed -i '/END OOM_ADJ_Settings/ a\ ############=##############\ # Miscellaneous Tweaks! #\ ###########################\ dalvik.13 still needs to be run!" fi echo $line echo "" $sleep if [ "$tc3g" ].sh.heapgrowthlimit='$heapsize'm\ dalvik.sys.vm. fi for sc in /system/etc/init. then sed -i '/179/. the n sed -i '/persist./sleep_mode/d' $prop else sed -i '/#=#/.supplicant_scan_interval=180\ windowsmgr.d/*SuperCharger* /data/99Supe rCharger.heapsize='$heapsize'm\ persist.d/*SuperCharger* /data/99SuperCharger.sh /system/etc/hw_config. then sed -i '/#=#/./queue/d' $sc sed -i '/#=#/ a\ #########################\ # SD Read Speed Tweak #\ ############==###########' $sc fi done for rc in $initrcpath $allrcpaths.vm. do .heapsize`" ]. then sed -i '/wmem_max/. then $sleep echo $line echo " An Option from 2 .purgeable_assets=1\ wifi.

sys.echo '$sdtweak' > \$i.sleep_mode 1 echo " pm. then read_ahead=yes for i in `ls /sys/devices/virtual/bdi/179*/read_ ahead_kb`. do sed -i '/KVM Tweaks/ i\ write /sys/block/mmcblk0/bdi/read_ahead_kb '$sdtweak $rc done echo " Applying Miscellaneous & SD Speed Tweaks.vm.\ echo '$sdtweak' > /sys/block/mmcblk0/bdi/read_ahead_kb 2>/dev/null. do echo $sdtweak > $i.\ fi 2>/dev/null. .vm." echo "" $sleep if [ "`ls /sys/devices/virtual/bdi/179*/read_ahead_kb`" ]. then echo " SD Card Read S peed Tweak = $sdtweak KB" else echo $line echo " Sorry! Can't Apply SD Card Read Speed Tw eak!" echo $line echo "" $sleep fi if [ "`getprop | grep heapgrowthlimit`" ].sys.\ echo '$sdtweak' > /sys/block/mmcblk0/queue/read_ahead_kb 2>/dev/null.vm..heapgrowthlimit $heapsize"m" echo " dalvik.heapsize = $heaps ize MB" fi setprop persist.heapsize = $heapsize MB" if [ "`getprop | grep persist. then read_ahead=yes echo $sdtweak > /sys/block/mmcblk0/queue/read_ah ead_kb fi if [ "$read_ahead" ].supplicant_scan_interval 180 echo " wifi.purgeable_assets 1 echo " persist.sys.vm.sleep_mode = 1" echo ""..heapsize $heapsize"m" echo " persist. then r ead_ahead=yes echo $sdtweak > /sys/block/mmcblk0/bdi/read_ahea d_kb fi if [ -f "/sys/block/mmcblk0/queue/read_ahead_kb" ].heapsize`" ].vm.heapgrowthlimit = $heaps ize MB" fi setprop dalvik.heapsize $heapsize"m" echo " dalvik. done. then setprop persist.max_events_per_sec 200 echo " windowsmgr.purgeable_assets = 1" setprop wifi.vm.' $ sc fi done for rc in $initrcpath $rcpaths..sys.supplicant_scan_interval = 180" setprop windowsmgr. done fi 2>/dev/null if [ -f "/sys/block/mmcblk0/bdi/read_ahead_kb" ].max_events_per_sec = 200" setprop pm. then setprop dalvik.vm.sys.

.tcp. " read enter echo "" echo $line echo "" $sleep echo " 3G TurboCharger Enhancement." echo "" $sleep echo " .3145728..8. any key for No: " read misc echo "" echo $line case $misc in y|Y)tc3g=1 echo " 3G TurboCharger Enhancement is now ON!" echo $line echo "" $sleep sed -i '/V6 SuperCharged/ i\ ###############==#################\ # 3G TurboCharger Enhancement! #\ ##################################\ net.524288.dns1=8.110208.524288..262144.8.network buffersizes and TCP RAM allocation!" echo "" $sleep echo $line echo " This is an ADDON to my 3G TurboCharger Script!" if [ "$scpercent" -eq 0 ].3145728\ .1048576\ net. do if [ -f "$sc" ]. done echo " Enable 3G TurboCharger Enhancement?" echo "" $sleep echo -n " Enter Y for Yes.87380..524288.16384..buffersize.buffersize.buffersize.262144. fi.sh..default=6144..4./edge=/d' $prop for sc in /system/etc/init.wifi=262144.1048576.8\ net.tcp. then sed -i '/wmem_max/.d/*SuperCharger* /data/99SuperCharger..13 still needs to be run!" fi echo $line echo "" $sleep sed -i '/#==#/.524288.tcp.4\ net. esac echo $line echo "" $sleep echo -n " Press The Enter Key.sh /sy stem/etc/hw_config.110208\ net./tcp_wmem/d' $sc." echo " ==============================" echo "" $sleep echo " 3G TurboCharger Enhancement effects.lte=262144.dns2=8.8.6144.*)miscsd=0 echo " Miscellaneous & SD Card Speed Tweaks are OFF!". then echo $line echo "" $sleep echo $line echo " An Option from 2 ..

1048576 setprop net.busybox sysctl -w net.wmem_max=1048576.umts=6144.buffersize.524288.ipv4.hspa=6144.262144.udp_rmem_m in=6144 .ipv4.tcp.wifi 262144.buffersize.tcp.\ busybox sysctl -w net.\ busybox sysctl -w net.11680\ net.8.1048576." echo "" $sleep setprop net.262144.core.87380.262144.buffersize.1048576.evdo_b 6144.' $sc fi done echo " Applying 3G TurboCharger Enhancement.110208.16384.61 44.dns2 8.16 384.heapsize/d' $prop.16384.ipv4.evdo_b=6144.tcp.ipv4. do if [ -f "$sc" ].262144. then sed -i '/#=#/ a\ busybox sysctl -w net.rmem_max=1048576.1048576\ net.110208 setprop net.8 setprop net.87380.87380.262144.edge 6144.tcp.6144.busybox sysctl -w net.6144.1048576\ net.core.buffersize.614 4.524288.udp_wmem_min=6144.busybox sysctl -w net.ipv4.1048576.umts 6144.hsdpa 6144.flush=1.6144.4.sh.gprs 6144.route.11680.rmem_m ax=1048576 echo -n " ".1048576 setprop net.35040' $prop if [ ! "`getprop | grep heapgrowthlimit`" ].11680 setprop net.ipv4.524288.buffersize.wmem_m ax=1048576 echo -n " ".tcp_moderate_rcvb uf=1 echo -n " ".6144.tcp.optmem_max=20480.6144.tcp_moderate_rcvbuf=1.\ busybox sysctl -w net.8.buffersize.udp_rmem_min=6144.sh /system/etc/hw_config.6144.busybox sysctl -w net.buffersize.tcp.buffersize.262144 setprop net. the n sed -i '/persist.buffersize.buffersize.26280..3145728 setprop net.tcp. fi if [ ! "`getprop | grep persist.edge=6144.35040.262144.buffersize.dns1 8.8760.optmem_m ax=20480 echo -n " ".route.buffersize.tcp.vm.tcp.flu sh=1 echo -n " ".524288.26280.\ busybox sysctl -w net.ipv4..16384.tcp.8760.262 144.1048576 setprop net.core.16384.110208.\ busybox sysctl -w net.core.tcp_wmem='"'6144 87380 1048576'"'.core.tcp.6144.vm. # Be sure t hat autotuning is in effect\ busybox sysctl -w net.buffersize.buffersize.hspa 6144.tcp_rmem='"'6144 87380 1048576'"'. then sed -i '/heapgrowthlimit/d' $prop.d/*SuperCharger* /data/99Supe rCharger.hsdpa=6144.core.\ busybox sysctl -w net.8.35040 echo -n " ".default 6144.4 setprop net.buffersize.262144.87380.110208\ net.tcp.1 6384.sys.3145728.6144.1 6384.262144.262144\ net.6144.busybox sysctl -w net.busybox sysctl -w net.26 2144.614 4.262144.8760.ipv4.876 0.gprs=6144.1048576.tcp. fi for sc in /system/etc/init.110208.sys.1048576.tcp.ipv4.35040.net.87380.lte 262144.6144.heapsize`" ].262144.tcp.\ busybox sysctl -w net.11680.110208 setprop net.

" echo "" $sleep echo " .....better battery life and a faster device!!" echo "" $sleep echo " But sometimes.. esac echo $line echo "" $sleep echo -n " Press The Enter Key..^]" echo $line echo "" $sleep echo " Fix Alignment can run automatically on boot!" echo "" $sleep echo " *99SuperCharger would run FixAlignment..... then echo " Fix Alignment On Boot...busybox sysctl -w net.so this Fixes Permissions of each app.busybox sysctl -w net..d" ]." echo " ==========================" echo "" $sleep echo " This combines two scripts into one...busybox sysctl -w net..ipv4.......immediately after zipaligning it!" echo "" $sleep echo " It's REALLY FAST and." ..." echo "" $sleep echo " ..." echo "" $sleep echo " ." echo "" $sleep echo $line echo " It's the ONLY script of it's kind .which means less RAM comsumption..tcp_wmem= echo "".Wheel Alignment AND Fix Emissions!" echo "" $sleep echo " ZipAlign optimizes all your APKs. Force Closes can result..tcp_rmem= ". *)tc3g=0 echo " 3G TurboCharger Enhancement is now OFF!"..ipv4." echo "" $sleep echo " . " read enter echo "" echo $line echo "" $sleep if [ -d "/system/etc/init..sh.ipv4.udp_wmem_m ".echo -n " in=6144 echo -n " '6144 87380 1048576' echo -n " '6144 87380 1048576' "..." echo "" $sleep echo " .

*sed /# sed /' /system/et c/init.d/*SuperCharger*`" ]..' /system/etc/init.sh" ].On Boot are automatically disabled!" echo "" $sleep echo " Note 2 : If you say No. any key for No: " read bootfixalign echo "" echo $line case $bootfixalign in y|Y)fixalign=1.." echo " Wheel Alignment and Fix Emissions. fixemissions=0 if [ ! "`ls /system/etc/init.....boot options become available!" echo "" $sleep echo -n " Enter Y for Yes. then echo " Fix Alignment has to run once from the me nu!" echo $line echo "" $sleep echo $line fi echo " Fix Alignment Set To Run On Boot!" sed -i '/!FixEmissions.d/*SuperCharger* 2>/dev/null sed -i '/!WheelAlignment." echo " Wheel Alignment and Fix Emissions.." echo " .sh & sleep 2.sh/s/.sh/s/....*sh \//# sh \//' /system/ etc/init. the n echo " An Option from 2 .echo "" $sleep echo " ..sh 2 >/dev/null.d/*SuperCharg er* sed -i '/scriptmanager/ i\ sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!FixAlignment.so boot time would be unaffected!" echo "" echo $line echo "" $sleep if [ "`ls /system/etc/init.13 still needs to be r un!" echo $line echo "" $sleep echo $line fi 2>/dev/null if [ ! -f "/data/V6_SuperCharger/!FixAlignment." echo " . zepalign=0.*sed /# sed /' / ..\ sh /data/V6_SuperCharger/!FixAlignment.d/*SuperCharger* fi 2>/dev/null echo " Run Fix Alignment on boot?" echo "" $sleep echo " Note 1 : If you say Yes.sh 2 >/dev/null.sh/s/.d/*SuperCharger*`" ]...d/*SuperCharger* 2>/dev/null sed -i '/!FixEmissions. then sed -i '/!FixAlignment/d' /system/etc/init.\ sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!FixAlignment.

sh 2>/dev/null...d/*SuperCharger* 2>/dev/null......' /system/etc/init. " read enter echo "" echo $line echo "" $sleep if [ "$fixalign" -eq 0 ].better battery life.\ sh /data/V6_SuperCharger/!WheelAlignment.d/* SuperCharger* 2>/dev/null...sh/s/..." echo " ==========================" echo "" $sleep echo " ZipAlign optimizes all your APKs..d/*SuperCharger* fi 2>/dev/null .d/* SuperCharger* sed -i '/scriptmanager/ i\ sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!WheelAlig nment.\ sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!WheelAlig nment. does that rhyme?" sed -i '/!FixAlignment..." echo "" $sleep echo " . run Fix Emissions!" echo $line echo "" $sleep if [ "`ls /system/etc/init. then sed -i '/!WheelAlignment/d' /system/etc/init..sh & sleep 2.d/*SuperCharger* 2>/dev/null sed -i '/!WheelAlignment.*sh \//# sh \//' /system/etc/init. then echo " Wheel Alignment On Boot.which means less RAM comsumption.and a faster device!!" echo "" echo $line echo "" $sleep echo " Wheel Alignment can run automatically on boot!" echo "" $sleep echo " *99SuperCharger would run WheelAlignment..d/*SuperCharger*`" ]." echo "" $sleep echo " . *)fixalign=0 echo " Boot Fix Align Declined.sh 2>/dev/null....system/etc/init....so boot time would be unaffected!" echo "" $sleep echo $line echo " If you get Force Closes.sh." echo "" $sleep echo " . esac echo $line echo "" $sleep echo -n " Press The Enter Key..sh/s/^/#/' /system/etc/init.." echo "" $sleep echo " .

.." echo " ========================" echo "" $sleep echo " This should fix app Force Closes!" echo "" $sleep echo " FCs usually happen due to permission errors.d/*SuperCharger* 2>/dev/null.. *)zepalign=0 echo " Boot Align Declined. any key for No: " read bootzepalign echo "" echo $line case $bootzepalign in y|Y)zepalign=1 if [ ! "`ls /system/etc/init. then echo " Wheel Alignment has to run once f rom the menu!" echo $line echo "" $sleep echo $line fi echo " t!".....echo " Run Wheel Alignment on boot?" echo "" $sleep echo -n " Enter Y for Yes. then echo " An Option from 2 .13 still needs to be run!" echo $line echo "" $sleep echo $line fi 2>/dev/null if [ ! -f "/data/V6_SuperCharger/!WheelAlignme nt. " read enter echo "" echo $line echo "" $sleep echo " Fix Emissions On Boot.have the correct permissions!" echo "" echo $line Wheel Alignment Set To Run On Boo ...sh" ]." echo "" $sleep echo " This tool will ensure that ALL apps...sh/s/^/#/' /system/et c/init." echo "" $sleep echo " ... does that rh yme?" sed -i '/!WheelAlignment. esac echo $line echo "" $sleep echo -n " Press The Enter Key..d/*SuperCharger*` " ].

\ sh /data/V6_SuperCharger/!FixEmissions.' /system/etc/init.so boot time would be unaffected!" echo "" echo $line echo "" $sleep if [ "`ls /system/etc/init. then echo " An Option from 2 .13 still needs to be run!" echo $line echo "" $sleep echo $line fi 2>/dev/null if [ ! -f "/data/V6_SuperCharger/!FixEmissions ..d/*SuperCharger*` " ].d/*SuperCharger* 2>/dev/null.sh & sleep 2.sh 2 >/dev/null..sh." echo "" $sleep echo " ..sh/s/^/# /' /system/etc /init./ i\ sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!FixEmissions. *)fixemissions=0 echo " No FCing Fix On Boot For You!" sed -i '/!FixEmissions..d/*SuperCharger*`" ].d/*Su perCharger* sed -i '/sleep 90.d/*SuperCharger* fi 2>/dev/null echo " Run Fix Emissions on boot?" echo "" $sleep echo -n " Enter Y for Yes. then sed -i '/!FixEmissions/d' /system/etc/init.\ sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!FixEmissions..echo "" $sleep echo " Fix Emissions can run automatically on boot!" echo "" $sleep echo " *99SuperCharger would run FixEmissions. any key for No: " read bootfixemissions echo "" echo $line case $bootfixemissions in y|Y)fixemissions=1 if [ ! "`ls /system/etc/init. then echo " Fix Emissions has to run once fro m the menu!" echo $line echo "" $sleep echo $line fi echo " Fix Emissions Set To Run On Boot !".sh" ]. esac echo $line echo "" $sleep .sh 2 >/dev/null..

" read enter echo "" echo $line echo "" $sleep fi echo " Detailing On Boot. it runs every 4th boot!" echo "" $sleep echo $line echo -n " Current Status: Detailing " if [ "$detailing" -eq 0 ].so boot time would be unaffected!" echo "" $sleep echo " AND you can specify how often it runs." echo "" $sleep echo " This tool will optimize them with." echo "" $sleep echo " ..d/*SuperCharger* sed -i '/sleep 90. then sed -i '/!Detailing/d' /system/etc/init..sh & sleep 2.\ sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!Detailing.." echo "" $sleep echo " .SQLite VACUUM and REINDEX!" echo "" echo $line echo "" $sleep echo " Detailing can run automatically on boot!" echo "" $sleep echo " *99SuperCharger would run Detailing..so if you input 4.. \ sh /data/V6_SuperCharger/!Detailing. ...sh.sh 2>/dev/null.fragmented and unoptimized over a few days...echo -n " Press The Enter Key." echo "" $sleep echo " ...sh 2>/dev/null." echo " ====================" echo "" $sleep echo " You have many SQLite databases that become..." echo "" $sleep echo " ...d/*SuperCharger*`" ]..../ a\ sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!Detailing... then echo "DOES NOT Run On Boot!" else echo "Runs Every $detailinterval Boots!" fi echo $line echo "" $sleep echo $line echo " You can also configure this within the script!" echo $line echo "" $sleep if [ "`ls /system/etc/init.

*)echo " Invalid entry.13 still needs to be r un!" echo $line echo "" $sleep echo $line fi 2>/dev/null if [ ! -f "/data/V6_SuperCharger/!Detailing. the n echo " Detailing has to run once from the menu!" echo $line echo "" $sleep echo $line fi while :.. the n echo " An Option from 2 .' /system/etc/init. Please try again :p" echo $line...d/*SuperCharger*`" ].sh. *)detailing=0. fi echo $line echo "" $sleep echo -n " Press The Enter Key... detailinterval=0 sed -i '/!Detailing.d/*Su perCharger* 2>/dev/null echo " Declined Detailing On Boot!".*/detailinterval='$detailinterval'/' /data/V6_SuperCharger/!Det ailing. " read enter . esac if [ -f "/data/V6_SuperCharger/!Detailing.sh" ]. any key for No: " read bootdetailing echo "" echo $line case $bootdetailing in y|Y)detailing=1 if [ ! "`ls /system/etc/init.d/*SuperCharger* fi 2>/dev/null echo " Run Detailing on boot?" echo "" $sleep echo -n " Enter Y for Yes. do echo "" $sleep echo -n " How often? 1=every boot to 9=every 9th boot: " read detailinterval echo "" echo $line case $detailinterval in [1-9])echo " Detailing Set To Run Every $detailinterval Boots!" break...*/ detailinterval='$detailinterval'/' /system/xbin/vac. then sed -i 's/^detailinterval=..sleep 480. esac done. then sed -i 's/ ^detailinterval=.sh" ]. fi if [ -f "/system/xbin/vac" ].sh/s/^/# /' /system/etc/init.

then sed -i '/diff/. do if [ -f "$sc" ].\ cp -fr '$initrcpath' '$initrcpath1'.rc.. a SuperCharged init.with system files on boot using init. then\ mount -o remount..can always be found in /data!" echo $line $sleep echo " Note: You can bake $initrcpath into your ROM!" echo $line echo "" $sleep echo " Custom ROMs: Settings should stick either way!" echo "" echo $line echo "" $sleep for sc in /system/etc/init. any key for No: " read bake echo "" echo $line case $bake in y|Y)initrc=1 for sc in /system/etc/init. but can occur.rw rootfs 2>/dev/null.echo "" echo $line echo "" $sleep if [ "$preics" ]..sh /system/etc/hw_config.d/*SuperCharger* /d ata/99SuperCharger.\ busybox mount -o remount...ro rootfs 2>/dev/null.ro / 2>/dev/null.. do if [ -f "$sc" ]." echo "" $sleep echo " If it sticks." echo "" $sleep echo " .rc file.\ busybox mount -o remount..rw / 2>/dev/null." echo "" echo $line $sleep echo " Regardless." echo "" $sleep echo " ..\ busybox mount -o remount.\ mount -o remount.rw / 2>/dev/null.../I ntegration/d' $sc.$initrcpath1 Options.prop \`" ] && [ "\`diff '$initrcpath' '$initrcpath1'\`" ].\ .d/*SuperCharger* /data/99Supe rCharger." echo " ==================" echo "" $sleep echo " SuperCharger can attempt greater integration. then echo " System Integration . it makes for a much cleaner mod!" echo "" $sleep echo " Root access issues are rare.\ mount -o remount.\ mount -o remount. then sed -i '/remount.rw rootfs 2>/dev/null.ro / 2>/dev/null. fi.sh /system/etc/hw_config.r w \/data/ i\ if [ -f "'$initrcpath'" ] && [ "\`grep "SuperCharger" /system/build. done echo -n " Integrate? Enter Y for Yes.....sh.sh.

.. Animation is OFF.$fix align.$zepalign...$fixemissions.. fixemissions=0.$buildprop. Animation is ON..why this script is so popular :p" echo "" $sleep .$panicmode.$launcheradj.. :D". :/". esac echo $line echo "" $sleep else initrc=0 fi else initrc=0.. *)animation=1 echo " Yay..$initrc.$tc3g" > /data/ V6_SuperCharger/SuperChargerOptions cp -fr /data/V6_SuperCharger/SuperChargerOptions $storage/V6_SuperCharg er/SuperChargerOptions echo " Driver Options Have Been Saved!" echo "" $sleep echo $line echo " Now Off To The Races!" firstgear=.." echo "" $sleep echo " .busybox mount -o remount.$detailinterval. zepalign=0.missingoptions=. # System Integration Marker' $sc fi done echo " System Integration of $initrcpath1 i s now ON!".$animation.$miscsd...ro rootfs 2>/dev/null. any key for No: " read animate echo "" echo $line case $animate in y|Y)animation=0 echo " Boo. fixalign=0..\ fi 2>/dev/null. 30)echo " =================" busybox echo " //// OFF TOPIC \\\\\\\\" echo $line echo "" $sleep echo " Ok this is \"Off Topic\".. esac echo $line echo "" $sleep echo "$speed... det ailinterval=0 fi echo " Disable AWESOME V6 Animation? (Say \"NO\"!) :P" echo " =======" echo "" $sleep echo -n " Enter Y for Yes.." echo "" $sleep echo " .. *)initrc=0 echo " System Integration of $initrcpath1 i s now OFF!"..$detailing.. detailing=0..but maybe there's a good reason.

. 31)echo $line echo " !!POOF!!" echo $line echo "" sleep 2 busybox sync if [ -f "/proc/sys/kernel/sysrq" ]. just reboot manually!" echo "" reboot. esac if [ "$opt" -ne 0 ] && [ "$opt" -ne 1 ] && [ "$opt" -ne 14 ] && [ "$opt" -ne 15 ] && [ ! "$opt" -gt 26 ] && [ "$ram1" -ne "$ram2" ].echo " It's profound.. 32)echo " ===================" busybox echo " //// SUPERCLEAN! \\\\\\\\" if [ "$ram1" -ne "$ram2" ].gl/0 dMcp" echo "".... Press the Enter Key to continue.." echo "" $sleep echo " .) " read enter echo "" opt=69.." echo "" $sleep echo " ..." echo "" $sleep echo " . 33)echo " Did you find this useful? Feedback is welcome!". then opt=69... busybox reboot..and you may learn something. fi ...." echo "" $sleep echo " . fi.. *) echo " #!*@%$*?%@&)&*#!*?(*)(*)&(!)%#!&?@#$*%&?&$%$*#?!" echo "" sleep 2 echo " oops.. autoresuperch arge=. . I'm not crazy.... so just read the link. then echo 1 > /proc/sys/kernel/sysrq 2>/dev/null echo b > /proc/sysrq-trigger 2>/dev/null fi echo " If it don't go poofie...and decide for yourself if it makes sense!" echo "" $sleep echo " If you don't like it. remember.... typo?! $opt is an Invalid Option!" echo "" sleep 2 echo " 1 <= Valid Option => 33 !!" echo "" sleep 2 echo -n " hehe..... firstgear=. showparlor=...don't shoot the messenger!" echo "" $sleep echo " Either way. then opt=26..even if you're a doctor!" echo "" echo $line echo "" sleep 4 su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start http://goo.

then echo " Perceptible App Priority is: $PA" echo "" $sleep fi echo " Visible App Priority is: $VA" echo "" echo $line .0f. $5/256. %..0f. then echo "" $sleep echo $line if [ "$launcheradj" -eq 0 ].0f.0f MB\n". then echo " $lname is the home launcher!" echo $line echo "" $sleep echo -n " But verify groupings with the bOOM Stick" if [ "$lname" = "android. then echo " BULLETPROOF LAUNC HER!" elif [ "$launcheradj" -eq 2 ]. t hen echo ". $2/256. $1/256. $3/256. $6/256}' echo "" echo $line if [ "$lname" ]." echo "" $sleep echo " ..acore" ] && [ ! "$diehard" ]. $4/256.0f. then echo " HARD TO KILL LA UNCHER!" else echo " DIE-HARD LAUNCHER!" fi fi if [ "$opt" -le 25 ] || [ "$opt" -eq 32 ]. '{printf " Which means: %.if [ "$preics" ] && [ "$opt" -ge 2 ] && [ "$opt" -le 10 ]. %. %.0 f.process. %.since I'm not 100% sure.. then echo $line echo "" $sleep fi if [ "$opt" -eq 1 ]. lol" else echo "!" fi echo "" echo $line fi echo "" $sleep echo " Home Launcher Priority is: $HL" echo "" $sleep echo " Foreground App Priority is: $FA" echo "" $sleep if [ "$gb" -eq 1 ] || [ "$servicesjarpatched" ].. %. then echo " Out Of Memory (OOM) / lowmemorykiller values:" echo "" $sleep echo " "$currentminfree pages echo "" $sleep echo $currentminfree | awk -F ...

. that's one weak ass launcher! :(" elif [ "$status" -eq 3 ].." echo "" $sleep echo $line echo " Wow..and is less than Visible App..... then echo " Launcher is greater than Visible App.....Home Launcher is \"Locked In Memory\"!" echo "" $sleep echo $line echo " meh..and is less than Visible App." echo "" $sleep if [ "$gb" -eq 1 ] || [ "$servicesjarpatched" ]..." echo "" $sleep echo $line echo " Home Launcher is BULLETPROOF!" elif [ "$status" -eq 1 ]. then echo " ..." echo "" $sleep echo $line echo " Home Launcher is very HARD TO KILL!" fi ..echo "" $sleep if [ "$status" -eq 4 ]..." echo "" $sleep fi echo " . then echo " Launcher is equal to Foreground App.is less than Perceptible App.. then echo " ...is less than Perceptible App. that's still pretty weak! :P" elif [ "$status" -eq 0 ]....." echo "" $sleep echo $line echo " Home Launcher is DIE-HARD!" else echo " Launcher is greater than Foreground App.." echo "" $sleep echo " ." echo "" $sleep fi echo " .." echo "" $sleep if [ "$gb" -eq 1 ] || [ "$servicesjarpatched" ]. then echo " Launcher is greater than Foreground App.." echo "" $sleep if [ "$gb" -eq 1 ] || [ "$servicesjarpatched" ]... then echo " ..is equal to Perceptible App..and is less than Visible App....." echo "" $sleep fi echo " .. then echo " Launcher is equal to Visible App.

. then echo "" $sleep echo " Re-BulletProof Apps too?" echo "" $sleep echo -n " Enter N for No.$6/256 " MB"}' $storage/V6_SuperCharger/SuperCharger Minfree echo "" $sleep echo " Re-SuperCharge from $storage?" echo "" $sleep echo -n " Enter Y for Yes.RAM /d*/system/packages.. then if [ "$autoresupercharge" ].".elif [ "$opt" -le 33 ]. any key for Ye s: " read rebullet echo "" echo $line case $rebullet in n|N).$5/256". then echo $line echo " WARNING: Incompatibilty Error!" echo $line echo "" $sleep echo " A memory app of questionable integrity found!" echo "" $sleep echo " To ensure REAL SUPERCHARGING. any key for No: " read resuper echo "" fi echo $line case $resuper in y|Y)CONFIG=Re-Super if [ -f "$storage/V6_SuperCharger/97BulletProof_ Apps. then if [ "`grep artprojects." echo " ============================" echo "" $sleep echo " You need to uninstall that \"cr-app\" :/" opt=33 fi 2>/dev/null fi if [ "$opt" -eq 24 ]." echo "" $sleep awk -F .".$4/256"..with A REAL SUPERCHARGED LAUNCHER.. then if [ "$opt" -le 13 ] || [ "$opt" -eq 24 ]." echo " ==================" echo "" $sleep echo " .sh" ] && [ -f "$storage/V6_SuperCharger/BulletProof_Apps_HitList" ]. then resuper=Y else echo " Your previous V6 SuperCharger Settings are...$3 /256".$2/256".. '{print " "$1/256"."."...". *)rebulletproof=yes if [ "`ls $storage/V6_Su .xml`" ].

'{print $6/256}'` . autoshowcalculated= MB1=`echo $scminfree | awk -F .sh" ]. then echo " .sh /data/V6_SuperCharger... then cp -fr $storage/V6_SuperCharger/97Bulle tProof_Apps.your PowerShift Scripts.sh" ]. then cp -fr $storage/V6_SuperCharger/*BulletPr oof_Apps /system/etc/init. then cp -fr $storage/V6_SuperCharger/!FixAlignment..sh /data/V6_SuperCharg er.d.. then echo " .sh /data/V6_SuperCharg er.sh /data/V6_SuperCharger. then scminfree=`cat /data/V6_SuperCharger/SuperChargerMinfree`.MB6=`echo $scminfree | awk -F .sh /data/V6_SuperCharger.. $sleep.your \"Quick Widget\" Scripts. then cp -fr $storage/V6_SuperCharger/*SuperCharger /system/etc/init. then cp -fr $storage/V6_SuperCharger/BulletPro of_Apps* /data/V6_SuperCharger. sh" ]. then cp -fr $storage/V6_SuperCharger/!WheelAlignment. '{print $4/256}'`.. cp -fr $stor age/V6_SuperCharger/99SuperCharger. then cp -fr $storage/V6_SuperCharger/!FixEmissions. fi if [ -f "$storage/V6_SuperCharger/!FixEmissions.. then scadj=`cat /data/V6_SuperCharger/SuperChargerAdj`.sh /data/V6_SuperC harger.".sh /data. fi echo " .d.. $sleep.. fi if [ -f "$storage/V6_SuperCharger/!WheelAlignmen t. $sleep.MB4=`echo $scminfree | awk -F .. fi 2>/dev/null if [ "`ls $storage/V6_SuperCharger/*SuperCharger `" ]... fi if [ -f "$storage/V6_SuperCharger/!FixAlignment.all \"Terminal Emulator\" Scripts ..sh" ]. $sleep.".. cp -fr $storage/V6_SuperCharger/!FastEngineFlush. fi 2>/dev/null if [ -f "$storage/V6_Sup erCharger/97BulletProof_Apps." echo $line echo "" $sleep if [ "`ls $storage/V6_SuperCharger/SuperCharger* `" ]. fi if [ -f "$storage/V6_SuperCharger/!FastEngineFlu sh. cp -fr $storage/V6_Su perCharger/SuperCharger* /data/V6_SuperCharger.your Driver Options. then cp -fr $storage/V6_SuperCharger/!SuperClean. fi. ". then echo " .. fi 2>/dev/null if [ -f "$storage/V6_SuperCharger/99SuperCharger .sh" ].". '{print $2/256}'`.".. cp -fr $storag e/V6_SuperCharger/PowerShift_Scripts /data/V6_SuperCharger.sh /data. then cp -fr $storage/V6_SuperCharger/BulletProof_One_Shots /data/V6_ SuperCharger.. then cp -fr $storage/V6_SuperCharger/!Detailing. then ec ho " .sh" ]. then echo " . '{print $1/256}'`. esac fi echo " Re-SuperCharging from $storage.. ReSuperCh arge=1.. dd if=$0 of=/system/xbin/v6 2>/dev/null if [ -f "/data/V6_SuperCharger/SuperChargerAdj" ]. sh" ]. fi if [ -f "/data/V6_SuperCharger/SuperChargerMinfr ee" ]. $sleep. fi if [ -d "$storage/V6_SuperCharger/BulletProof_On e_Shots" ].MB3=`echo $scminfree | awk -F . fi if [ -f "$storage/V6_SuperCharger/!SuperClean..sh" ].your BulletProof Apps Settings.perCharger/*BulletProof_Apps`" ]. fi if [ -f "$storage/V6_SuperCharger/!Detailing.your SuperCharger Settings. '{print $5/256}'`. fi if [ -f "/data/97BulletProof_Apps..".. '{print $3/256}'`. fi 2>/dev/null if [ "`ls $storage/V6_Su perCharger/BulletProof_Apps*`" ]. fi if [ -d "$storage/V6_SuperCharger/PowerShift_Scr ipts" ]...MB2=`echo $scminfree | awk -F .sh " ]. MB5=`echo $scminfree | awk -F ....

'{print $7}' /data/V6 _SuperCharger/SuperChargerOptions` zepalign=`awk -F . chmod 777 /system/xbin/v6 2>/dev/null if [ "`ls /data/*.sh" ] .. fi 2>/dev/null if [ -f "/data/V6_SuperCharger/!FastEngineFlush. chmod 777 /da ta/V6_SuperCharger/* chown 0. then chown 0. '{print $11}' / .0 /system/etc/init.d/* 2>/dev/null chown 0. '{print $5}' /data /V6_SuperCharger/SuperChargerOptions` panicmode=`awk -F . '{print $3}' /data/V 6_SuperCharger/SuperChargerOptions` initrc=`awk -F .sh" ]..finished copying files to /system and /data!" echo $line echo "" $sleep if [ -f "/data/V6_SuperCharger/SuperChargerOptio ns" ].sh. fi if [ -f "/data/V6_SuperCharger/!FixEmissions. sh" ]. '{print $6}' /data/V 6_SuperCharger/SuperChargerOptions` fixalign=`awk -F . then cp -fr /data/V6_SuperCharger/!Detailing.0 /data/* . '{print $10}' /data/ V6_SuperCharger/SuperChargerOptions` detailinterval=`awk -F . fi if [ -f "/data/V6_SuperCharger/!Detailing. '{print $4}' /data/V6_S uperCharger/SuperChargerOptions` launcheradj=`awk -F .s h" ].sh /system/xbin/fixalign.sh`" ]. '{print $9}' /dat a/V6_SuperCharger/SuperChargerOptions` detailing=`awk -F .d/* 2>/dev/null.0 /data/V6_SuperCharger/*. fi echo "" echo $line $sleep echo " .sh" ]. chmod 777 /data/*.sh /system/xbin/zepalign . '{print $8}' /data/V6 _SuperCharger/SuperChargerOptions` fixemissions=`awk -F . chmod 777 /data/V6_SuperCharger/PowerShift_Scripts/* 2>/dev/nu ll chown 0. then firstgear= speed=`awk -F . then cp -fr /data/V6_SuperCharger/!WheelAlignment.fi chown 0. chmo d 777 /system/etc/init.sh" ].sh /system/xbin/vac.0 /data/V6_SuperCharger/PowerShift_Scrip ts/* 2>/dev/null.0 /data/V6_SuperCharger/BulletProof_One_ Shots/* 2>/dev/null. then cp -fr /data/V6_SuperCharger/!FastEngineFlush.sh /system/xbin/sclean. '{print $2}' /data/V 6_SuperCharger/SuperChargerOptions` animation=`awk -F . then cp -fr /data/V6_SuperCharger/!FixEmissions. fi if [ -f "/data/V6_SuperCharger/!SuperClean. then cp -fr /data/V6_SuperCharger/!SuperClean. then cp -fr /data/V6_SuperCharger/!FixAlignment.0 /system/xbin/v6 2>/dev/null. '{print $1}' /data/V6_Su perCharger/SuperChargerOptions` buildprop=`awk -F .sh. fi if [ -f "/data/V6_SuperCharger/!WheelAlignment.sh /system/xbin/flush.sh /system/xbin/fixfc. chmod 777 /data/V6_SuperCharger/BulletProof_One_Shots/* 2>/ dev/null chown 0. fi if [ -f "/data/V6_SuperCharger/!FixAlignment.

then launcherad j=1.PROP" fi echo $line $sleep echo -n " SuperCharged Launcher Option is" if [ "$launcheradj" -eq 0 ]. then zepalign=0.. then echo "LO CAL. then f lushOmaticHours=0. kpoops=1. then echo " Hard To Kill!" else echo ". fi if [ ! "$fixalign" ]. fi if [ ! "$detailing" ]. then echo -n " Prop file used for SuperCharg ing . fi if [ ! "$tc3g" ]. '{print $12}' /data/V6_ SuperCharger/SuperChargerOptions` tc3g=`awk -F . fi if [ ! "$miscsd" ]. missingop tions=yes. then detaili nterval=3. f i if [ ! "$fixemissions" ]. then prop="/s ystem/build. then panicmode=1. then echo " BulletProof!!" elif [ "$launcheradj" -eq 2 ]. fi if [ ! "$flushOmaticHours" ] || [ "`echo $flushOmaticHours | grep "[^0-9]"`" ] || [ "$flushOmaticHours" -gt 24 ]. f i if [ ! "$zepalign" ]. Die-Hard!!" fi echo $line . then miscsd=0. then fixemissi ons=0.prop" fi if [ ! "$detailinterval" ] || [ "`echo $ detailinterval | grep "[^0-9]"`" ] || [ "$detailinterval" -gt 9 ]. then detailing=0." if [ "$buildprop" -eq 0 ]. then tc3g=0. fi if [ ! "$launcheradj" ].prop" else prop="/data/local. fi fi echo $line echo " Prior Scrolling Speed has been applied $speed" echo $line $sleep if [ "$preics" ]. fi if [ ! "$panicmode" ].data/V6_SuperCharger/SuperChargerOptions` miscsd=`awk -F .. kpanic=30. '{print $13}' /data/V6_Su perCharger/SuperChargerOptions` flushOmaticHours=`grep "^flushOmaticHour s=" /data/V6_SuperCharger/!FastEngineFlush.sh | sed 's/flushOmaticHours=//'` 2>/ dev/null sleep="sleep $speed" if [ "$buildprop" -eq 1 ]. then fixalign=0.PROP" else echo "BUILD. then detailin terval=3. fi if [ ! "$detailinterval" ].

then echo "NO! " else echo "YES!" fi echo $line $sleep echo -n " Fix Emissions (Fixes FCs) Run s On Boot .Disco Dance!" else kpanic=30. then kpanic=0." if [ "$fixemissions" -eq 0 ]. then echo -n " Fix Alignment (Dual Tool) Run s On Boot . kpo ops=1. then kpanic=30. then kpanic=30. echo " are Rock Hard!" elif [ "$panicmode" -eq 2 ]." if [ "$miscsd" -eq 0 ]." if [ "$zepalign" -eq 0 ]. then echo " . echo " ala Soft Rock!" fi echo $line $sleep echo -n " Miscellaneous and SD Card Speed Tweak s . echo " . kpo ops=0. kpoops=1.Enabled @ Ev ery . then echo "NO!" else echo "YES!" fi echo $line $sleep if [ "$flushOmaticHours" -eq 0 ]. then echo "NO! " else echo "YES!" fi echo $line $sleep if [ "$detailing" -eq 0 ]. then echo "NO!" else echo "YES!" fi echo $line $sleep echo -n " Wheel Alignment(ZipAlign) Run s On Boot .d" ]. kpoops =0." if [ "$fixalign" -eq 0 ]. then echo " E ngine Flush-O-Matic Mode is Currently . echo " ." if [ "$tc3g" -eq 0 ].Rock & Roll!" elif [ "$panicmode" -eq 0 ].OFF!" else echo " Engine Flush-O-Matic .$sleep fi echo -n " Kernel & Virtual Memory Tweaks" if [ "$panicmode" -eq 3 ]. then echo "NO!" else echo "YES!" fi echo $line $sleep echo -n " 3G TurboCharger Enhancement(3GTC Addo n).$flushOmaticHours"hrs fi echo $line $sleep if [ -d "/system/etc/init.

" echo "" $sleep echo " After Re-S uperCharging!" echo "" echo $line echo "" $sleep fi echo " If you previously used Terminal to execut e..Driver Options will be load ed." echo "" $sleep echo $line echo " Those commands will work automagically !" echo $line echo "" $sleep echo " But to avoid conflicts (different rom. then echo -n " System Integration of $initrcpath1 Setting .... then echo $line echo " Missing Some NEW Option s!!" echo $line echo "" $sleep echo " You need to refresh them so......." echo "" $sleep echo " \"v6\" or \"flush\" or \"vac\" or \"fixal ign\" or..." echo "" $sleep echo " . then ech o "ON!" else echo "OFF!" fi echo $line $sleep fi fi echo "" if [ "$missingoptions" ]." echo "" $sleep echo " ." if [ "$initrc" -eq 1 ]...Detailing(Clean Database) Runs On Boot .." echo "" . et c)..NO!" else echo " Detailing(Clean Database) R uns Every $detailinterval Boots!" fi echo $line $sleep if [ "$preics" ].\"fixfc\" or \"zepalign\" or \" sclean\".

.".SL3=$(($MB3*256)). '{print $1}'`.$SL2.adj4=`e cho $scadj | awk -F . fi if [ "$opt" -le 13 ].. th en cp -fr /data/V6_SuperCharger/SuperCharge rMinfree /data/V6_SuperCharger/SuperChargerMinfreeOld scminfreeold=`cat /data/V6_SuperCharger/ SuperChargerMinfreeOld` fi SL0=$(($MB0*256)).adj2=`echo $s cadj | awk -F .$SL6" > /data/V6_ SuperCharger/SuperChargerMinfree scminfree=`cat /data/V6_SuperCharger/SuperCharge rMinfree` elif [ "$scminfree" ].some system files were not rest echo "" $sleep echo " Nitro Lag Nullifier and 3G TurboCharger.. fi if [ -f "$storage/SuperChargerHelp..adj3=`echo $scadj | awk -F . then echo -n " zOOM. . echo -n "zOOM... esac fi if [ "$opt" -le 14 ].SL3=`echo $scminfree | awk -F .html. fi if [ -f "$storage/SuperChargerScriptManagerHelp.. echo "" echo "" echo $newscadj > /data/V6_SuperCharger/SuperChargerAdj scadj=`cat /data/V6_SuperCharger/SuperChargerAdj` adj1=`echo $scadj | awk -F . .. then if [ -f "$storage/UnSuperCharged. *)echo " Re-SuperCharging Declined. meh. then rm $storage/ UnSuperChargerError." echo "" echo $line echo "" $sleep opt=12...html" ]. then if [ "$scminfree" ] && [ ! "$scminfreeold" ].html" ]." echo "" $sleep echo " lled!" echo "" echo $line echo "" $sleep echo " But this comes first. sleep 2. then rm $storage/Sup erChargerHelp.SL2=$(($MB2* 256)).html.$SL5.a dj6=`echo $scadj | awk -F .html" ]. ".$sleep echo " ored!" . fi if [ -f "$storage/UnSuperChargerError. then SL0=$(($MB0*256)). '{print $2}'`.SL2=`echo $scminfree | awk -F .. then rm $storage/SuperChargerScriptManagerHelp. '{print $2}' `. '{print $6}'` if [ "$opt" -le 10 ] || [ "$ReSuperCharge" -eq 1 ]... '{print $4}'`.html" ].. '{print $5}'`.adj5=`echo $scadj | awk -F .$SL4. heh. '{print $3}'`.SL1=$(($MB1*256))... '{print $1}'`.$SL3.. sleep 2 .html.SL4=`echo $scminfree | awk -F .SL1=`echo $scminfree | awk -F . then rm $storage/UnSup erCharged.html. '{print $3}'`.SL5=$(($MB5*256)).SL6=$(($MB6*256)) echo "$SL1.may need to be re-insta .SL4=$(($MB4*256))."...

.prop.$initrc. '{print $6}'` fi echo "============== Information Panel =============" echo " =====================" echo "" $sleep if [ "$showbuildpropopt" -eq 1 ].$detailinterval.. '{print $5}'`. *)buildprop=0 prop="/data/local..$animation. will try local...prop" echo " Okay.$laun cheradj..'{print $4}'`..prop method!"..prop met hod again..$zepalign.." echo "" $sleep echo " . $miscsd. will use the build.prop" echo " Okay.."." echo "" $sleep echo " To apply MEM and ADJ values.Your launcher is NOT SuperCharg ed..... esac echo "" $sleep echo "$speed. any key for No: " read buildpropopt echo "" case $buildpropopt in y|Y)buildprop=1 prop="/system/build..prop?" echo "" $sleep echo -n " Enter Y for Yes..SL6=`echo $scminfree | awk -F .SL5=`echo $scminfree | awk -F .instead of local. .." echo "" $sleep echo $line echo " WARNING: There is a small chance of bootl oops!" echo "" $sleep echo " ..$tc3g" > /data/V6_SuperCharger/SuperChargerOptions ..$fixemissions." echo "" $sleep echo " . prop!" echo "" $sleep echo " This is more likely to work but riskier...$detailing.$buildprop. then echo " Even though you SuperCharged before.$fixalign....so have a backup avail able!" echo $line echo "" $sleep echo " Do you want to use Build.You can try and use build." echo "" $sleep echo " .$panicmode.

unsuper" ]..unsuper if [ "`diff $p $p.. fi for rc in $initrcpath1 $allrcpaths /system/etc/hw_config ..prop /system/etc/ram..unsuper`" ].conf. then if [ -f "$p.unsuper echo " . then echo " Found $rc!" echo "" $sleep if [ "$rc" = "$initrcpath1" ]. leaving backup intact" else echo " Backing up ORIGIN ." echo "" $sleep cp -r $p $p. do if [ -f "$rc" ]. then echo " Backup already exists.sh. then cp -r $initrcpath1 $initrcpath. then if [ -f "$initrcbackup" ]. t hen echo " ERROR BACKING UP $p!" else sed -i '/SuperCharger In stallation/d' $p. do if [ -f "$p" ]..." else echo " Backing up ORIGINAL ${p## */}.as $p . then echo "LOCAL.prop /system/build.prop /system/bin /build. then echo -n " MEM and ADJ values to be applied to " if [ "$buildprop" -eq 0 ]..unsuper!" fi fi echo "" $sleep fi done echo $line if [ "$preics" ]..cp -fr /data/V6_SuperCharger/SuperChargerOptions $storage/V6_SuperCharger/SuperChargerOptions echo " Settings have been saved!" echo "" $sleep echo " Note: This can be changed later under Opt ions!" echo "" echo $line echo "" $sleep fi for p in /data/local.PROP !" else echo "BUILD.PROP!" fi echo $line fi echo "" $sleep if [ -f "$initrcpath1" ] && [ ! -f "$initrcpath" ]. then echo " Leav ing ORIGINAL ${p##*/} backup intact.

.. then echo -n "/" fi if [ "$preics" ] && [ "$opt" -ge 11 ] && [ "$opt" -le 13 ] && [ "$ReSuperCharge" -eq 0 ]." echo $line $sleep echo " ." echo "" $sleep echo $line fi echo -n " " if [ "$rc" = "$initrcpath1" ] && [ "$initrc" -eq 0 ]. then echo "!" else echo ".AL settings. leaving backup intact" else echo " Backing up ORIGINAL setti ngs..unsuper" ].... then echo " B ackup already exists.unsuper if [ "`diff $rc $rc." cp -r $rc $initrcbackup if [ "`diff $rc $initrcb ackup`" ].unsuper`" ].it wi .. then echo -n "/data/" elif [ "$rc" = "$initrcpath1" ].... then echo "${rc##*/} w ill be OOM Fixed!" else echo -n "${rc##*/} will be SuperCharged" if [ "$rc" = "$initrcpat h1" ].sh" ]. then echo $line if [ "$rc" = "$initrcpath1" ] && [ "$initrc" -eq 0 ]." echo "" $sleep echo " But for cooking/b aking into ROMs.. then echo "" echo " System Integratio n of $rc is OFF. then echo "" $sleep echo " ERROR BAC KING UP $rc!" fi fi elif [ -f "$rc." cp -r $rc $rc... then echo "" $sleep echo " ERROR BACKING UP $rc!" fi fi echo "" $sleep if [ "$preics" ] && [ "`grep -ls "on boo t" $rc`" ] && [ "$rc" != "/system/etc/hw_config..

then echo " I Got Nothing To Do! Try SuperCharging fi rst!" echo "" $sleep UnSuperCharged=1 cat > $storage/UnSuperCharged.*/d' $rc sed -i '/random\/read_wakeup_threshold. then sed -i '/.. UnSuperCharging Performance.*_MEM/d' $rc sed -i '/write \/sys\/module\/lowmemoryk iller/d' $rc else sed -i '/write \/sys\/module\/lowmemorykill er\/parameters\/adj/d' $rc fi sed -i '/vm\/..*/d' $rc sed -i '/kernel\/panic. fi done else echo " UNSUPERCHARGE..UNFIX OOM GROUPINGS. then echo $line.. do sed -i '/#=#/.sh" ].." echo "" sleep 1 echo " .*_ADJ/d' $rc if [ "$scminfree" ].*min_free_kbytes*/d' $rc sed -i '/vm\/..*/d' $rc sed -i '/vm\/...*/d' $rc sed -i '/vm\/." echo "" sleep 1 echo " ./SuperCharged_Service/d' $rc./.RESTORE WEAK ASS LAUNCHER" echo "" echo $line $sleep echo " Boo.*swappiness." echo $line echo "" $sleep if [ ! -f "`ls /system/etc/init../KVM Tweaks/d' $rc sed -i '/.d/*BulletPr oof_Apps*`" ] && [ ! -f "$initrcpath" ] && [ ! -f "$initrcbackup" ] && [ ! "$all rcbackups" ]..*/d' $rc sed -i '/bdi\/read_ahead_kb/d' $rc if [ "$opt" -le 10 ] || [ "$ReSuperCharge" -eq 1 ]..*V6 SuperCharged/d ' $rc sed -i '/.d/*SuperCharger*`" ] && [ ! -f "`ls /data/*SuperCharger*`" ] && [ ! -f "`ls /system/etc/init..*oom..ll also run The SuperCharger Service!" fi fi elif [ "$opt" -le 10 ] || [ "$ReSuperCha rge" -eq 1 ] && [ "$rc" != "$initrcpath1" ] && [ "$rc" != "/system/etc/hw_config . then sed -i '/SuperCharger_Service/. echo " It will run The SuperCharger Service!" fi echo $line echo "" $sleep fi done for rc in $initrcpath $allrcpaths.*V6 SuperCharger/.html <<EOF There was nothing to uninstall!<br> <br> .*overcommit_memory.

unsuper.<br> See the <a href="http://goo.net/forum/droid-hacks/148268-script-v6-supercharger-htk-bulletproof-la unchers-fix-memory-all-androids. then echo " ERROR.dr oidforums..@ <a href="http://goo.dr oidforums. rm $rc.unsuper" ] && [ ! -s "$rc. then echo " BACKUP FOUND!" echo "" $sleep echo " Restoring $initrcpath1.html">Droid</a> Forums<br> EOF echo $line echo " See $storage/UnSuperCharged..." echo "" echo $line echo "" $sleep cp -fr $initrcbackup $initrcpath1 rm $initrcbackup fi for rc in $allrcpaths.net/forum/droid-hacks/148268-script-v6-supercharger-htk-bulletproof-la unchers-fix-memory-all-androids..gl/qM6yR">XDA</a> & <a href="http://www.html for assi stance!" echo $line echo "" $sleep else if [ -f "$initrcpath" ].gl/qM6yR">XDA</a> & <a href="http://www. $rc. then rm $initrcpath.unsuper" ].gl/qM6yR">V6 SuperCharger Thread</a><br> Feedback is Welcome!<br> <br> -=zeppelinrox=.html">Droid</a> Forums<br> EOF echo $line echo " See $storage/UnSuperCharg . continue elif [ ! -f "$rc.For more SuperCharging help and info... then rm $rc.html <<EOF The backup file." echo "" $sleep echo " AN RC BACKUP WAS NOT FOUND!" echo "" $sleep echo " CAN'T restore some default values!" echo "" sleep 3 UnSuperChargerError=1 cat > $storage/UnSuperChargerErr or. ER ROR. ERROR.unsuper. do if [ -f "$rc. ERROR.u nsuper" ]...<br> See the <a href="http://goo...gl/qM6yR">V6 SuperCharger Thread</a><br> Feedback is Welcome!<br> <br> -=zeppelinrox=. WAS NOT found!<br> Please do a manual restore of $rc from your ROM's update file!<br> <br> For more SuperCharging help and info. fi if [ -f "$initrcbackup" ].@ <a href="http://goo.

.unsuper $rc echo "" fi echo $line echo "" $sleep done fi 2>/dev/null fi for p in /data/local.html for help!" if [ "${rc##*/}" != "init./. then echo " Cleaning ADJ values from ${p##*/}. then if [ "$UnSuperCharged" -ne 1 ].prop /system/bin/build.d/*SuperCharger*`" ].*V6 SuperC harged/d' $p sed -i '/. then if [ "$opt" -eq 14 ] || [ "$opt" -le 10 ] || [ "$ReSuper Charge" -eq 1 ] && [ ! "$newsupercharger" ]..*_ADJ/d' $p if [ "$UnSuperCharged" -ne 1 ].erError.conf./BulletProofed_Apps_Service/d' $rc echo " Cleaned "$rc echo "" fi else echo " UND!" echo "" $sleep echo " Restoring ${rc##*/}.*_ME M/d' $p.*V6 SuperCharger/. then if [ "$opt" -eq 14 ] && [ ! -f "$p.*V6 SuperCharg er/.rc" ] . do if [ -f "$p" ].*V6 SuperCharged/d' $rc sed -i '/SuperCharger_Se rvice/./SuperCharged_Service/d' $rc sed -i '/BulletProof_App s_Service/." echo "" $sleep fi if [ "$scminfree" ]." echo "" $sleep fi sed -i '/. then BACKUP FO ../KVM Tweak s/d' $rc sed -i '/." mv $rc.. then echo $line echo "" sleep 4 sed -i '/#=#/./.p rop /system/etc/ram...prop /system/build. fi fi fi done if [ "`ls /system/etc/init. then sed -i '/. then echo " Cleaning MEM values from ${p##*/}.unsuper" ] || [ "$opt" -le 13 ].

fi if [ -f "/system/xbin/zepalign" ]. then rm /system/xbin/fix fc. then sed -i '/. the n rm /system/etc/init.d/*SuperCharger* fi 2>/dev/null if [ -f "/data/99SuperCharger.d/*BulletProof_Apps*. then rm /data/*-\(*\).*V6 SuperCharged/d' /system/etc/hw_config. then rm /data/*Super Charger*.. then rm -r /data/V6_S uperCharger. fi 2>/ dev/null if [ -f "/data/local/userinit. then if [ "$opt" -eq 14 ] || [ "$opt" -le 10 ] || [ "$ReSuper Charge" -eq 1 ] && [ ! "$newsupercharger" ]..sh. then rm /data/SuperCharger*.sh if [ "$UnSuperCharged" -ne 1 ] && [ ! "$newsupercharger" ]. then if [ -d "/data/V6_SuperCharger" ]. fi if [ -f "/system/xbin/fixfc" ]." echo "" $sleep fi fi if [ "$opt" -eq 14 ].d/*BulletProof_Apps*`" ].sh`" ]./. fi 2>/dev/null if [ "`ls /system/etc/init.sh. then rm /system/xbin/ . fi 2>/dev/null if [ -f "/system/xbin/v6" ].sh" ]. then rm /system/xbin/vac. fi if [ -f "/system/xbin/fixalign" ]. then echo " Cleaning Up SuperCharge from /data folder " echo "" $sleep echo " Cleaning Up Grouping Fixes from /data fol der" echo "" $sleep fi rm /data/99SuperCharger. fi 2>/dev/null if [ "`ls /data/*SuperCharger*`" ].sh . fi 2>/dev/null if [ "`ls /data/*-\(*\). fi if [ -f "/system/xbin/vac" ].echo " Cleaning Up SuperCharge from /init. then rm /system/xbin/v6.*V6 SuperCh arger/. fi if [ "`ls /data/*BulletProof_Apps*`" ].d f older" echo "" $sleep fi rm /system/etc/init.d fold er" echo "" $sleep echo " Cleaning Up Grouping Fixes from /init.sh fi if [ "`ls /data/SuperCharger*`" ]. then rm /system/xbin/flu sh. then sed -i '/.sh" ]. then rm /system/xbin/ fixalign.sh" ]. then echo " Cleaning Up SuperCharge from hw_config. fi if [ -f "/system/etc/hw_config.*SuperCharge r/d' /data/local/userinit. then rm /data/*B ulletProof_Apps*. fi if [ -f "/system/xbin/flush" ].

.. then echo " Your ROM's default minfree values are restored!" echo "" echo $line fi if [ ! "$servicesjarpatched" ]..unsuper $p fi done echo " Removed Kernel & Virtual Memory Tweaks.... then echo "" $sleep echo " Out Of Memory (OOM) Groupings UnF ixed... fi if [ "$UnSuperCharged" -ne 1 ].sh /system/etc/ram. do if [ -f "$p. rm $p. " echo "" $sleep if [ "$miscsd" -eq 1 ]." echo "" $sleep fi if [ "$tc3g" -eq 1 ].prop /system/etc/hw_config..prop /system/build.OOM Priorities UnFixed.. then echo " .." echo "" $sleep echo " Weak Ass Launche r Restored :(" echo "" $sleep echo $line echo " UnSuperCharging Complet e!" echo $line echo "" $sleep echo " REBOOT NOW... then rm /system/xbin/sc lean." .. then rm $p. then echo " Restoring ORIGINAL ${p##* /}. then for p in /data/local. fi if [ -f "/system/xbin/sclean" ].zepalign...uns uper" ].." echo "" $sleep mv $p.conf.unsuper" ] && [ ! -s "$p." echo "" $sleep echo " .. then echo " ..unsuper" ]..unsuper elif [ -f "$p.Removed Miscellaneous & SD Sp eed Tweaks." echo "" $sleep fi if [ "$UnSuperChargerError" -ne 1 ].prop /sy stem/bin/build.3G TurboCharger E nhancement.

echo "" $sleep echo " TAKE EFFECT!"

...FOR UNSUPERCHARGE TO

echo "" fi scminfree=;sccminfree=;scminfreeold=;bpapplist=; allrcbackups=;ran=0;minfrees=0 fi if [ "$servicesjarpatched" ] && [ -f "$storage/V6_SuperC harger/services.jar.unsuper" ]; then UnIScream=yes; fi else if [ "$opt" -le 10 ] || [ "$ReSuperCharge" -eq 1 ]; then if [ "$opt" -eq 10 ]; then echo $line echo "" if [ "$restore" -eq 1 ]; then echo " Restoring Prior Cust-OOMizer Settings!" else if [ "$sccminfree" ] && [ "$calc ulatorcharge" -eq 0 ]; then echo " Removing Prior Cu st-OOMizer Settings..." echo "" $sleep fi if [ "$quickcharge" -eq 1 ]; the n echo " Saving Quick Cust-OOMizer Settings!" elif [ "$calculatorcharge" -eq 1 ]; then echo " Applying SuperMinFree Calculator Settings!" elif [ "$revert" -eq 1 ]; then e cho " Reverting to Prior V6 Minfrees!" else echo " Saving Your New Cust-OOMizer Settings!" fi fi if [ "$calculatorcharge" -eq 0 ]; then c p -fr /data/V6_SuperCharger/SuperChargerMinfree /data/V6_SuperCharger/SuperCharg erCustomMinfree; fi echo "" $sleep fi echo $line if [ "$ReSuperCharge" -eq 1 ]; then echo " Re-SuperCharging Performance!" else echo " SuperCharging Performance: $CONFIG!" fi echo $line echo "" $sleep echo " Out Of Memory (OOM) / lowmemorykiller val ues:" echo "" $sleep echo $currentminfree | awk -F , '{printf " Ol d MB = %.0f, %.0f, %.0f, %.0f, %.0f, %.0f MB\n", $1/256, $2/256, $3/256, $4/256, $5/256, $6/256}' echo " New MB = $MB1, $MB2, $MB3, $MB4, $MB5, $MB6 MB" echo ""

$sleep echo " Old Pages = "$currentminfree echo " New Pages = $scminfree" echo "" $sleep fi # # MFK Calculator (for min_free_kbytes) created by zeppel inrox. # if [ "$SL3" -gt 0 ]; then SSMF=$SL3 else SSMF=`awk -F , '{print $3}' $minfreefile` fi MFK=$(($SSMF*4/5)) echo $line echo " Make Foreground AND Background Apps STAY FAST!" echo $line echo "" $sleep echo " With The MFK Calculator!" echo " ========================" echo "" $sleep echo " Key Settings That Impact Typical Free RAM..." echo "" $sleep if [ "$postics" ] && [ ! "$servicesjarpatched" ]; then e cho -n " 5" else echo -n " $adj3" fi echo " = Secondary Server ADJ" echo " 3 = Secondary Server Slot" echo " $((SSMF/256)) = Secondary Server LMK MB" echo "" $sleep echo $line echo " Balanced MFK Calculation Complete..." echo $line echo "" $sleep echo " $MFK = Customized MFK (min_free_kbytes)" echo "" for rc in $initrcpath $rcpaths; do if [ "`grep -s "on early-boot" $rc`" ] && [ "$pr eics" ]; then sed -i '/on early-boot/ a\ # V6 SuperCharger, OOM Grouping & Priority Fixes created by -=zeppelinrox=-' $rc else sed -i '/on boot/ a\ # V6 SuperCharger, OOM Grouping & Priority Fixes created by -=zeppelinrox=-' $rc fi sed -i '/V6 SuperCharger/ a\ # SuperMinFree Calculator & MFK Calculator (for min_free_kbytes) created by zeppelinrox also ;^]\ #\ # See http://goo.gl/krtf9 - Linux Memory Consumption - Nice article!\ # See http://goo.gl/hFdNO - Memory and SuperCharging Overview, or... "Why '" 'Free RAM'"' Is NOT Wasted RAM!"\ # See http://goo.gl/4w0ba - MFK Calculator Info - explanation for vm.min_fre e_kbytes.\

#\ # DO NOT DELETE COMMENTS. DELETING COMMENTS WILL BREAK UNINSTALL ROUTINE!\ #\ # BEGIN OOM_MEM_Settings\ # END OOM_MEM_Settings\ # BEGIN OOM_ADJ_Settings\ # END OOM_ADJ_Settings\ # End of V6 SuperCharged Entries.' $rc if [ "`grep -s "on early-boot" $rc`" ] && [ "$pr eics" ]; then sed -i '/on boot/ a\ #################=##################' $rc else sed -i '/END OOM_ADJ_Settings/ a\ #################=##################' $rc fi sed -i '/#=#/ a\ # Kernel & Virtual Memory Tweaks #\ ####################################\ write /proc/sys/vm/min_free_kbytes '$MFK'\ write /proc/sys/vm/oom_kill_allocating_task 0\ write /proc/sys/vm/panic_on_oom 0\ write /proc/sys/vm/overcommit_memory 1\ write /proc/sys/vm/swappiness 20\ # write /proc/sys/kernel/panic_on_oops '$kpoops'\ # write /proc/sys/kernel/panic '$kpanic'\ write /proc/sys/kernel/random/read_wakeup_threshold 1376\ # End of KVM Tweaks' $rc if [ "$panicmode" -ne 0 ]; then sed -i '/^#.*ker nel\/panic/s/#/ /' $rc; fi if [ "$miscsd" -eq 1 ]; then sed -i '/KVM Tweaks / i\ write /sys/block/mmcblk0/bdi/read_ahead_kb '$sdtweak $rc fi if [ "$preics" ]; then if [ "$scminfree" ]; then sed -i '/on bo ot/ a\ write '$minfreefile' '$scminfree $rc sed -i '/BEGIN OOM_MEM_Settings/ a\ setprop ro.FOREGROUND_APP_MEM '$SL1'\ setprop ro.VISIBLE_APP_MEM '$SL2'\ setprop ro.SECONDARY_SERVER_MEM '$SL3'\ setprop ro.BACKUP_APP_MEM '$SL4'\ setprop ro.HOME_APP_MEM '$SL3'\ setprop ro.HIDDEN_APP_MEM '$SL4'\ setprop ro.EMPTY_APP_MEM '$SL6 $rc if [ "$gb" -eq 1 ]; then sed -i '/ro.VISIBLE_APP_MEM/ a\ setprop ro.PERCEPTIBLE_APP_MEM '$SL0'\ setprop ro.HEAVY_WEIGHT_APP_MEM '$SL3 $rc else sed -i '/ro.HIDDEN_APP_MEM/ a\ setprop ro.CONTENT_PROVIDER_MEM '$SL5 $rc fi fi sed -i '/on boot/ a\ write /sys/module/lowmemorykiller/parameters/adj '$scadj $rc sed -i '/BEGIN OOM_ADJ_Settings/ a\ setprop ro.FOREGROUND_APP_ADJ '$adj1'\ setprop ro.VISIBLE_APP_ADJ '$adj2'\ setprop ro.SECONDARY_SERVER_ADJ '$adj3'\

.Linux Memory Consumption .. go to http://goo.. then echo "# V6 SuperCharger. "Why '"'Fre e RAM'"' Is NOT Wasted RAM!"\ # See http://goo.0 and greater) requires a PATCHED services.HOME_APP_ADJ '$launcheradj'\ ro.PERCEPTIBLE_APP_ADJ '$(($adj1+2))'\ setprop ro.^]\ #\ # See http://goo.HIDDEN_APP_MIN_ADJ '$(($adj4-1))'\ ro.Nice article!\ # See http://goo..MFK Calculator Info . OOM Grouping & Priority Fixes created by -=zeppelinrox=-" >> $p sed -i '/OOM Grouping/ a\ # SuperMinFree Calculator & MFK Calculator (for min_free_kbytes) created by zepp elinrox also .gl/IvGL1\ # The ADJ priorities that were here DO NOT work anymore!\ #' $rc fi done if [ "$preics" ].. then echo $line echo "" $sleep echo " Fixing Out Of Memory (OOM) Groupings. do if [ -f "$p" ]. then echo "${rc##*/} has been OOM Fixed!" else echo "${rc##*/} has been SuperCharg ed!" fi else sed -i '/OOM_MEM_Settings/d' $rc sed -i '/BEGIN OOM_ADJ_Settings/ a\ #\ # This ROM (Android 4.CONTENT_PROVIDER_ADJ '$adj4 $rc fi $sleep echo $line echo -n " " if [ "$rc" = "$initrcpath" ] && [ "$init rc" -eq 0 ].EMPTY_APP_ADJ '$adj6 $rc if [ "$gb" -eq 1 ].HEAVY_WEIGHT_APP_ADJ '$(($adj2+1)) $rc else sed -i '/ro." echo "" $sleep echo " .ro. then echo -n "/data/" elif [ "$rc" = "$initrcpath" ].\ #\ # DO NOT DELETE COMMENTS.min_free_kb ytes.HIDDEN_APP_MIN_ADJ/ a\ setprop ro.explanation for vm. DELETING COMMENTS WILL BREAK UNINSTALL ROUTINE!\ setprop setprop setprop setprop .VIS IBLE_APP_ADJ/ a\ setprop ro..gl/hFdNO .." echo "" $sleep fi for p in /system/etc/ram. or.Memory and SuperCharging Overview.conf $prop.BACKUP_APP_ADJ '$(($adj3+1))'\ ro.gl/4w0ba .Fixing OOM Prioriti es. then ech o -n "/" fi if [ "$opt" -ge 11 ] && [ "$opt" -le 13 ] && [ "$ReSuperCharge" -eq 0 ].jar\ # If you don'"'"'t have it patched yet. then sed -i '/ro.gl/krtf9 ..

fi if [ ! "`getprop | grep persist.tcp.gprs=6144.262144.hspa=6144.8.supplicant_scan_interval=180\ windowsmgr.buffersize.6144.35040.tcp.heapgrowthlimit='$heapsize'm\ dalvik.hsdpa=6144.VISIBLE_APP_MEM='$SL2'\ ro.3145728\ net.vm.tcp.buffersize.heapsize='$heapsize'm\ persist.3145728.heapsize/d' $p.6144.buffersize.SECONDARY_SERVER_MEM='$SL3'\ ro. then if [ "$scminfree" ].HOME_APP_MEM='$SL3'\ ro.1048576.vm.vm.1048576\ net.BACKUP_APP_MEM='$SL4'\ ro.wifi=262144.buffersize.6144.8\ net.262144\ net.35040' $p fi fi if [ "$preics" ]. then sed -i ' /V6 SuperCharged/ i\ ###############==#################\ # 3G TurboCharger Enhancement! #\ ##################################\ net.HEAVY_WEIGHT_APP_MEM='$SL3 $p .6144.tcp.1048576.524288.87380.16384.524288.EMPTY_APP_MEM='$SL6 $p if [ "$gb" -eq 1 ].110208\ net.buffersize.PERCEPTIBLE_APP_MEM='$SL0'\ ro.sys.' $p if [ "$p" = "/system/etc/ram. th en sed -i '/END OOM_ADJ_Settings/ a\ LMK_ADJ="'$scadj'"\ LMK_MINFREE="'$scminfree'"' $p else if [ "$miscsd" -eq 1 ].1048576\ net.262144.sys.FOREGROUND_APP_MEM='$SL1'\ ro.8760.11680\ net.8760.110208.11680.524288.buffersize.110208.262144.sys.262144.26280.tcp.purgeable_assets=1\ wifi.6144.heapsize='$heapsize'm\ persist.tcp.umts=6144.heapsize`" ].16384.max_events_per_sec=200\ pm. fi fi if [ -f "$tc3g" ].sleep_mode=1' $p if [ ! "`getprop | grep heapgrowthlimit`" ].lte=262144. then sed -i '/heapgrowthlimit/d' $p.6144.1048576.sys.4.HIDDEN_APP_MEM='$SL4'\ ro.evdo_b=6144.buffersize.tcp.110208\ net.8.1048576\ net.vm.16384.tcp.buffersize.4\ net.8.vm.262144.16384.conf" ].edge=6144. then sed -i '/BEGIN OOM_MEM_Settings/ a\ ro. then sed -i '/ro.524288.dns2=8.default=6144.262144.87380.87380.6144.VISIBLE_APP_MEM/ a\ ro. then sed -i '/persist.dns1=8.buffersize.262144.tcp.#\ # BEGIN OOM_MEM_Settings\ # END OOM_MEM_Settings\ # BEGIN OOM_ADJ_Settings\ # END OOM_ADJ_Settings\ # End of V6 SuperCharged Entries. then sed -i '/END OOM_ADJ_Settings/ a\ ############=##############\ # Miscellaneous Tweaks! #\ ###########################\ dalvik.

HIDDEN_APP_MIN_ADJ='$(($adj4-1))'\ ro.BACKUP_APP_ADJ='$(($adj3+1))'\ ro. then echo " Hard To Kill Launcher APPLIED!" else echo " Die-Hard Launcher APPLIED! " fi if [ "$homeadj" -ne "$launcheradj" ]..SECONDARY_SERVER_ADJ='$adj3'\ ro. then sed -i '/ro.VISIBLE_APP_ADJ/ a\ ro." echo "" $sleep echo " Launcher is not only SuperCharged .CONTENT_PROVIDER_MEM='$SL5 $p fi fi sed -i '/BEGIN OOM_ADJ_Settings/ a\ ro.else sed -i '/ro..EMPTY_APP_ADJ='$adj6 $p if [ "$gb" -eq 1 ].It's BULLETPROOF!" elif [ "$launcheradj" -eq 2 ].HIDDEN_APP_MIN_ ADJ/ a\ ro.HIDDEN_ APP_MEM/ a\ ro.FOREGROUND_APP_ADJ='$adj1'\ ro.. then echo "" echo " Applied BulletProof Launcher." echo "" $sleep echo $line echo " .. fi fi echo $line .0 and greater) requires a PATCHED services.HEAVY_WEIGHT_APP_ADJ='$(($adj2+1)) $p else sed -i '/ro.PERCEPTIBLE_APP_ADJ='$(($adj1+2))'\ ro.gl/IvGL1\ # The ADJ priorities that were here DO NOT work anymore!\ #' $p fi fi done if [ "$preics" ].. go to http://goo..OOM Groupings and Priorities are now f ixed!" echo "" $sleep echo $line if [ "$launcheradj" -eq 0 ].jar\ # If you don'"'"'t have it patched yet. then echo " .VISIBLE_APP_ADJ='$adj2'\ ro.CONTENT_PROVIDER_ADJ='$adj4 $p fi else sed -i '/OOM_MEM_Settings/d' $p sed -i '/BEGIN OOM_ADJ_Settings/ a\ #\ # This ROM (Android 4..HOME_APP_ADJ='$launcheradj'\ ro. then newla uncher=1..

then echo " SD Car d Read Speed Tweak = $sdtweak KB" else echo $line echo " Sorry! Can't Apply SD Card Read Speed Tweak!" ".. then echo -n " ". do echo $sdtweak > $i.p ". .busybox sysctl -w vm.panic=$kpanic fi echo -n " ". done fi 2>/dev/null if [ -f "/sys/block/mmcblk0/bdi/read_ahead_kb" ] . then read_ahead=yes echo $sdtweak > /sys/block/mmcblk0/queue /read_ahead_kb fi if [ "$read_ahead" ]. then read_ahead=yes for i in `ls /sys/devices/virtual/bdi/17 9*/read_ahead_kb`.echo "" $sleep echo " Applying Kernel & Virtual Memory Tweaks..random..busybox sysctl -w vm.busybox sysctl -w vm ". then echo " Applying Miscellaneous & SD Speed Tweaks.busybox sysctl -w vm..busybox sysctl -w kernel." echo "" $sleep echo -n " ".panic_on_oops=$kpoops echo -n " ".swappiness=20 if [ "$panicmode" -ne 0 ].overco ".based on the $ram MB of RAM on your d evice!" echo "" $sleep if [ "`ls /sys/devices/virtual/bdi/179*/read_ahe ad_kb`" ]. then read_ahead=yes echo $sdtweak > /sys/block/mmcblk0/bdi/r ead_ahead_kb fi if [ -f "/sys/block/mmcblk0/queue/read_ahead_kb" ].." echo "" $sleep echo " .busybox sysctl -w vm.oom_kill_allo .busybox sysctl -w k ernel.min_ free_kbytes=$MFK echo -n " cating_task=0 echo -n " anic_on_oom=0 echo -n " mmit_memory=1 echo -n " .busybox sys ctl -w kernel.read_wakeu p_threshold=1376 echo "" $sleep echo $line echo " Note: Last one's the -=Entropy-ness Enlarger=-!" echo $line echo "" $sleep if [ "$miscsd" -eq 1 ].

262144.max_events_per_sec 200 echo " windowsmgr.8 setprop net.dns1 8.16384.4 setprop net.35040 .524288.262144 setprop net.tcp.524288.262144.10 48576.buffersize.heapsize = $heaps ize MB" if [ "`getprop | grep persist.cor .sys.vm.26280.8.87380.heapgrowthlimit fi if [ "$tc3g" -eq 1 ].1048576 setprop net.gprs 6144.tcp.echo $line echo "" $sleep fi if [ "`getprop | grep heapgrowthlimit`" ].hspa 6144.sys.heapgrowthlimit $heaps ize"m" echo " = $heapsize MB" fi setprop dalvik.supplicant_scan_interval 180 echo " wifi.default 6144.lte 262144.110208 setprop net.wmem_max=1048576 echo -n " ".87380.8760..cor ".1048576 setprop net.262144.524288.sys.262144. then setprop persist.dns2 8.sleep_mode = echo "" echo $line echo "" $sleep 1" 180" 200" 1" persist.6144.purgeable_assets 1 echo " persist.3145728 setprop net.8.heapsize`" ].buffersize.heapsize $heapsiz e"m" echo " = $heapsize MB" fi setprop persist.tcp.6144.tcp.wifi 262144.1048576 setprop net.vm.heapsize $heapsize"m" echo " dalvik.35040 echo -n " e.buffersize.sleep_mode 1 echo " pm.262144.87380.buffersize.sys.vm.vm.tcp. 6144.vm. then echo " Applying 3G TurboCharger Enhancement.busybox sysctl -w net.16384.buffersize..evdo_b 6144.tcp.524288.6144.buffersize.buffersize.tcp.purgeable_assets = setprop wifi.buffersize.edge 6144.sys.11020 8.vm.26214 4.hsdpa 6144.tcp." echo "" $sleep setprop net.supplicant_scan_interval = setprop windowsmgr.16384.heapsize dalvik.busybox sysctl -w net.8760.max_events_per_sec = setprop pm. then setprop dalvik.16384.buffersize.8.6144.tcp.314 5728.110208 setprop net.11680 setprop net.10 48576.11680.umts 6144.vm.6144.104 8576.11 0208.6144.262144.4.

ud ".Linux Memory Consumption .flush=1 echo -n " p_rmem_min=6144 echo -n " p_wmem_min=6144 echo -n " cp_rmem='6144 87380 1048576' echo -n " cp_wmem='6144 87380 1048576' echo "" echo $line echo "" $sleep fi echo "#!/system/bin/sh" > /data/99SuperCharger.busybox sysctl -w net.rmem_max=1048576 echo -n " optmem_max=20480 echo -n " ". but actually took a lot of time.ud ". zeppelinrox. # See http://goo. then cat >> $sc <<EOF # V6 SuperCharger.random.tcp_moder ate_rcvbuf=1 echo -n " oute.provided that proper credit is given WITH a link back to the XDA SuperCharger thread. # There are many things may look simple.t ".ipv4.sh for sc in /data/99SuperCharger.explanation for vm.ipv4. # See http://goo. and error to get perfected.^] # Entropy-ness Enlarger (sysctl tweak for kernel. "Why 'Free RAM' Is NOT Wasted RAM!" # See http://goo. # # This script can be used freely and can even be modified for PERSONAL USE ONLY. then cat >> $sc <<EOF ".ipv4.ipv4. OOM Grouping & Priority Fixes created by -=zeppelinrox=# # V6U9RC12T6 # # When using scripting tricks. redistribu tion.sh /system/etc/hw_config.r ".sh" ] ..This ensures that users will always be getting the latest versions.Nice article! # See http://goo. just provide a link to the main thread.read_wakeup_threshold th at keeps entropy_avail full) discovered by zeppelinrox. # # See http://goo.core. repackaging.busybox sysctl -w net. # .ipv4. sh. or code snippets from here. .Possible reasons why it may actually do something :p # EOF if [ "$sc" = "/data/99SuperCharger.busybox sysctl -w net.gl/krtf9 . do if [ -f "$sc" ].t ".busybox sysctl -w net. or. # It can be freely incorporated into ROMs . # If you want to share it or make a thread about it.gl/P8Bvu .MFK Calculator Info . ideas.How Entropy-ness Enlarger works.ipv4.Memory and SuperCharging Overview.gl/Zc85j . or mirrors of my work are NOT PERMITTED.busybox sysctl -w net. # # SuperMinFree Calculator & MFK Calculator (for min_free_kbytes) created by zepp elinrox also .gl/4w0ba ..busybox sysctl -w net.gl/hFdNO . please give pr oper credit.min_free_kb ytes. # Prohibited: Any modification (excluding personal use). trial.e. # Thanks.busybox sysctl -w net.sh echo "#" >> /data/99SuperCharger.

# if [ "\`pgrep -l android\`" ]. busybox mount -o remount. # echo " Delete this file to Re-Enable *99SuperCharger to run on boot.sh" # b. insert a # at the beginning of the "stop super_service" entry near the bottom of this script (3rd or 4th last line) . then terminate=yes. else if [ -f "/data/!!SuperChargerBootLoopMessage.rw /data 2>/dev/null. echo "".log" ]. echo \$line..d! # EOF fi cat >> $sc <<EOF # echo "". # # If the service is running and you type: "cat /proc/*/cmdline | grep Super". # For debugging. "Super" (created by your query so this doesn't mean anything) # # If it's not running. # EOF if [ ! "$allrcpaths" ]. exit 69.log. line=================================================. echo " See /data/Log_SuperCharger. echo "". # "su" and Enter. and che ck /data/Log_SuperCharger. # The output would be 2 items: # a. # "su" and Enter. fi. ." >> /data/Ran_SuperCharger.log 2>&1.. echo "". # mount -o remount. Sorry :P # Instead use Script Manager to run this script if you're on a stock ROM OR sett ings don't stick via the SuperCharger boot script found in /system/etc/init. run Terminal Emulator and type. # set -x. # # Similar results can be had with: "busybox ps | grep Super". this service won't work on your current ROM. # "start super_service" and Enter.log file to see what may have fubarred.log for the output!". # # To restart the SuperCharger Service so it stays running. then cat >> $sc <<EOF # Ummm." > /data/!!SuperChargerBootLoopMessage. echo " The -=V6 SuperCharger=. "Super" which was g enerated by the typed command.. # exec > /data/Log_SuperCharger.by -=zeppelinrox=-". # "stop super_service" and Enter..rw /data 2>/dev/null. "/data/99SuperCharger. fi... delete the # at the beginning of the following 2 lines. the output would be the last item ie..################################ # SuperCharger Service Notes # ################################ # To leave the SuperCharger Service running. # # To stop the SuperCharger Service....log. type. then # echo " \$( date +"%m-%d-%Y %H:%M:%S" ): \$0 Detected A BootLoope d.. ABORTING.. echo \$line.

ro / 2>/dev/null....rw /data 2>/dev/null. then echo " You are NOT running this script as root.rw rootfs 2>/dev/null. echo \$line.. then cat >> $sc <<EOF if [ -f "$initrcpath" ] && [ "\`grep "SuperCharger" /system/build. echo "".rw \$(busybox mount | grep system | awk '{print \$1.rw / 2>/dev/null. busybox mount -o remount..rw /system 2>/dev/null. echo "".prop\`" ] && [ "\`diff $initrcpath $initrcpath1\`" ]. echo \$line.log!".rw /data 2>/dev/null.. id=\${id%%[\\( ]*} if [ "\$id" != "0" ] && [ "\$id" != "root" ]. DELETING COMMENTS WILL BREAK UNINSTALL ROUTINE! # mount -o remount.". busybox mount -o remount. exit 69. echo \$line. echo "". echo " . if [ "\`ls /system/etc/init. then mount -o remount. mount -o remount. echo "". line=================================================.ro rootfs 2>/dev/null.. mount -o remount. echo "". busybox mount -o remount.rw / 2>/dev/null.".. busybox mount -o remount.ro / 2>/dev/null.Please Run as Root and try again.sh!" echo "" echo $line echo "" $sleep fi if [ "$initrc" -eq 1 ].check out /data/Ran_SuperCharger.rw /system 2>/dev/null. echo "". fi. echo " .. fi 2>/dev/null. # System Integration Marker EOF fi cat >> $sc <<EOF mount -o remount. EOF else cat >> $sc <<EOF # DO NOT DELETE COMMENTS... busybox mount -o remount. echo "".\$3 }' | sed -n 1p) 2>/dev/null. echo " . echo "".d/*oopy*\`" ] && [ "/system/etc/init.rw rootfs 2>/dev/null. EOF echo " SuperCharging /system/etc /hw_config..ro rootfs 2>/dev/null. echo " To verify application of settings. id=\${id#*=}. cp -fr $initrcpath $initrcpath1. busybox mount -o remount.". mount -o remount. busybox mount -o remount. echo \$line. echo "".id=\$(id). echo \$line.No SuperUser For You!!".d/*oopy*" != "/ .

ipv4. # busybox sysctl -w kernel. then cat >> $sc << EOF busybox sysctl -w net. # Be sure t hat autotuning is in effect busybox sysctl -w net. busybox sysctl -w net.". then echo " Waiting 2 minutes (avoid conflicts).core.. busybox sysctl -w vm.panic_on_oops=$kpoops. busybox sysctl -w vm. busybox sysctl -w net. EOF fi .d/zzloopy_runs_last_so_others_do_too" ]. zOOM!". echo \$line. busybox sysctl -w kernel.read_wakeup_threshold=1376.optmem_max=20480.route..core.d/*oopy* /system/etc/init.ipv4.udp_wmem_min=6144.d/zzloopy_runs_last_so_oth ers_do_too sed -i '1 a\ #\ # Hey you should try BulletProofing Apps from within V6 SuperCharger instead!\ #' /system/etc/init.oom_kill_allocating_task=0.swappiness=20. zoOM. busybox sysctl -w vm.flush=1.ipv4. then. then #################################### # Kernel & Virtual Memory Tweaks # #################################### busybox sysctl -w vm. busybox sysctl -w net.wmem_max=1048576.core.ipv4. then if [ ! "\`pgrep scriptmanager\`" ].tcp_rmem='6144 87380 1048576'.... busybox sysctl -w vm.overcommit_memory=1. echo "". fi... busybox sysctl -w net. EOF fi cat >> $sc <<EOF if [ "\`cat /proc/sys/vm/min_free_kbytes\`" -ne $MFK ] || [ "\`cat /proc/sys/net /core/rmem_max\`" -ne 1048576 ] || [ "\`cat /sys/block/mmcblk0/bdi/read_ahead_kb \`" -ne $sdtweak ].panic_on_oom=0.tcp_wmem='6144 87380 1048576'. fi if [ "$tc3g" -eq 1 ].*kernel. then mv /system/etc/init.sh" ] .panic=$kpanic.rmem_max=1048576. busybox sysctl -w net. echo "".system/etc/init. then sed -i ' /^#.. # Entropy-n ess Enlarger .d/zzloopy_runs_last_so_others_do_too fi 2>/dev/null EOF if [ "$sc" = "/data/99SuperCharger.tcp_moderate_rcvbuf=1.keeps entropy_avail full .min_free_kbytes=$MFK.echo "".ipv4. # busybox sysctl -w kernel. fi. echo " Gonna SuperCharge this Android.MAY save battery and/or boost responsi veness ################################## # 3G TurboCharger Enhancement! # #################=################ EOF if [ "$panicmode" -ne 0 ]. then cat >> $sc <<EOF if [ "\$terminate" ]. busybox sysctl -w net.udp_rmem_min=6144.panic/s/#//' $sc.random.ipv4. sleep 120. busybox sysctl -w net.

" >> $sc echo " sed -i '/. then echo " sed -i '/. echo $sdtweak > /sys/block/mmcblk0/queue/read_ahead_kb 2>/dev/null. EOF if [ "$buildprop" -eq 0 ]." >> $sc fi fi cat >> $sc <<EOF echo " \$( date +"%m-%d-%Y %H:%M:%S" ): Applied settings from \$0!" >> / data/Ran_SuperCharger. fi. if [ "\$scadj" ]. EOF fi cat >> $sc <<EOF echo "". if [ "\$scadj" ] && [ "\$currentadj" != "\$scadj" ]. then echo " sed -i '/. then for i in \`ls /sys/devices/virtual/bdi/179*/read_ahead_kb\`.log. fi 2>/dev/null. currentminfree=\`cat /sys/module/lowmemorykiller/parameters/minfree\` 2>/dev/nul l. echo $sdtweak > /sys/block/mmcblk0/bdi/read_ahead_kb 2>/dev/null." >> $sc if [ -f "/system/bin/build. then echo " \$( date +"%m-%d-%Y %H:%M:%S" ): No need to reapply settings from \$0!" >> /data/Ran_SuperCharger.*_ADJ/ d' /system/bin/build. fi 2>/dev/null.prop.*_MEM/d' /syst em/build. echo " SuperCharger Settings Were ALREADY Applied. fi. then cat >> $sc <<EOF if [ "\`ls /sys/devices/virtual/bdi/179*/read_ahead_kb\`" ]. fi.cat >> $sc <<EOF ######################### # SD Read Speed Tweak # ############==########### EOF if [ "$miscsd" -eq 1 ]. echo \$line. if [ "\$applyscminfree" ] || [ "\$applyscadj" ].. done. do echo $sdtweak > \$i.*_ADJ/d' /syst em/build. . echo "".prop. fi 2>/dev/null. scadj=\`cat /data/V6_SuperCharger/SuperChargerAdj\`. chmod 777 /sys/module/lowmemorykiller/parameters/minfree 2>/dev/null. scminfree=\`cat /data/V6_SuperCharger/SuperChargerMinfree\`.prop" ]. if [ "\$scminfree" ]. then echo \$scadj > /sys/module/lowmemorykiller/parame ters/adj.log..prop.*_MEM/ d' /system/bin/build. elif [ "\`pgrep -l android\`" ]. then echo \$scminfree > /sys/module/lowmemorykille r/parameters/minfree.". if [ "\$scminfree" ] && [ "\$currentminfree" != "\$scminfree" ]. then applyscadj=yes. then applyscmin free=yes. echo " SuperCharger Settings Applied!"." >> $sc echo " sed -i '/. currentadj=\`cat /sys/module/lowmemorykiller/parameters/adj\` 2>/dev/null.prop. then ########################### # Get 50% SuperCharged! # ########################### chmod 777 /sys/module/lowmemorykiller/parameters/adj 2>/dev/null.

sh /system/etc/init.ro /system 2>/dev/null.ro \$(busybox mount | grep system | awk '{print \$1. EOF fi echo "# End of V6 SuperCharged Entries.sh & sleep 1." echo "" $sleep fi if [ -d "/system/etc/init.sh" ] . sed -i 's/exec >/# exec >/' /data/V6_SuperCharger/!FastEngineFlush. sleep 90. echo " fi. /data/V6_SuperCharger/!FastEngineFlush. echo " ===========================". echo " \$0 Executed. then cp -fr /data/99Supe rCharger.ro /system 2>/dev/null..d" ]. then .sh.d/99SuperCharger`" ]. then mount -o remount. then echo " For Super Stickiness.sh 2>/dev/nul l.. .there's no need to reapply them!". stop super_service.".ro /system 2>/dev/null." echo "" $sleep if [ ! "`diff /data/99SuperCharger. echo "".. #busybox mount -o remount.d/99SuperCharger echo " SuperCharging /system/etc/init. sh /data/99SuperCharger.sh & sleep 2...sh 2>/dev/nul l. busybox mount -o remount. \$0 & exit 0. echo "".sh /system/et c/init. fi.ro /system 2>/dev/null.d" ]. busybox mount -o remount.0 /data/99SuperCharger. else # rm /data/!!SuperChargerBootLoopMessage. if [ "$sc" = "/data/99SuperCharger.d/*KickAssKernel & sleep 1. EOF else cat >> $sc <<EOF #mount -o remount. then cat >> $sc <<EOF echo "".echo "". chmod 777 /data/99Sup erCharger. sed -i 's/# exec >/exec >/' /data/V6_SuperCharger/!FastEngineFlush." >> $sc fi done chown 0.. #busybox mount -o remount.\$ 3}' | sed -n 1p) 2>/dev/null. exit 0. echo " ===========================". EOF .d folder.\$3}' | sed -n 1p) 2>/dev/null.log. sh /system/etc/init.sh if [ "$rcpaths" ] || [ "$preics" ] && [ "$initrc" -eq 1 ] && [ -d "/system/etc/init. echo " ) SuperCharge Complete! (".. if [ "\$terminate" ].ro \$(busybox mount | grep system | awk '{print \$1.

/ a\ # sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!Detailing./ i\ sh /system/etc/init..d/99SuperCharger sed -i '/sleep 90.\ sh /data/99SuperCharger. do\ if [ "\$j" ]..*BootLoop/d' /data/99SuperCha rger.\ # sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!WheelAlignment.sh & sleep 2.\ else desiredname="/system/etc/init.sh 2>/dev/nul l.' /system/etc/init.d/SS99SuperCharger".d/99SuperCharger sed -i '/Log_SuperCharger/s/# exec/exec/ ' /system/etc/init.\ # sh /data/V6_SuperCharger/!FixEmissions.' /system/etc/init.\ echo \$line. then j=\$i.log.\ echo "".d/*KickAssKernel & sleep 1.\ # sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!FixAlignment. then desiredname="/system/etc/init..d/99SuperCharger sed -i '/scriptmanager/ i\ # sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!FixAlignment.\ # sh /data/V6_SuperCharger/!WheelAlignment. then break.\ echo "".d | grep -v SuperCharger\`.\ echo " .sh & sleep 2. fi.d/99SuperCharger sed -i 's/# set -x/set -x/' /system/etc/ init.d/99SuperCharger sed -i '/busybox mount -o remount.sh & sleep 2.\$desiredname!".\ if [ "\$0" != "\$desiredname" ].\ fi.d/99SuperCharger sed -i '/super_service.sh 2>/dev/null.sh 2>/dev/ null.\ # sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!WheelAlignment.\ if [ "\`echo \$j | grep KickAssKernel\`" ] && [ "\$i" \\< "99SuperCharger" ] || [ "\$j" \\< "99SuperCharger" ].d/99SuperCharger sed -i '/sleep 90.\ # sh /data/V6_SuperCharger/!Detailing.\ \$desiredname & exit. then\ mv \$0 \$desiredname.sed -i '/#..sh 2>/dev/ null.sh 2 >/dev/null.sh 2>/dev/null.\ # sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!FixEmissions.d/99SuperCharger sed -i 's/# echo/echo/' /system/etc/init .rw $(b usybox mount/ a\ for i in \`busybox ls -r /system/etc/init.sh sed -i '/BootLoop/s/^#//' /system/etc/in it.\ # sh /data/V6_SuperCharger/!FixAlignment.\ .sh 2 >/dev/null.\ elif [ "\`echo \$j | grep KickAssKernel\`" ] && [ "\$i" \\< "S99SuperCharger" ] || [ "\$j" \\< "S99SuperCharger" ].d/S99Supe rCharger".sh & sleep 1.\ # sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!FixEmissions./s/^/#/' /system/ etc/init. then desiredname="/system/etc/init.sh & sleep 2.\ rm /data/!!SuperChargerBootLoopMessage.\ echo " SuperCharger to run on boot as.\ done.\ echo \$line.\ fi.\ if [ ! -d "\$i" ].d/99SuperChar ger".".' /system/etc/init. fi.

fi j= for i in `busybox ls -r /system/etc/init ." echo "" $sleep echo " .d/99SuperCharger..with $desiredname!" else echo " WARNING: ERROR copying file to /s ystem/init.. echo -n " " elif [ "`echo $j | grep KickAssKernel`" ] && [ "$i" \< "S99SuperCharger" ] || [ "$j" \< "S99SuperCharger" ]. fi if [ ! -d "$i" ].sh/s/^# //' /system/etc/init. then j=$i...d/99SuperCharger.d/S99SuperCharger".. fi if [ "$fixalign" -eq 1 ]. then desire dname="/system/etc/init..d/99SuperCharger $desiredname.sh/s/^#//' /system/etc/init. sleep 480.d/*oopy*`" ]. echo -n " " else desiredname="/system/etc/init. then sed -i ' /!Detailing.." echo "" $sleep echo " . fi if [ "$zepalign" -eq 1 ].# sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!Detailing.d/99SuperCharger".sh 2>/dev/nul l. then sed -i '/ !FixAlignment. then echo "" echo $line echo "" $sleep echo " Found `ls /system/etc/init.\"zzloopy_runs_last_so_other s_do_too\" lol!" echo "" $sleep mv /system/etc/init. then break. fi done if [ "`echo $j | grep KickAssKernel`" ] && [ "$i" \< "99SuperCharger" ] || [ "$j" \< "99SuperCharger" ]. then sed -i '/ !WheelAlignment.d/*oop y*`.it stops other init. do if [ "$j" ].d scripts from running!" echo "" $sleep echo " Renaming it to. then desirednam e="/system/etc/init."Free ("$5" Used)"}' | tail -n 1`" fi if [ "`ls /system/etc/init. then sed i '/!FixEmissions. fi echo " . then mv /system/etc/init.sh/s/^#//' /system/etc/init.d/99SuperCharger if [ "$fixemissions" -eq 1 ].d/99SuperCharger..d/*oopy* /system/etc .d | grep -v SuperCharger`.' /system/etc/init..d!" echo "" $sleep echo " Got enough free space?" echo "" $sleep echo " System Partition has `busybox df -h /system | awk '{print $4.sh/s/^# //' /system/etc/init..d/SS9 9SuperCharger".d/99SuperCharger" != "$desiredname" ]. fi if [ "$detailing" -eq 1 ].d/99SuperCharger. fi if [ "/system/etc/init.

... then echo -n " Some Changes are TEMPORARY & " if [ "$allrcpaths" ]....html <<EOF Yay! You already have <a href="http://play...so instead." else echo " To enable PERSISTENT OOM Grouping Fi xes..t .... then SuperChargerScriptManagerHelp=1 cat > $storage/SuperChargerScriptManager Help..Additional Configuration Req uired!" echo "" $sleep if [ "$opt" -le 10 ].\"BulletProof Apps\" instead!" fi 2>/dev/null echo "" else echo " You have no /system/etc/init.. use /data/99SuperCharge r.google." echo "" $sleep echo " .." echo "" $sleep echo " .. then echo "MAY NOT PERSIST!" else echo "WON'T PERSIST!" fi echo "" $sleep echo " To enable PERSISTENT SuperCharger settings./init..The SuperCharger Service should work!" echo "" $sleep echo " BUT if it doesn't.. then echo " ..." echo "" $sleep echo " ..and OOM Grou ping Fixes.." echo "" $sleep echo $line echo " .d/zzloopy_runs_last_so_others_do_too echo " But it's better to just delete it ." fi echo "" $sleep if [ "$allrcpaths" ]..d folder." echo "" $sleep fi if [ "$smrun" ].com/store/apps/details?id=os.sh!" echo $line echo "" $sleep echo " Stock ROM? ...and from the Driver's Co nsole.

d folder!" echo " Easier: Script Manager can solve everything .sh</b> on bo ot<br> In the 99SuperCharger..gl/rZTyW">HERE</a><br> This is for Motorolas! At least some of them anyway.dr oidforums.sh and select "Script" from the "Open As" menu.google.<br> Click on 99SuperCharger.<br> If that page is incompatible with your phone.<br> <br> If you run the script later and with different settings.gl/qM6yR">XDA</a> & <a href="http://www. enable "Browse as Root..html <<E OF To enable init. do some reasearch!<br> <br> A very nice and easy solution is to simply use<br> Script Manager to load scripts on boot .)" echo "" $sleep SuperChargerHelp=1 cat > $storage/SuperChargerHelp.html">Droid</a> Forums<br> EOF echo "Use THIS app to load 99SuperCharge r. you don't have to recon figure anything.<br> In the properties dialogue box.gl/qM6yR">V6 SuperCharger Thread</a><br> Feedback is Welcome!<br> <br> -=zeppelinrox=. SuperUser) and "Run at boot" and "Save".ools.sh properties dialogue box.<br> And that's it!<br> Script Manager will load your most recent settings on boot!<br> <br> Another option is to make a Script Manager widget for <b>/data/99SuperCharger." echo " .<br> See the <a href="http://goo.Please ENABLE boot scripts to b e run from.on ANY ROM!<br> Here is the <a href="http://play. then click on the "data" folder. go <a href="http://goo.sh</b> on boot<br> In the "Config" settings..net/forum/droid-hacks/148268-script-v6-supercharger-htk-bulletproof-la unchers-fix-memory-all-androids. Super User) and "Run at boot" and "Save".<br> Then use it again to load the newly created <b>/data/99SuperCharger..scriptmanager">Script Manager!</a><br> After running the script.@ <a href="http://goo. have Script Manager load the newly created <b>/data/99 SuperCharger.html" else echo " . check "Run as root" (ie. check "Run as root" (ie."<br> Press the menu key and then Browser. you use Script Manager to run the V6 SuperCharger script.scrip tmanager">Google Play Link</a><br> So first.<br> Navigate up to the root.tools.d boot scripts.<br> .<br> Script Manager will just load the new /data/99SuperCharger./system/etc/i nit..^]<br> <br> For more SuperCharging help and info.sh on boot automagica lly .com/store/apps/details?id=os.sh on boot!" echo "" $sleep echo $line echo " See $storage/SuperChargerScriptMa nagerHelp.sh </b> on your homescreen and simply launch it after each reboot.

sh </b> on your homescreen and simply launch it after each reboot. run Terminal Emulator and type.And that's it!<br> Script Manager will load your most recent settings on boot!<br> <br> Another option is to make a Script Manager widget for <b>/data/99SuperCharger.html">Droid</a> Forums<br> EOF echo $line echo "See $storage/SuperChargerHelp.. # "start super_service" and Enter..gl/qM6yR">V6 SuperCharger Thread</a><br> Feedback is Welcome!<br> <br> -=zeppelinrox=... # "su" and Enter..<br> See the <a href="http://goo. then echo "" $sleep echo " And for added.@ <a href="http://goo.<br> <br> If you run the script later and with different settings.net/forum/droid-hacks/148268-script-v6-supercharger-htk-bulletproof-la unchers-fix-memory-all-androids.<br> Script Manager will just load the new /data/99SuperCharger.sh on boot automagica lly ." echo "" $sleep echo $line fi if [ ! "$scservice" ].dr oidforums. type. .d" ]. # # To stop the SuperCharger Service. then if [ -d "/system/etc/init." fi echo $line echo "" $sleep fi for scs in $initrcpath $allrcpaths.^]<br> <br> For more SuperCharging help and info.html for more help!" fi fi echo $line if [ "$opt" -le 10 ] || [ "$ReSuperCharge" -eq 1 ].gl/qM6yR">XDA</a> & <a href="http://www. Auto Insur ance... do cat >> $scs <<EOF # SuperCharger_Service created by -=zeppelinrox=# # DO NOT DELETE COMMENTS." else echo " SuperCharger Service had bee n installed to... then if [ "$allrcpaths" ] && [ ! "$scsinfo" ]. you don't have to recon figure anything.. then echo " Insta lling SuperCharger Service to. DELETING COMMENTS WILL BREAK UNINSTALL ROUTINE! # ################################ # SuperCharger Service Notes # ################################ # To restart the SuperCharger Service so it stays running.

sh" # b. # The output would be 2 items: # a.. # "stop super_service" and Enter.reading comments in /data/99Su perCharger..." echo " ==" echo "" $sleep echo " .type \"stop super_servi ce\" and Enter. # # Similar results can be had with: "busybox ps | grep Super".$scs!". then $sleep. "Super" (created by your query so this doesn't mean anything) # # If it's not running.sh" echo "" $sleep echo " Or. Run Terminal Emulator.type \"su\" and E nter... # # If the service is running and you type: "cat /proc/*/cmdline | grep Super".. "Super" which was g enerated by the typed command..type \"start super_servi ce\" and Enter. the output would be the last item ie.sh class post-zygote_services user root group root # # End of SuperCharged_Service Entries. EOF if [ "$scs" != "$initrcpath" ] && [ ! "$ scsinfo" ].." echo "" $sleep echo " .. "/data/99SuperCharger...# "su" and Enter.." echo " ================= =" echo "" . then echo " . fi done if [ "$allrcpaths" ] && [ ! "$scsinfo" ]. .." echo "" $sleep echo " . fi if [ ! "$scservice" ]..." echo "" $sleep echo " .." echo " ================== =" echo "" $sleep echo " To stop the SuperCharger Service. # service super_service /system/bin/sh /data/99SuperCharger.... then echo "" echo $line echo "" $sleep echo " You can leave the service on by e ither.

..." echo "" $sleep echo " | grep Super\"" echo "" $sleep echo " The output would look like this:" echo "" $sleep echo " /data/99SuperCharger.." echo "" $sleep echo " .\"cat /proc/*/cmdline .. $MB6 MB" echo "" $sleep echo "$scminfree" > $minfreefile currentminfree=`cat $minfreefile` . " echo "" $sleep echo " g into a ROM!" echo "" $sleep echo " Just read the comments in $initrc path :)" echo "" echo $line fi echo "" $sleep echo " Setting LowMemoryKiller to. . $MB5.. $MB2.\"busybox ps .sh" echo " Super" echo "" echo $line echo "" $sleep echo " Easier: Similar results can be ha d with..echo $line echo "" $sleep echo "If the service is running and you type.. $MB4." echo "" $sleep echo " | grep Super\"" echo "" echo $line elif [ ! "$allrcpaths" ] && [ ! "$scsinfo" ]......$MB1.. th en echo $line echo " SuperCharger Service Entries I nstalled!" echo $line echo "" $sleep echo " This won't work on this ROM but.it makes for easy cookin . $MB3..

$MB6)-PowerShift. and error to get perfected.rw /data 2>/dev/null busybox mount -o remount.. or code snippets from here. repackaging.min_free_kb ytes.Nice article! # See http://goo.. ideas. zeppelinrox. trial. but actually took a lot of time.$MB5. or mirrors of my work are NOT PERMITTED. redistribu tion. # # This script can be used freely and can even be modified for PERSONAL USE ONLY. then $sleep echo $line echo " SUPERCHARGE IN EFFECT IMMEDI ATELY!!" fi echo $line echo "" $sleep cat > "/data/V6_SuperCharger/PowerShift_Scripts/ $CONFIG-($MB1.echo " OOM Minfree levels are now set to.sh" <<EOF #!/system/bin/sh # # PowerShift Script for use with The V6 SuperCharger created by -=zeppelinrox=# # V6U9RC12T6 # # When using scripting tricks. # Thanks.script by -=zeppelinrox=-" echo \$line echo "" sleep 1 id=\$(id).provided that proper credit is given WITH a link back to the XDA SuperCharger thread."$currentminfree echo "" if [ "$newlauncher" -eq 0 ].$MB4. id=\${id#*=}. # . # # SuperMinFree Calculator & MFK Calculator (for min_free_kbytes) created by zepp elinrox also .. please give pr oper credit... # It can be freely incorporated into ROMs . id=\${id%%[\\( ]*} if [ "\$id" != "0" ] && [ "\$id" != "root" ].$MB3.. "Why 'Free RAM' Is NOT Wasted RAM!" # See http://goo.MFK Calculator Info . # Prohibited: Any modification (excluding personal use)." echo "" $sleep echo " .gl/4w0ba . or.^] # # See http://goo.explanation for vm. # mount -o remount. then sleep 2 .$MB2.Memory and SuperCharging Overview.Linux Memory Consumption .gl/krtf9 . # If you want to share it or make a thread about it. # There are many things may look simple.rw /data 2>/dev/null clear line================================================= cd "\${0%/*}" 2>/dev/null echo "" echo \$line echo " -=PowerShift=. just provide a link to the main thread.gl/hFdNO .This ensures that users will always be getting the latest versions.

. \$4/256..No SuperUser For You!!" echo \$line echo "" sleep 3 echo " ." echo "" sleep 1 echo \$line echo " . $MB5. $MB3. $MB2..rw /system 2>/dev/null busybox mount -o remount..\`cat $minfreefile\`" echo "" sleep 1 echo " They are also your new SuperCharger values!" echo "" echo \$line echo "" sleep 1 echo " Updating Kernel & Virtual Memory Tweaks.min_free_kbytes=$MFK echo "" sleep 1 echo \$line echo " Updating MFK in *99SuperCharger Boot Scripts.."." echo \$line echo "" sleep 1 . \$ 1/256.\$3 }' | sed -n 1p) 2>/dev/null echo " PowerShifting to a different gear!" echo "" sleep 1 echo \$line awk -F .." echo "" sleep 1 echo -n " ...." echo "" echo \$line echo "" sleep 3 exit 69 fi mount -o remount...busybox sysctl -w vm. \$2/256.rw \$(busybox mount | grep system | awk '{print \$1. \$3/256. '{printf " Current Minfrees = %..%.%. $MB6 MB" echo \$line echo "" sleep 1 echo $scminfree > $minfreefile echo $scminfree > /data/V6_SuperCharger/SuperChargerMinfree echo " OOM Minfree levels are now set to..0f MB\n". \$6/256}' $minfreefile echo \$line echo "" sleep 1 echo " Setting LowMemoryKiller to...0f.%..rw /system 2>/dev/null busybox mount -o remount.$MB1.0f.Please Run as Root and try again.%.. $MB4." echo "" sleep 1 echo " ...0f... \$5/256." echo "" sleep 3 echo \$line echo " .0f.0f.%.echo " You are NOT running this script as root..

min_free_kbytes=$MFK..sed -i 's/vm." .. fi echo "$scadj" > $adjfile if [ "$newlauncher" -eq 1 ]..d/*S uperCharger* 2>/dev/null sed -i 's/free_kbytes\`" -ne ." echo "" $sleep echo " $CONFIG-($MB1.$MB5...sh 2>/dev/null mount -o remount...*/vm....$MB6)-P owerShift." echo "" $sleep echo " . then $sleep echo " LAUNCHER CHANGE DETECTED!" echo $line echo "" $sleep echo " REBOOT NOW TO ENABLE.sh!" echo "" $sleep echo " Goto data/V6_SuperCharger/PowerShift_Scri pts.$MB4.min_free_kbytes=. then echo " .. chmod 777 /data/V6_SuperCharger/PowerShift_Scripts/* echo " A PowerShift Script was saved as./' /data/99SuperCharger.* ] /free_kbytes\`" -ne $MFK ] /' /data/99SuperCha rger.0 /data/V6_SuperCharger/PowerShift_Scrip ts/*.\$3 }' | sed -n 1p) 2>/dev/null echo " ===========================" echo " ) PowerShift Completed! (" echo " ===========================" echo "" sleep 1 exit 0 EOF chown 0.d/*SuperCharger* 2>/dev/null sed -i 's/vm. sh 2>/dev/null sed -i 's/free_kbytes\`" -ne . then adjfile="/data/V6_SuperCharger /SuperChargerAdj".ro /system 2>/dev/null busybox mount -o remount..$MB2.$MB3.min_free_kbytes=$MFK.ro /system 2>/dev/null busybox mount -o remount." echo "" $sleep echo " .make a \"Quick Widget\" fo r it.BULLETPROOF LAUNCHER.*/vm.min_free_kbytes=..and PowerShift between sett ings!" echo "" $sleep echo " They'll also be your new SuperCharger va lues!" echo "" echo $line scsinfo=shown fi if [ ! "$adjfile" ]." echo "" $sleep if [ "$launcheradj" -eq 0 ]./' /system/etc/init.* ] /free_kbytes\`" -ne $MFK ] /' /system/etc/init ...ro \$(busybox mount | grep system | awk '{print \$1.

..AND OOM GROUPING F .." echo " boot!" echo " r it!" elif [ "$opt" -le 10 ] || [ "$postics" ] || [ "$ReSuperC harge" -eq 1 ]..DIE-HARD LAUNCHER..HARD TO KILL LAUNCHER.../data/99SuperCharger.sh on ...or make a Script Manager WIDGET fo ." echo "" $sleep echo " .elif [ "$launcheradj" -eq 2 ]. then $sleep echo " DON'T FORGET to have Script Manager load.. then $sleep if [ "$ReSuperCharge" -eq 1 ]..and the Launcher is we ..READING THE INFO Under The Driver's Console!" .. then echo " ..." ...read the Owner's G .sh AFTER EACH RE BOOT!" elif [ "$SuperChargerScriptManagerHelp" -eq 1 ].. you know if it works or not by.." echo "" $sleep echo " uide!" echo "" fi echo $line echo "" $sleep echo " SO..." else echo " fi echo "" $sleep echo " IXES!" echo "" $sleep echo $line fi if [ "$SuperChargerHelp" -eq 1 ]..." echo "" $sleep echo " ak. .. then $sleep echo " RUN /data/99SuperCharger. read the Owner's G uide!" echo "" else echo "" $sleep echo " If OOM Fixes are't in effect after a rebo ot..... then echo -n " Re stored" else echo -n "$CONFIG" fi echo " Settings WILL PERSIST after reboot!" echo $line echo "" $sleep echo " If they don't persist..

d/*SuperCharger*`" ]. fi for rc in $initrcpath $allrcpaths. then cp -fr /data/local .echo "" $sleep echo $line echo " PLEASE: READ THE ABOVE MESSAGES BEFORE ASKING!" echo $line echo "" $sleep echo " Because I may SNAP and call you names! . then cp -fr /sy stem/etc/hw_config. do cp -fr $rc* $stora ge/V6_SuperCharger. " read enter echo "" if [ "$opt" -le 10 ] || [ "$ReSuperCharge" -eq 1 ] || [ "$postics" ].because you think it's OK to WASTE MY TIME!" echo "" echo $line echo "" $sleep echo -n " Press The Enter Key.d/*SuperCharger* $storage/V6_SuperCharger.. then opt=1 6 elif [ "$newsupercharger" ] || [ "$postics" ]. then cp -fr /system /etc/ram. fi 2>/dev/null if [ "`ls /system/etc/hw_config.conf*`" ].. then cp -fr /data/V6_ SuperCharger $storage..Re-SuperCharger backup complete!" echo "" if [ "$rebulletproof" ] && [ "$allrcpaths" ].prop* $storage/V6_SuperCharger. fi 2>/dev/null if [ "`ls /system/etc/ram.prop" ]. then cp -fr /system/ build.o]" echo "" $sleep echo " And I'll likely add you to my IGNORE list." fi .prop /system/bin. then opt=32 echo $line echo "" $sleep if [ "$autoresupercharge" ] || [ "$ReSup erCharge" -eq 1 ]. fi if [ "`ls /system/etc/init.sh $storage/V6_SuperCharger.. then cp -fr /system/etc/init. then cp -fr /data/9 9SuperCharger. fi if [ -f "$initrcpath" ] && [ "$initrc" -eq 1 ]." echo "" $sleep if [ -d "/data/V6_SuperCharger" ].. then cp -fr $initrcpath $initrcpath1..prop* $storage/V6_SuperCharger.prop*`" ].conf* $storage/V6_SuperCharger. then cp -fr /system/b uild.prop*`" ].. fi echo " Backing up refreshed files to $storage. fi if [ -f "/system/bin/build. done if [ -f "/data/99SuperCharger. fi 2>/dev/null if [ "`ls /data/local. fi 2>/dev/null echo " ." echo "" $sleep echo " ..sh* $storage/V6_SuperCharger.. then ran=1.sh*`" ].sh" ]. then if [ "$preics" ]... then echo " Re-SuperCharger is ALMOST done!" else echo " I think this is your FIRST S uperCharge. fi 2>/dev/null if [ "`ls /system/build..

." echo "" $sleep echo " .. AND Find Your Home Launcher!!" echo "" $sleep echo " Choose from 2 bitchin' OOM Sticks. " vroomverifier=0. then if [ "$opt" -eq 15 ].... esac I Scream SUPERCHARGED .. any key for zOOM: " read chooseverifier echo "" echo $line case $chooseverifier in v|V)echo " vrOOM Stick Verifier (Verbose) selected.. then echo " Does Your OOM Stick?!" echo " =====================" echo "" $sleep echo " Find Out Here.echo "" $sleep elif [ "$servicesjarpatched" ] || [ "$servicesja rinstalled" ]... Priority (ADJ)...." echo "" $sleep fi autoresupercharge= fi fi fi if [ "$opt" -eq 15 ] || [ "$opt" -eq 16 ].but adds Path and/or Apk file info!" echo "" echo $line echo "" $sleep echo " Do you want vrOOM or zOOM Stick mode?" echo "" $sleep echo -n " Enter V for vrOOM..." echo "" $sleep echo " . and PID!" echo "" $sleep echo " vrOOM Stick (Verbose) mode is slower. *)echo " zOOM Stick Verifier (Quick) selected. then echo $line echo " !" elif [ ! "$showedparlor" ]...it shows App Name... then opt=25 echo $line echo "" $sleep echo " Now off to the \"Jelly ISCream Pa rlor\"." vroomverifier=1." echo "" $sleep echo " zOOM Stick (Quick) Mode is faster...

do echo " $bpapp".. then rm /data/V6_SuperCharger/BulletProof_Apps*.sh`" ].sh.fi if [ "$opt" -eq 16 ] && [ ! "$rebulletproof" ] && [ "$bpapplist" ] && [ "`busybox ps | grep Bullet | grep Proof`" ]. don e echo "" echo $line echo "" $sleep echo " Un-BulletProof Previously BulletProofed Apps?" echo "" $sleep echo " You can Un-BulletProof All or Individually . then rm /data/V6_SuperCharger/BulletProof_Apps*..d/*BulletProof_Apps*.. do echo "" $sleep echo " Un-Bulletproof $u nbpapp?" echo "" echo -n " Enter Y for Ye s. any key for No: " read unbp echo "" echo $line case $unbp in y|Y)while :. fi 2>/dev/null if [ "`ls /system/etc/init. any key for No: " read unbpone echo "" . opt=15 break.do echo "" $sleep echo -n " Un-BulletProof (A)ll (I)ndivid ually E(X)it? " read unbpopt echo "" echo $line case $unbpopt in a|A)if [ "`ls /data/V6_SuperCharger/Bu lletProof_Apps*.." echo "" $sleep echo -n " Enter Y for Yes. then echo " You are currently BulletProofing. fi 2>/dev/ null echo " Un-BulletProo fed ALL Apps!" bpapplist=. fi 2 >/dev/null if [ "`ls /data/V6_SuperCharge r/BulletProof_Apps*`" ]. then rm /system/etc/init. then rm /data/*BulletProof_Apps*..^]" echo "" $sleep echo " \"One-Shot\" scripts will remain untouched." echo "" $sleep for bpapp in $bpapplist. fi 2>/ dev/null if [ "`ls /data/*BulletProof_A pps*`" ]. i|I)for unbpapp in $bpapplist.d/* BulletProof_Apps*`" ].

let's BulletPro of something!" break.. do ec ho " $bpapp". *)echo " Cool Beans!"...echo $line case $unbpone in y|Y)sed -i '/Begin '$u nbpapp'/.. done echo "" showedbpapplist=yes... then echo $line echo "" $sleep fi fi 2>/dev/null if [ "$opt" -eq 16 ] && [ ! "$rebulletproof" ]. esac if [ "$opt" -eq 16 ]. then echo " This will attempt to lock an app in memory!" echo "" $sleep echo " To undo.. I hope you know what process to ent .. x|X)echo " Ok. any key for Yes: " read bp echo "" echo $line case $bp in n|N)echo " Okay.. opt=15 break./End '$unbpapp'/d' /data/V6_SuperCharger/BulletProof_Apps_Fine_Tuner.. esac done. P lease try again :p" echo $line.. esac done bpapplist=`cat /data/V6_SuperC harger/BulletProof_Apps_HitList` echo "" $sleep echo " Here's Your Updated Hit List!" echo "" $sleep for bpapp in $bpapplist. *).. *)echo " Invalid entry.sh sed -i '/'$unb papp'/d' /data/V6_SuperCharger/BulletProof_Apps_HitList echo " Un-Bull etProofed $unbpapp!" echo $line.. come back here to \"Un-Bulletproof\"!" echo "" $sleep echo " Do you want to view the current process list?" echo "" $sleep echo " You can BulletProof Apps without viewing it!" echo "" $sleep echo -n " Enter N for No.

.. then adj=15 elif [ "${adj#-}" -gt 20 ]..0f\n". then adj=`echo $adj | awk '{printf "%. then echo $line echo "" $sleep echo " =================================" echo "----=== zeppelinrox's bOOM Stick Verifier ===---" echo " =================================" echo "" $sleep if [ "$vroomverifier" -eq 0 ]. *//'"` if [ "`echo $appname | grep -v " /"`" ] || [ "`echo $appname | grep "\. do if [ -f "/proc/$i/$oom_adj" ]. esac fi if [ "$vroomverifier" ]... $sleep echo " ADJ PID fi echo echo echo if [ Process/Path (APK)" "" " FOREGROUND_APP OOM GROUPING" " ===========================" "$HL" -gt -18 ] && [ "$HL" -lt "$oomadj1" ]. then echo "" echo " HOME LAUNCHER IS IN HERE! (ADJ=$HL)" echo "" Process" fi for i in `busybox ps | grep -v "\]$" | awk '{print $1}'` . then echo " Using zOOM Stick Mode (Quick)."`" ].. $sleep echo " ADJ PID else echo " Using vrOOM Stick Mode (Verbose). then adj=-16 elif [ "$adj" -eq 1000 ]. then echo "" echo " Home Launcher is on the N EXT line! (ADJ=$HL)" fi echo -n " $adj " echo -n $i if [ "$vroomverifier" -eq 1 ]. $1*17/1000}'` fi if [ "$adj" -gt -18 ] && [ "$adj" -lt "$oomadj1" ].er!" bpblind=yes..". then # apkname=`su -c "LD_LIBRARY_PATH= /vendor/lib:/system/lib pm list packages -f $appname | sed 's/. echo " ".". then workappname=`echo $appna . *)echo " Loading zOOM Stick Verifier (Quick)." vroomverifier=0.*://' | sed 's/=. then apkname= adj=`cat /proc/$i/$oom_adj` if [ "$adj" -eq -1000 ]. then appname=$(echo `cat /proc/$i/cmdline | a wk '{print $1}' | sed 's/grep //'`) if [ "$adj" -eq "$HL" ] && [ "$lname" = "$appname" ].. ech o "".

*://' | sed 's/=. then echo -n " $appname" echo " ($apkname)" else echo " $appname" fi fi fi 2>/dev/null done echo "" if [ "$scadj" ] && [ "$currentadj" = "$scadj" ] && [ "$o . then echo -n " $appname" echo " ($apkname)" else echo " $appname" fi fi fi 2>/dev/null done if [ "$HL" -eq "$oomadj1" ].me | sed 's/. then workappname=`echo $appna me | sed 's/. then # apkname=`su -c "LD_LIBRARY_PATH= /vendor/lib:/system/lib pm list packages -f $appname | sed 's/. then adj=15 elif [ "${adj#-}" -gt 20 ]. do if [ -f "/proc/$i/$oom_adj" ].0f\n". then echo "" echo " Home Launcher is on the N EXT line! (ADJ=$HL)" fi echo -n " $adj " echo -n $i if [ "$vroomverifier" -eq 1 ]. then echo "" echo " HOME LAUNCHER IS IN HERE! (ADJ=$HL)" echo "" fi for i in `busybox ps | grep -v "\]$" | awk '{print $1}'` .*\///'` apkname=`busybox find / -iname "*$workappname*. then apkname= adj=`cat /proc/$i/$oom_adj` if [ "$adj" -eq -1000 ].apk" -maxdepth 3 | tail -n 1` fi fi if [ "$apkname" ]. *//'"` if [ "`echo $appname | grep -v " /"`" ] || [ "`echo $appname | grep "\. then appname=$(echo `cat /proc/$i/cmdline | a wk '{print $1}' | sed 's/grep //'`) if [ "$adj" -eq "$HL" ] && [ "$lname" = "$appname" ].*\///'` apkname=`busybox find / -iname "*$workappname*.apk" -maxdepth 3 | tail -n 1` fi fi if [ "$apkname" ]. then adj=`echo $adj | awk '{printf "%. $1*17/1000}'` fi if [ "$adj" -eq "$oomadj1" ]. then adj=-16 elif [ "$adj" -eq 1000 ]."`" ].

then apkname= adj=`cat /proc/$i/$oom_adj` if [ "$adj" -eq -1000 ]. t hen # apkname=`su -c "LD_LIBRA RY_PATH=/vendor/lib:/system/lib pm list packages -f $appname | sed 's/.apk" -maxdepth 3 | tail -n 1` fi fi if [ "$apkname" ].*://' | s ed 's/=. then echo "" echo " Home Launcher is on the NEXT line! (ADJ=$HL)" fi echo -n " $adj " echo -n $i if [ "$vroomverifier" -eq 1 ]."`" ]. do if [ -f "/proc/$i/$oom_adj" ]. then adj=`ec ho $adj | awk '{printf "%.omstick" -eq 1 ] && [ "$HL" -ne "$oomadj1" ]. then echo " HOME_LAUNCHER OOM GROUPING!" echo " ===========================" for i in `busybox ps | grep -v "\]$" | awk '{pri nt $1}'`.*//'"` if [ "`echo $appname | g rep -v "/"`" ] || [ "`echo $appname | grep "\.*\///'` apkname=`busybox find / -iname "*$workappname*. then apkname= adj=`cat /proc/$i/$oom_adj` if [ "$adj" -eq -1000 ].0f\n". $1*17/1000}'` fi if [ "$adj" -eq "$oomadj2" ]. then appname=$(echo `cat /proc/$i/cmd line | awk '{print $1}' | sed 's/grep //'`) if [ "$adj" -eq "$HL" ] && [ "$l name" = "$appname" ]. then adj=`ec ho $adj | awk '{printf "%. then adj=15 elif [ "${adj#-}" -gt 20 ]. do if [ -f "/proc/$i/$oom_adj" ].0f\n". then ec ho "". then adj=15 elif [ "${adj#-}" -gt 20 ]. then adj=-16 elif [ "$adj" -eq 1000 ]. $1*17/1000}'` fi if [ "$adj" -gt "$oomadj1" ] && [ "$adj" -lt "$oomadj2" ]. then . then workappname=`ech o $appname | sed 's/. fi fi fi 2>/dev/null done echo "" echo " VISIBLE_APP OOM GROUPING" echo " ========================" for i in `busybox ps | grep -v "\]$" | awk '{pri nt $1}'`. then echo -n " $appname" echo " ($apkname)" else echo " $appname" fi if [ "$adj" -eq "$HL" ]. then adj=-16 elif [ "$adj" -eq 1000 ].

"`" ]. then apkname= adj=`cat /proc/$i/$oom_adj` if [ "$adj" -eq -1000 ]. then adj=`ec ho $adj | awk '{printf "%. then echo "" echo " HOME LAUNCHER IS IN HERE! (ADJ=$H L)" echo "" fi for i in `busybox ps | grep -v "\]$" | awk '{pri nt $1}'`. then adj=-16 elif [ "$adj" -eq 1000 ].*://' | s .0f\n". t hen # apkname=`su -c "LD_LIBRA RY_PATH=/vendor/lib:/system/lib pm list packages -f $appname | sed 's/. then echo "" echo " Home Launcher is on the NEXT line! (ADJ=$HL)" fi echo -n " $adj " echo -n $i if [ "$vroomverifier" -eq 1 ].*://' | s ed 's/=. do if [ -f "/proc/$i/$oom_adj" ].appname=$(echo `cat /proc/$i/cmd line | awk '{print $1}' | sed 's/grep //'`) echo -n " $adj " echo -n $i if [ "$vroomverifier" -eq 1 ]. then adj=15 elif [ "${adj#-}" -gt 20 ]. then echo -n " $appname" echo " ($apkname)" else echo " $appname" fi fi fi 2>/dev/null done else echo " VISIBLE_APP OOM GROUPING" echo " ========================" if [ "$HL" -gt "$oomadj1" ] && [ "$HL" -le "$oom adj2" ]. $1*17/1000}'` fi if [ "$adj" -gt "$oomadj1" ] && [ "$adj" -le "$oomadj2" ].apk" -maxdepth 3 | tail -n 1` fi fi if [ "$apkname" ]. t hen # apkname=`su -c "LD_LIBRA RY_PATH=/vendor/lib:/system/lib pm list packages -f $appname | sed 's/.*\///'` apkname=`busybox find / -iname "*$workappname*. then workappname=`ech o $appname | sed 's/.*//'"` if [ "`echo $appname | g rep -v "/"`" ] || [ "`echo $appname | grep "\. then appname=$(echo `cat /proc/$i/cmd line | awk '{print $1}' | sed 's/grep //'`) if [ "$adj" -eq "$HL" ] && [ "$l name" = "$appname" ].

then echo "" echo " Home Launcher is on the N EXT line! (ADJ=$HL)" fi echo -n " $adj " echo -n $i if [ "$vroomverifier" -eq 1 ]. then appname=$(echo `cat /proc/$i/cmdline | a wk '{print $1}' | sed 's/grep //'`) if [ "$adj" -eq "$HL" ] && [ "$lname" = "$appname" ]. then workappname=`echo $appna me | sed 's/.0f\n".apk" -maxdepth 3 | tail -n 1` fi fi . then # apkname=`su -c "LD_LIBRARY_PATH= /vendor/lib:/system/lib pm list packages -f $appname | sed 's/. then echo -n " $appname" echo " ($apkname)" else echo " $appname" fi fi fi 2>/dev/null done fi echo "" echo " SECONDARY_SERVER OOM GROUPING" echo " =============================" if [ "$HL" -gt "$oomadj2" ] && [ "$HL" -le "$oomadj3" ].ed 's/=.*\///'` apkname=`busybox find / -iname "*$workappname*. *//'"` if [ "`echo $appname | grep -v " /"`" ] || [ "`echo $appname | grep "\. then echo "" echo " HOME LAUNCHER IS IN HERE! (ADJ=$HL)" echo "" fi for i in `busybox ps | grep -v "\]$" | awk '{print $1}'` .apk" -maxdepth 3 | tail -n 1` fi fi if [ "$apkname" ]. $1*17/1000}'` fi if [ "$adj" -gt "$oomadj2" ] && [ "$adj" -le "$o omadj3" ]."`" ]. then adj=-16 elif [ "$adj" -eq 1000 ].*://' | sed 's/=. then workappname=`ech o $appname | sed 's/. then adj=`echo $adj | awk '{printf "%.*//'"` if [ "`echo $appname | g rep -v "/"`" ] || [ "`echo $appname | grep "\. then adj=15 elif [ "${adj#-}" -gt 20 ]. do if [ -f "/proc/$i/$oom_adj" ]. then apkname= adj=`cat /proc/$i/$oom_adj` if [ "$adj" -eq -1000 ]."`" ].*\///'` apkname=`busybox find / -iname "*$workappname*.

then appname=$(echo `cat /proc/$i/cmdline | a wk '{print $1}' | sed 's/grep //'`) if [ "$adj" -eq "$HL" ] && [ "$lname" = "$appname" ].*://' | sed 's/=.if [ "$apkname" ]. then echo -n " $appname" echo " ($apkname)" else echo " $appname" fi fi done echo echo echo if [ then echo "" echo " HOME LAUNCHER IS IN HERE! (ADJ=$HL)" echo "" fi for i in `busybox ps | grep -v "\]$" | awk '{print $1}'` . then apkname= adj=`cat /proc/$i/$oom_adj` if [ "$adj" -eq -1000 ]. then echo -n " $appname" echo " ($apkname)" else echo " $appname" fi fi fi 2>/dev/null done echo "" echo " CONTENT_PROVIDER OOM GROUPING" fi 2>/dev/null "" " HIDDEN_APP OOM GROUPING" " =======================" "$HL" -gt "$oomadj3" ] && [ "$HL" -le "$oomadj4" ].0f\n". then adj=15 elif [ "${adj#-}" -gt 20 ]. then adj=-16 elif [ "$adj" -eq 1000 ].apk" -maxdepth 3 | tail -n 1` fi fi if [ "$apkname" ]. then adj=`echo $adj | awk '{printf "%. then # apkname=`su -c "LD_LIBRARY_PATH= /vendor/lib:/system/lib pm list packages -f $appname | sed 's/. then echo "" echo " Home Launcher is on the N EXT line! (ADJ=$HL)" fi echo -n " $adj " echo -n $i if [ "$vroomverifier" -eq 1 ]. then workappname=`echo $appna me | sed 's/. . do if [ -f "/proc/$i/$oom_adj" ].*\///'` apkname=`busybox find / -iname "*$workappname*."`" ]. *//'"` if [ "`echo $appname | grep -v " /"`" ] || [ "`echo $appname | grep "\. $1*17/1000}'` fi if [ "$adj" -gt "$oomadj3" ] && [ "$adj" -le "$o omadj4" ].

then # apkname=`su -c "LD_LIBRARY_PATH= /vendor/lib:/system/lib pm list packages -f $appname | sed 's/. then workappname=`echo $appna me | sed 's/. then echo "" echo " Home Launcher is on the N EXT line! (ADJ=$HL)" fi echo -n " $adj " echo -n $i if [ "$vroomverifier" -eq 1 ]. then apkname= adj=`cat /proc/$i/$oom_adj` if [ "$adj" -eq -1000 ]. then adj=-16 elif [ "$adj" -eq 1000 ].*\///'` apkname=`busybox find / -iname "*$workappname*. then adj=15 elif [ "${adj#-}" -gt 20 ]. then adj=`echo $adj | awk '{printf "%. $1*17/1000}'` fi if [ "$adj" -gt "$oomadj4" ] && [ "$adj" -le "$o omadj5" ]."`" ]. then echo "" echo " HOME LAUNCHER IS IN HERE! (ADJ=$HL)" echo "" fi for i in `busybox ps | grep -v "\]$" | awk '{print $1}'` .*://' | sed 's/=. then echo "" echo " HOME LAUNCHER IS IN HERE! (ADJ=$HL)" echo "" fi for i in `busybox ps | grep -v "\]$" | awk '{print $1}'` . do if [ -f "/proc/$i/$oom_adj" ]. do if [ -f "/proc/$i/$oom_adj" ]. *//'"` if [ "`echo $appname | grep -v " /"`" ] || [ "`echo $appname | grep "\. then echo -n " $appname" echo " ($apkname)" else echo " $appname" fi fi fi 2>/dev/null done echo "" echo " EMPTY_APP OOM GROUPING" echo " ======================" if [ "$HL" -gt "$oomadj5" ] && [ "$HL" -le "$oomadj6" ].0f\n". then apkname= . then appname=$(echo `cat /proc/$i/cmdline | a wk '{print $1}' | sed 's/grep //'`) if [ "$adj" -eq "$HL" ] && [ "$lname" = "$appname" ].apk" -maxdepth 3 | tail -n 1` fi fi if [ "$apkname" ].echo " =============================" if [ "$HL" -gt "$oomadj4" ] && [ "$HL" -le "$oomadj5" ].

then adj=`echo $adj | awk '{printf "%. then echo $line echo " Installing BulletProof Apps Service to. then appname=$(echo `cat /proc/$i/cmdline | a wk '{print $1}' | sed 's/grep //'`) if [ "$adj" -eq "$HL" ] && [ "$lname" = "$appname" ]. then echo "" echo " Home Launcher is on the N EXT line! (ADJ=$HL)" fi echo -n " $adj " echo -n $i if [ "$vroomverifier" -eq 1 ]. echo " zOOM Stick Complete !" fi fi if [ "$vroomverifier" ] && [ "$opt" -eq 16 ] || [ "$bpblind" ] | | [ "$rebulletproof" ].adj=`cat /proc/$i/$oom_adj` if [ "$adj" -eq -1000 ].. *//'"` if [ "`echo $appname | grep -v " /"`" ] || [ "`echo $appname | grep "\. then # apkname=`su -c "LD_LIBRARY_PATH= /vendor/lib:/system/lib pm list packages -f $appname | sed 's/. echo " vrOOM Stick Complete!" else echo $line. $1*17/1000}'` fi if [ "$adj" -gt "$oomadj5" ] && [ "$adj" -le "$o omadj6" ]..apk" -maxdepth 3 | tail -n 1` fi fi if [ "$apkname" ]. then workappname=`echo $appna me | sed 's/./BulletProofe d_Apps_Service/d' $bps cat >> $bps <<EOF # BulletProof_Apps_Service created by -=zeppelinrox=- . then if [ "$rebulletproof" ] && [ "$allrcpaths" ].*\///'` apkname=`busybox find / -iname "*$workappname*. then echo $line. then echo -n " $appname" echo " ($apkname)" else echo " $appname" fi fi fi 2>/dev/null done echo "" if [ "$vroomverifier" -eq 1 ]. " echo $line echo "" $sleep fi for bps in $initrcpath $allrcpaths.*://' | sed 's/=. then adj=-16 elif [ "$adj" -eq 1000 ]."`" ].0f\n". do sed -i '/BulletProof_Apps_Service/. then adj=15 elif [ "${adj#-}" -gt 20 ].

. "Bullet" (created by your query so this doesn't mean anything) # # If it's not running. # The output would be 3 items: # a.$bps!".# # DO NOT DELETE COMMENTS. run Terminal Emulator and type. DELETING COMMENTS WILL BREAK UNINSTALL ROUTINE! # #################################### # BulletProof Apps Service Notes # #################################### # To stop the BulletProof Apps Service. # # Similar results can be had with: "busybox ps | grep Bullet".. t hen if [ "$preics" ]. "/data/97BulletProof_Apps... then opt=32 echo $line echo "" $sleep echo " Re-SuperCharger is ALMOST done!" echo "" $sleep elif [ "$servicesjarpatched" ] || [ "$se rvicesjarinstalled" ]. # # If the service is running and you type: "cat /proc/*/cmdline | grep Bullet". EOF cp -fr $bps $storage/V6_SuperCharger if [ "$bps" != "$initrcpath" ] && [ "$rebulletpr oof" ] && [ "$allrcpaths" ]. then opt=25 echo $line echo "" $sleep echo " Now off to the \"Jelly IS Cream Parlor\". then echo $line echo " I Scream SUPE RCHARGED!" elif [ ! "$showedparlor" ]. type. # service bullet_service /system/bin/sh /data/97BulletProof_Apps. # "start bullet_service" and Enter. fi done if [ "$rebulletproof" ] && [ "$allrcpaths" ].sh" # b. # "su" and Enter.sh class post-zygote_services user root group root # # End of BulletProofed_Apps_Service Entries." echo "" . # # To restart the BulletProof Apps Service.. # "su" and Enter. $sleep.. # "stop bullet_service" and Enter. the output would be the last item ie. "BulletProof_Apps_is_In_Effect!" (sleep message) # c. "Bullet" which was generated by the typed command. then echo " . then echo "" if [ "$autoresupercharge" ] || [ "$postics" ]...

redistribu tion.if using the service or usage option 3 (with Script Manager) # 3. "busybox ps | grep Bullet" would give similar results as 3. # # This script can be used freely and can even be modified for PERSONAL USE ONLY. # There are many things may look simple. # You can easily add to or edit the HitList right from your device! # Just enter a unique segment of the proces name! However. "/path/to/*97BulletProof_Apps*" # b. "BulletProof_Apps_is_In_Effect!" (sleep message) # c.^] # . # Thanks.d script or usage option 2 (with Terminal ) # 2.^] # The output should be 3 items: # a. # Prohibited: Any modification (excluding personal use). or mirrors of my work are NOT PERMITTED. opt=24 fi autoresupercharge=. Runs automatically via custom rom's init. # 3.for init. # 2. but actually took a lot of time. zeppelinrox. then cat > /data/97BulletProof_Apps. type in Terminal: # 1. "pstree | grep Bullet" . # It can be freely incorporated into ROMs . # . "/data/97*" and enter. Script Manager: launch it once like any other script OR with a widge t (DO NOT PUT IT ON A SCHEDULE!) # # Important! Whether you run this with Terminal or Script Manager or widget. "cat /proc/*/cmdline | grep Bullet" .sh <<EOF #!/system/bin/sh # # BulletProof Apps Boot Script created by -=zeppelinrox=# # V6U9RC12T6 # # When using scripting tricks. Type in Terminal: "su" and enter. and error to get perfected. # So you can close the app after 30 seconds and BulletProof Apps cont inues in the background! # # To verify that it's running. "pstree | grep sleep" . repackaging.provided that proper credit is given WITH a link back to the XDA SuperCharger thread. # If you want to share it or make a thread about it. the more info you giv e.Sure-Fire method . the better . # # This script loads a list of apps via /data/V6_SuperCharger/BulletProof_Apps_Hi tList. the script relaunches and kills itself after 30 seconds. or code snippets from here. ideas. # # Usage: 1. "Bullet" (created by your query so this doesn't mean anything) # 4. just provide a link to the main thread. rebulletproof= fi fi if [ "$vroomverifier" ] && [ "$opt" -eq 16 ] || [ "$bpblind" ].$sleep fi else newsupercharger=.d folder or BulletProof App s Service. please give pr oper credit.This ensures that users will always be getting the latest versions. trial.

fi 2>/dev/null. "BulletProof_Apps_is_In_Effect!" (sleep message) # c.No SuperUser For You!!". # # Similar results can be had with: "busybox ps | grep Bullet". delete the # at the beginning of the following 2 lines.. id=\$(id).. # The output would be 3 items: # a. # "su" and Enter.sh <<EOF clear.". # "su" and Enter. # # echo "". busybox mount -o remount. # For debugging. then w=" -w". # "start bullet_service" and Enter.sh. "/data/97BulletProof_Apps.. then cat >> /data/97BulletProof_Apps.# This ALSO loads /data/V6_SuperCharger/BulletProof_Apps_Fine_Tuner. id=\${id%%[\\( ]*}. line=================================================. # # To stop the BulletProof Apps Service. echo \$line. then echo " You are NOT running this script as root. if [ "\$id" != "0" ] && [ "\$id" != "root" ]. run Terminal Emulator and type. Sorry :P # EOF fi cat >> /data/97BulletProof_Apps. "Bullet" (created by your query so this doesn't mean anything) # # If it's not running.. echo \$line. # exec > /data/Log_BulletProof_Apps. type.sh" # b.log 2>&1. # EOF if [ ! "$allrcpaths" ]. echo "". echo \$line.sh <<EOF # Ummm. . # "stop bullet_service" and Enter.. # set -x. # # To restart the BulletProof Apps Service.log file to see what may have fubarred.script by -=zeppelinrox=-". # # If the service is running and you type: "cat /proc/*/cmdline | grep Bullet". echo \$line.. the output would be the last item ie.. # Read the comments in that file for "Fine Tuning" instrucions! # #################################### # BulletProof Apps Service Notes # #################################### # To leave the BulletProof Apps Service running. echo " See /data/Log_BulletProof_Apps. # mount -o remount. echo " -=BulletProof Apps=. echo "". if [ "\`busybox ps -w\`" ]. echo "". this service won't work on your current ROM. echo " .log for the output!".rw /data 2>/dev/null. id=\${id#*=}... echo "". and che ck /data/Log_BulletProof_Apps..rw /data 2>/dev/null. "Bullet" which was generated by the typed command. insert a # at the beginning of the "stop bullet_service" entry near the middle of this script.

echo " To verify that it's working. echo " This should update every 30 seconds!" > /data/Ran_BulletProof_App s. echo " BulletProofed \$bpapp!". do if [ "\`pgrep \$bpapp\`" ]. echo "". cat /proc/\$bp/oom_score.sh. echo "". echo " ======================================="... echo "".so it can't be BulletProofed :(".". cat /proc/\$bp/oom_adj. echo -1000 > /proc/\$bp/oom_score_adj.. done.log. echo "". echo "". then echo " BulletProof Apps is already running!".check out /data/Ran_BulletProof_Apps.". echo " zOOM. zOOM. echo -n " \$bpapp's oom priority is ". echo "".. sleep 2.. echo " . echo " ==============================". echo " ) BulletProofing Complete! ("... renice -10 \$bp. for bpapp in \$bpapplist. then if [ "\`pgrep scriptmanager\`" ]. exit 69. exit 69..". echo " It runs every 30 seconds automatically!". echo \$line. else echo " Can't find \$bpapp running. echo " . bpapplist=\`cat /data/V6_SuperCharger/BulletProof_Apps_HitList\`. echo " ==============================". do echo -17 > /proc/\$bp/oom_adj.log. echo "". done 2>/dev/null. then for bp in \`pgrep \$bpapp\`.. . echo \$line. echo "". elif [ "\`pgrep -l android\`" ]. echo " DO NOT PUT THIS ON A SCHEDULE!". fi. echo \$line. sleep 2..log!".. echo -n " \$bpapp's oom score is ".. echo " \$( date +"%m-%d-%Y %H:%M:%S" ): BulletProofed Apps with \$0!" >> /data/Ran_BulletProof_Apps.Please Run as Root and try again.echo "". cat /proc/\$bp/oom_score_adj. echo "". then sleep 2. fi 2>/dev/null. elif [ "\`busybox ps | grep Bullet | grep Apps_is\`" ]. echo " .. echo "".".. # stop bullet_service... sh /data/V6_SuperCharger/BulletProof_Apps_Fine_Tuner. echo "".

fi cp -fr /system/etc/init.".sh /syste m/etc/init..Gonna BulletProof Some More!". fi.sh. read enter. then (busybox nohup \$0 > /dev/null &). echo "". if [ "\`busybox --help | grep nohup\`" ] && [ ! "\`busybox ps\$w | grep "/\${0##*/}" | grep {\`" ].d/97BulletProof_Apps for i in /system/etc/init. echo \$line.".. then cp -fr /data/97Bull etProof_Apps. exit.d!" echo "" $sleep . elif [ "\`busybox --help | grep start-stop-daemon\`" ] && [ ! "\`busybox ps\$w | grep "/\${0##*/}" | grep {\`" ]. sleep 30 | grep "BulletProof_Apps_is_In_Effect!".. echo " When this happens you can close this app!". echo "". stty -icanon min 0 time 50. then busybox start-stop-daemon -S -b x \$0.d/97BulletProof_Apps /system/etc/init.break. \$0 & echo -n " Press The Enter Key. EOF chown 0.d/S* " ].d/97BulletProof_Apps`" ]. exit../s/#//' /system/ etc/init.d/97BulletProof_Apps sed -i 's/# echo/echo/' /system/etc/init . chmod 777 /data/9 7BulletProof_Apps...echo " Waiting 30 seconds to re-execute. echo \$line.d/S*. echo \$line. then. do Sfile s=$i.d/97BulletProof_Apps if [ ! "`diff /data/97BulletProof_Apps. echo " Ok done! You can close this App!".d/*BulletProof_A pps* $storage/V6_SuperCharger else echo $line echo "" $sleep echo " WARNING: ERROR copying file to /s ystem/init.sh /system/etc/init.d" ].sh $storage/V6_SuperChar ger if [ -d "/system/etc/init..d/S97BulletP roof_Apps.d/97BulletProof_Apps sed -i '/bullet_service... stty sane. echo "". then mv /system/etc/init.done if [ "$Sfiles" != "/system/etc/init. exit 0. ". \$0 & exit 0.sh cp -fr /data/97BulletProof_Apps. echo " . echo "".. then sed -i 's/clear/# clear/' /system/etc/in it.d/97BulletProof_Apps sed -i 's/# exec >/exec >/' /system/etc/ init..0 /data/97BulletProof_Apps. fi. echo " Hold on. echo \$line. echo "".

Media or SM S App!" echo "" $sleep if [ "$postics" ] && [ ! "$servicesjarpatched" ] .so it can't be Bul letProofed :(" echo $line echo "" $sleep echo " Tip: You can manually edit/add ap ps to. then echo " Ideas: BulletProof the Phone.." echo "" $sleep echo " /data/V6_SuperCharger/BulletProof _Apps_HitList!" echo "" ."Free ("$5" Used)"}' | tail -n 1`" echo "" fi fi while :.bppid=.^]" break else touch /data/V6_SuperCharger/BulletProof_Apps_HitL ist if [ ! "`pgrep $bpps`" ].echo " Got enough free space?" echo "" $sleep echo " System Partition has `busybox df -h /system | awk '{print $4... See Ya Later! ." echo "" $sleep echo -n " Or press the Enter key to exit: " read bpps echo "" echo $line if [ ! "$bpps" ]." echo "" $sleep echo " . do bpps=...bpappname=. then echo " Can't find $bpps running...apprunning= echo $line echo "" $sleep if [ ! "$bptips" ].." echo "" $sleep echo " Example: \"Opera\" for Opera Browser.. then echo " Okay. then echo $line echo " POST-ICS TIP! Try BulletProofing The Launcher!" echo $line echo "" $sleep fi bptips=shown fi echo " Enter a unique segment of the process name....

do if [ "`cat /proc/$b/cmdline`" ].. then $sleep echo " BulletProofing $bpappname . break. fi done fi 2>/dev/null fi if [ "$bpappname" ]." echo "" $sleep echo "-17" > /proc/`pgrep $bpps` /oom_adj echo "-1000" > /proc/`pgrep $bpp s`/oom_score_adj renice -10 `pgrep $bpps` echo " $bpappname has been Bulle tProofed!" echo "" $sleep echo -n " $bpappname's oom score is " cat /proc/`pgrep $bpps`/oom_scor e echo "" $sleep echo -n " $bpappname's oom prior ity is " cat /proc/`pgrep $bpps`/oom_adj cat /proc/`pgrep $bpps`/oom_scor e_adj echo $line . then bpappname=${bpappname% :*} if [ "$apprunning" ]. then b pappname=`cat /proc/$bppid/cmdline | sed 's/.. bpappname=$bpps else bppid=`pgrep $bpps`. then echo $line.. esac echo "" $sleep fi if [ "$bpappname" ].. then bpappnametemp=`cat /proc /$b/cmdline | sed 's/..*\///'` else echo "" echo " Grrrr. *). there's more tha n one match!" echo "" $sleep for b in `pgrep $bpps`.*\///'` echo -n " Want $bpappnam etemp? (Y)es or E(N)ter: " read pick case $pick in y|Y)bpappname=$bpappna metemp. apprunning=true if [ -f "/proc/$bppid/cmdline" ]..echo $line.

.. echo " This BulletProof \"One-Shot\" Script Exists! :o)" else echo "" $sleep echo " Save BulletProof \"One-Sh ot\" Script to. with Scrip t Manager. then echo " If so.. wait 30 seconds and...." echo "" $sleep echo " \"/data/V6*/Bulle t*/1Shot*\" and enter!" echo "" $sleep echo " THAT'S IT!" echo "" $sleep echo $line echo " NOTE: DO NOT p ut it on a timed schedule!" echo $line echo "" $sleep echo " Just launch it.. with Terminal Emulator." echo "" $sleep echo " .fi 2>/dev/null if [ "`ls /data/V6_SuperCharger/BulletPr oof_One_Shots | grep $bpappname`" ].data/V6_SuperCharger/B ulletProof_One_Shots?" echo "" $sleep if [ ! "$bpwinfo" ]...." echo "" $sleep echo " .. then $sleep....you can quickl y run ALL \"One-Shot\" scripts!" echo "" $sleep echo " Type: \"su\" and enter...." echo "" $sleep echo " ..the script wi ll relaunch then kill itself!" echo "" $sleep echo " You can then clos ." echo "" $sleep echo " .." echo "" $sleep echo " OR.. make a \"Quick Widget\" for it.

# So you can close the app after 30 seconds and the BulletProof "OneShot" continues in the background! # # To verify that it's running.. just run the script again! # OR you can type in Terminal: # 1.provided that proper credit is given WITH a link back to the XDA SuperCharger thread. # # This script can be used freely and can even be modified for PERSONAL USE ONLY. "pstree | grep sleep" .for usage option 2 (with Script Manager) # 3.sh <<EOF #!/system/bin/sh # # BulletProof "One-Shot" Script created by -=zeppelinrox=# # V6U9RC12T6 # # When using scripting tricks. or mirrors of my work are NOT PERMITTED." echo "" $sleep echo " .. ideas.. *)cat > /data/V6_SuperCh arger/BulletProof_One_Shots/1Shot-$bpappname. maybe next time!". "/data/V6_SuperCharger/BulletProof_One_Shots/1Shot-$bpappname.sh" # b.This ensures that users will always be getting the latest versions.. please give pr oper credit. "/data/V6*/Bullet*/1Shot*" and ent er. "pstree | grep 1Shot" .for usage option 1 (with Terminal) # 2. Script Manager: launch it once like any other script OR with a widge t (DO NOT PUT IT ON A SCHEDULE!) # # Important! Whether you run this with Terminal or Script Manager or widget. but actually took a lot of time.. # Prohibited: Any modification (excluding personal use).. # If you want to share it or make a thread about it.the BulletPr oof \"One-Shot\" keeps running!" echo "" $sleep bpwinfo=shown fi echo -n " Enter N for No.^] # The output should be 3 items: # a. # # Usage: 1.. or code snippets from here. "busybox ps | grep 1Shot" would give similar results as 3.e Script Manager and.Sure-Fire method . # There are many things may look simple. (This runs all 1Shot scripts) # 2. # . the script relaunches and kills itself after 30 seconds. any ke y for Yes: " read bpsps echo "" echo $line case $bpsps in n|N)echo " Okay. repackaging. # Thanks. Type in Terminal: "su" and enter. "1Shot-$bpappname_is_In_Effect!" (sleep message) # c. just provide a link to the main thread. # It can be freely incorporated into ROMs . redistribu tion. . and error to get perfected. "cat /proc/*/cmdline | grep 1Shot" . zeppelinrox. trial. "1Shot" (created by your query so this doesn't mean anything) # 4.

Please Run as Root and try again." ." echo "" echo " . then for bp in \`pgrep $bpappname\`. do echo -17 > /proc/\$bp/oom_adj echo -1000 > /proc/\$bp/oom_score_adj renice -10 \$bp echo " BulletProofed $bpappname!" echo "" echo -n " $bpappname's oom score is " cat /proc/\$bp/oom_score echo "" echo -n " $bpappname's oom priority is " cat /proc/\$bp/oom_adj cat /proc/\$bp/oom_score_adj echo "" done 2>/dev/null else echo " Can't find $bpappname running.. then w=" -w"....." echo "" echo \$line echo "" sleep 3 exit 69 elif [ "\`busybox ps | grep $bpappname | grep $bpappname_is\`" ]. id=\${id#*=}... then sleep 2 echo " You are NOT running this script as root. fi 2>/dev/null id=\$(id). then echo " This 1Shot is already running!" echo "" exit 69 else if [ "\`pgrep $bpappname\`" ].. id=\${id%%[\\( ]*} if [ "\$id" != "0" ] && [ "\$id" != "root" ].so it can't be BulletProofed :(" echo "" fi sleep 1 echo " =======================================" echo " ) BulletProof \"One-Shot\" Completed! (" echo " =======================================" echo "" sleep 1 echo " Waiting 30 seconds to re-execute.# clear line================================================= echo "" echo \$line echo " -=BulletProof=.. then....No SuperUser For You!!" echo \$line echo "" sleep 3 echo " ..\"One-Shot\" by -=zeppelinrox=-" echo \$line echo "" sleep 1 if [ "\`busybox ps -w\`" ]...." echo "" sleep 3 echo \$line echo " .

.0 /data/V6_Sup erCharger/BulletProof_One_Shots/*.. get . t hen echo $line echo "" $sleep echo " To see if it's working......data/V6_Supe rCharger/BulletProof_One_Shots!" if [ ! "$bp1info" ]. .sh to.." echo "" sleep 30 | grep "1Shot-$bpappname_is_In_Effect!" echo \$line echo " Ok done! You can close this App!" echo \$line echo "" sleep 1 if [ "\`busybox --help | grep nohup\`" ] && [ ! "\`busybox ps\$w | grep "/\${0##*/}" | grep {\`" ]. you can type. then (busybox nohup \$0 > /dev/null &)... then busybox start-stop-daemon -S -b x \$0." echo "" $sleep echo " .in Terminal Emulator.. " stty -icanon min 0 time 50 read enter stty sane exit 0 fi EOF echo " Saved 1Shot-$bp appname. exit elif [ "\`busybox --help | grep start-stop-daemon\`" ] && [ ! "\`busybox ps\$w | grep "/\${0##*/}" | grep {\`" ]...." echo "" $sleep chown 0." echo "" $sleep echo " \"pstree | grep 1Shot\" OR \"pstree | grep sleep\"" echo "" $sleep echo " OR..echo "" sleep 1 echo " Gonna BulletProof $bpappname again!" echo "" sleep 1 echo \$line echo " When this happens you can close this app!" echo \$line echo "" sleep 1 echo " Hold on. chmod 777 /data/V6_SuperCharger/BulletProof_O ne_Shots/* cp -fr /data/V6_SuperC harger/BulletProof_One_Shots $storage/V6_SuperCharger echo " . exit fi \$0 & echo -n " Press The Enter Key..

then echo $line echo "" $sleep echo " The *97BulletProof_Apps B oot Script loads...COMPLETE information with.." echo "" $sleep echo " ..." echo "" $sleep echo " ..\"busybox ps | grep 1Shot\"" echo "" fi bp1info=shown." echo "" $sleep echo " /data/V6_SuperCharger/Bul letProof_Apps_HitList.... ..\"cat /proc/*/cmdline | grep 1Shot\"!" echo "" $sleep echo " The outpu t should look like this:" echo "" $sleep echo " to/1Shot-$bpappname." echo " =======" $sleep echo " With Script Manager.. esac fi if [ ! "$bpainfo" ]...." echo "" $sleep echo $line echo " Tip: Manually trim or add apps to this list!" echo $line echo "" $sleep echo " If it DOESN'T run automat ically." echo "" $sleep 1Shot/path/ ." echo "" $sleep echo " .sh" echo " $bpappname_is_In_Effect!" echo " 1Shot" echo "" echo $line echo "" $sleep echo " Easier: S imilar results can be had with..make a \"Quick Widg et\" for....

" echo "" $sleep echo " . \ "/data/97*\" and enter!" echo "" $sleep echo " T!" echo "" $sleep echo $line echo " NOTE: DO NOT put it on a timed schedule!" echo $line echo "" $sleep echo " Just launch it.." ....... then echo $line echo "" $sleep echo " You are already BulletPro ofing.the script will relau nch then kill itself!" echo "" $sleep echo " You can then close the ap p and...the BulletProof Apps script keeps running!" echo "" echo $line echo "" $sleep echo " Also..... wait 30 seconds and.sh" echo "" $sleep echo $line echo " Read its notes and \"Fine Tune\" App Priorities!" bpainfo=shown fi if [ "$bpapplist" ] && [ ! "$showedbpapp list" ]. for LESS overhead. in the /data/V6_Sup erCharger folder.. use Terminal Emulator!" echo "" $sleep echo " Type: \"su\" and enter......" echo "" $sleep echo " ..find BulletPro THAT'S I ." echo "" $sleep echo " of_Apps_Fine_Tuner.echo " f_Apps Boot Script..The *97BulletProo echo "" $sleep echo " OR." ..

then cat > /data/V6_S uperCharger/BulletProof_Apps_Fine_Tuner. # If you want to share it or make a thread about it. trial. # # Use this file to "Fine Tune" App Priorities to your liking! # # The possible values of oom_adj range from -17 to 15. zeppelinrox. more likely the associated process is to be killed by OO M-killer. just provide a link to the main thread. redistribu tion. or code snippets from here. any k ey for No: " read bpabs echo "" echo $line case $bpabs in y|Y)echo "" $sleep echo $bpappname >> /data /V6_SuperCharger/BulletProof_Apps_HitList bpapplist=`cat /data/V6_ SuperCharger/BulletProof_Apps_HitList` if [ ! -f "/data/V6_Supe rCharger/BulletProof_Apps_Fine_Tuner. # There are many things may look simple. please give pr oper credit. # The higher the score. # . ideas. done echo "" fi showedbpapplist= echo $line if [ "`echo $bpapplist | grep $bpappname `" ]. # Prohibited: Any modification (excluding personal use).sh" ].^]" else echo "" $sleep echo " Add $bpappname to the Hit List?" echo "" $sleep echo -n " Enter Y for Yes. # Thanks. but actually took a lot of time.sh <<EOF #!/system/bin/sh # # BulletProof Apps Fine Tuner created by -=zeppelinrox=# # V6U9RC12T6 # # When using scripting tricks. or mirrors of my work are NOT PERMITTED. repackaging. # It can be freely incorporated into ROMs .echo "" $sleep for bpapp in $bpapplist. and error to get perfected. echo " $bpappname's on the Hit List! . # Newer kernels use oom_score_adj instead with values from -1000 to 1000.This ensures that users will always be getting the latest versions.provided that proper credit is given WITH a link back to the XDA SuperCharger thread. . do echo " $bpapp". # # This script can be used freely and can even be modified for PERSONAL USE ONLY. then $sleep.

app. # A higher priority process will get a larger chunk of the CPU time than a lower priority process."..read its comments.. # # A niceness (effects CPU Time) of -20 is the highest priority and 19 is the low est priority.name*\` # # Typically. echo \$line.app.name*\`/oom_score_adj (for newer kernels) # renice 19 \`pgrep *com. echo "". echo "". an app's (Secondary Servers) values (when SuperCharged) are: # echo 6 > /proc/\`pgrep *com. # So if something had an ADJ of 6.".. echo " Find this in /data/V6_SuperCharger folder.. echo " ..name*\`/oom_adj # echo 1000 > /proc/\`pgrep *com. echo "".. echo "".".... echo " . id=\${id%%[\\( ]*}. id=\${id#*=}..name*\`/oom_adj # echo 352 > /proc/\`pgrep *com.app. echo " -=BulletProof Apps Fine Tuner Module=-".name*\`/oom_adj # echo -1000 > /proc/\`pgrep *com. echo "". exit 69. echo \$line.. echo \$line. # # In this script. echo "".". echo \$line.app.Please Run as Root and try again. echo ""...94118.name*\` # The renice of -10 should be sufficient to keep it snappy but not interfere wit h other apps that you're using . all apps have priorities applied as follows: # echo -17 > /proc/\`pgrep *com.. # 0 is usually the default niceness for processes and is inherited from its pare nt process. it would now be 6*1000/17=352..name*\` # line=================================================.^] # # At the opposite end.. id=\$(id). then echo " You are NOT running this script as root.name*\`/oom_score_adj (one or the other wi ll apply lol) # renice -10 \`pgrep *com. fi EOF fi . you can change it to: # echo 15 > /proc/\`pgrep *com.name*\`/oom_score_adj (for newer kernels) # renice 0 \`pgrep *com. echo " . which truncates down to 352.app..app.app.. echo \$line.app.app. the conversion to the new system is oldstyle*1000/17 and the decima l is truncated. echo "". if you wanted something to get killed off easily.No SuperUser For You!!". by default. echo " .# Basically. echo "". if [ "\$id" != "0" ] && [ "\$id" != "root" ].and \"Fine Tune\" App Priorities!". echo \$line.

d/*BulletProof*`" else echo " .. echo -n " $bpappname's oom priority is ". in . cat /proc/\$bp/oom_score_adj. cat /proc/\$bp/oom_score. else echo " Can't find $bpappname running. echo -n " $bpappname's oom score is ". # End $bpappname BulletProofing EOF fi chown 0.. then echo " . done 2>/dev/null. echo ""..0 /data/V6_Super Charger/BulletProof_Apps*. do echo " $bpapp"..d" ]..so it can't be BulletProofed :(". echo "". renice -10 \$bp.. do echo -17 > /proc/\$bp/oom_adj. fi. then for bp in \`pgrep $bpappname\`.`ls /system/etc/init.. the n $sleep echo $line echo " Is it wor king? See /data/Ran_BulletProof_Apps!" echo $line echo "" $sleep echo " Or."./data/97BulletProof_Apps.sh <<EOF # Begin $bpappname BulletProofing if [ "\`pgrep $bpappname\`" ]. echo " .... chmod 777 /data/V6_SuperCharger/BulletProof_Apps* cp -fr /data/V6_SuperCha rger/BulletProof_Apps* $storage/V6_SuperCharger echo " Here's Your Updat ed HitList!" echo "" $sleep for bpapp in $bpapplist. cat /proc/\$bp/oom_adj.. done echo "" echo $line echo "" $sleep echo " BulletProof_Apps_ HitList will be loaded via.sh!" fi echo "" if [ ! "$bpsinfo" ].sh`" ]. echo " BulletProofed $bpappname!". echo -1000 > /proc/\$bp/oom_score_adj.if [ ! "`grep $bpappname /data/V6_SuperCharger/BulletProof_Apps_Fine_Tuner." echo "" $sleep if [ -d "/system/etc/ini t.. then cat >> /data/V6_ SuperCharger/BulletProof_Apps_Fine_Tuner.

\"busybox ps | grep Bullet\"" echo "" fi if [ "$allrcpaths" ] && [ ! "$bpsinfo" ]. Bull Bull /pat .Terminal Emulator... get COMPLETE information with. ." echo "" $sleep echo " automatically run this on a schedule!" echo "" $sleep echo " BUT if it doesn't.\"cat /proc/*/cmdline | grep Bullet\"!" echo "" $sleep echo " The outpu t should look like this:" echo "" $sleep echo " h/to/*97BulletProof_Apps*" echo " etProof_Apps_is_In_Effect!" echo " et" echo "" echo $line echo "" $sleep echo " Easier: S imilar results can be had with..the *9 7BulletProof_Apps script runs at boot!" echo "" $sleep echo $line echo " BulletPro .." echo "" $sleep echo " ... just be sure that. then echo $line echo "" $sleep echo " The Bulle tProof Apps Service should........." echo "" $sleep echo " .. you can type.." echo "" $sleep echo " ...." echo "" $sleep echo " \"pstree | grep Bullet\" OR \"pstree | grep sleep\"" echo "" $sleep echo " OR.

.will ..." echo " ==" echo "" $sleep echo " type \"stop bullet_service\" and Enter." echo " ====================" echo "" echo $line echo "" $sleep echo " \"cat /pr oc/*/cmdline | grep Bullet\". fi done echo "" echo $line echo "" $sleep echo " You can s top the service by either....OR ..." echo $line echo "" $sleep for bps in $allr cpaths.." echo "" $sleep echo " ....." echo "" $sleep echo " ." echo " ===================" echo "" $sleep echo " To restar t the BulletProof Apps Service. Run Terminal Emulator.read ing comments in 97BulletProof_Apps..type \"su\" and Enter.. \"busybox ps | grep Bullet\"..." echo "" $sleep echo " .. ...of Apps Service was installed to..$bps!" if [ ! " $bpservice" ]." echo "" $sleep echo " ....t ....sh" echo "" $sleep echo " Or." echo "" $sleep echo " ype \"start bullet_service\" and Enter. do echo " ..... then $sleep.

." echo "" $sleep echo " ckground! . then (busybox nohup /data/97BulletProof_Apps.. then echo $line $sleep echo " BulletPro of Apps Service Entries Installed!" echo $line echo "" $sleep echo " This won' t work on this ROM but. *)echo " Okay.sh on boot!" echo "" fi fi bpsinfo=shown..sh > /dev/null &) elif [ "`busybox --help | grep start-sto .^]" echo $line echo "" $sleep if [ "`busybox --help | grep nohup`" ].. " echo "" $sleep echo " it makes for easy cooking into a ROM!" echo "" $sleep echo " Just read the comments in $initrcpath :)" echo "" if [ "$smrun" ].sh. maybe next ti me!". esac fi fi fi done if [ "$bpapplist" ]. then echo $line echo "" $sleep if [ ! "`busybox ps | grep Bullet | grep Proof`" ].... and it will stay in the ba ... then echo $li ne echo "" $sleep echo "TH IS app can load 97BulletProof_Apps.. then echo $line echo " Now launching /data/97BulletProof _Apps...also show if the service is running!" echo "" elif [ ! "$allrcpaths" ] && [ ! "$bpsinfo" ]. .

." echo "" $sleep echo " ..p-daemon`" ]......" elif [ "`ls /system/etc/init... DIY." echo "" $sleep echo " ." echo "" $sleep echo " .\"nohup\" or \"sta rt-stop-daemon\" applets!" echo "" $sleep echo " So I ain't gonna run it r ight now..if you haven't rebooted..which means more free RAM and no lag!" echo "" ." echo "" $sleep echo " . you don't have either busybox. then busybox start-stop-daemon -S -b -x /data/97BulletProof_Apps.and apps are starved for memory!" echo "" echo $line echo "" $sleep echo " This Engine Flush will give you a Quick Boost!" echo "" $sleep echo " The system will drop all file system caches.d/*BulletProof_Apps*`" ]...and free RAM keeps shrinking....... then echo " Your device may get laggy after a day or two..d/*BulletProof_Apps* fi 2>/dev/null fi fi if [ "$opt" -eq 17 ]." echo "" $sleep echo " ... t hen rm /system/etc/init.. :p" echo "" $sleep echo $line echo " Install a BusyBox build with MORE features!" echo $line echo "" $sleep fi fi echo $line echo " ALL BulletProof* files backed up to $stor age...s h else echo " Oh wait....." echo "" $sleep echo " ." echo "" $sleep echo " It happens when system caches keep growing.or merely several hours...

Nice article which also d iscusses the "drop system cache" function! # See http://goo.^]" echo "" $sleep echo " The script will relaunch and kill itself.. or code snippets from here." echo "" $sleep echo $line echo " -=Engine Flush-O-Matic=....Memory and SuperCharging Overview.and choose how often it runs .... ideas. # Thanks. but actually took a lot of time..!" echo $line echo "" $sleep echo " .gl/krtf9 .$sleep echo " . "Why 'Free RAM' Is NOT Wasted RAM!" # # Credit imoseyon for making the drop caches command more well known :) .provided that proper credit is given WITH a link back to the XDA SuperCharger thread.. # If you want to share it or make a thread about it. please give pr oper credit.and the new instance waits to flush again!" echo "" $sleep echo " This can all be configured within the script!" echo "" echo $line echo "" $sleep cat > /data/V6_SuperCharger/!FastEngineFlush. # # This script can be used freely and can even be modified for PERSONAL USE ONLY.Linux Memory Consumption . # .This ensures that users will always be getting the latest versions. or. # Prohibited: Any modification (excluding personal use). # It can be freely incorporated into ROMs . or mirrors of my work are NOT PERMITTED.gl/hFdNO .so no need to reboot!" echo "" $sleep echo $line echo " NOTE: DO NOT put it on a timed schedule!" echo $line echo "" $sleep echo " It's better to just enable.. trial. just provide a link to the main thread.. # # See http://goo.and -=Engine Flush-O-Matic=# # V6U9RC12T6 # # When using scripting tricks. repackaging." echo "" $sleep echo " .sh <<EOF #!/system/bin/sh # # 2 in 1 Engine Flush Script created by -=zeppelinrox=# The 2 Modes are: -=Fast Engine Flush=. redistribu tion. # There are many things may look simple. zeppelinrox. and error to get perfected.

# # Usage: 1. ("flush" is ind entical to !FastEngineFlush. "Engine_Flush-O-Matic_is_In_Effect!" (sleep message) # c. delete the # at the beginning of the following 2 lines.Sure-Fire method . "Engine Flush-O-Matic" mode is disabled.droidforums. "flush" (created by your query so this doesn't mean anything) # 4. "/data/V6_SuperCharger/!FastEngineFlush.net/forum/liberty-rom-d2/122733-tutorial-sysctl-you -guide-better-preformance-battery-life.for usage option 2 (with Script Manager) # 3. and "Engine Flush-O-Matic" conti nues in the background! # # To verify that it's running. # So let it run ONCE. changeoptions= if [ "\`busybox ps -w\`" ].^] # The output should be 3 items: # a.sh" OR "/system/xbin/flush" (depending on which script you ran) # b. then rm /data/FOMtemp \$intervalsecs | grep "Engine_Flush-O-Matic_is_In_Effect!" fi clear echo "" echo \$line echo " \$( date +"%m-%d-%Y %H:%M:%S" ): Flushing Engine with \$0!" | tee /data/R .125" FOMactive=.sh but easier to type :p) # 2. fi intervalsecs="sleep \$((\$flushOmaticHours*60*60))" animspeed="busybox sleep 0. Script Manager: launch it once like any other script OR with a widge t (DO NOT PUT IT ON A SCHEDULE!) # # Important! Whether you run this with Terminal or Script Manager or widget. "pstree | grep -i flus" . # set -x # exec > /data/Log_FastEngineFlush. # # For debugging. "busybox ps | grep -i flus" would give similar results as 3. make the line read "flushO maticHours=4".for usage option 1 (with Terminal) # 2. "flush" and enter. # Valid values are from 1 to 24 (hours). Type in Terminal: "su" and enter. "cat /proc/*/cmdline | grep -i flush" . close the app. and che ck /data/Log_FastEngineFlush. or if the value is invalid or missing. fi 2>/dev/null if [ -f "/data/FOMtemp" ]. the script relaunches and kills itself after the first run.log 2>&1 # mount -o remount. then w=" -w".rw /data 2>/dev/null line================================================= cd "\${0%/*}" 2>/dev/null # To set the next line manually. # Example: If you want it to run every 4 hours. "pstree | grep sleep" . change the "flushOmaticHours" var iable to the number of hours you want.rw /data 2>/dev/null busybox mount -o remount. then flushOmaticHours=0. just run the script again! # OR you can type in Terminal: # 1.html # Credit dorimanx (Cool XDA dev!) for the neat idea to show before and after sta ts :D # # Note: To enable "Engine Flush-O-Matic" mode. see comments at the top for instuctions! flushOmaticHours=$flushOmaticHours if [ ! "\$flushOmaticHours" ] || [ "\`echo \$flushOmaticHours | grep "[^0-9]"\`" ] || [ "\$flushOmaticHours" -gt 24 ].log file to see what may have fubarred.# See http://www. # If 0.

\$animspeed clear._(".echo " || ________ -( (-".echo ""..echo \$line.echo "".echo \$line.echo ""._(".\$anims peed clear.echo " || ________ -( (-".echo \$line.log else flushmode=" -=Fast Engine Flush=.echo "".echo "".echo "".echo " |_(--------) '-'"._(".echo "".echo "".echo "\$flushmode".sleep 1.echo "".echo \$line.echo "".\$animspeed clear.\$animspeed clear.echo " | |".\$animspee d clear.echo "".echo ""._(". then clear.echo "".echo "".echo \$line.echo \$line.echo "\$flushmode".echo "".echo "".echo "".\$animspeed clear.echo "\$flushmode".echo "".e .echo "".echo " )_.echo " |_(--------) '-'".echo "".echo "".echo "".echo "".echo "".echo \$ line.echo "\$flushmode".by -=zeppelinrox=-" fi if [ "\`busybox ps\$w | grep "{.echo \$line.echo "".echo " || ________ -( (-".echo "".echo "".echo "".echo "".echo " |___| __".echo "".echo \$line.echo "\$flushmode".echo " | |".echo "".echo "".echo "".ec ho "".echo " | D".echo "".echo "".echo " | |".echo "".echo "".echo "".echo "".echo "".*\${0##*/}" | grep -v bin\`" ].echo " ".echo \$line.echo "".\$a nimspeed clear.echo "".echo "".echo "".echo "".ech o "".echo "".echo " | |".echo "".\$a nimspeed clear.echo "".echo "". then flushmode=" -=Engine Flush-O-Matic=.echo "\$flushmode".echo "".echo "".echo ""._(".echo "".echo " ".echo " )_.log echo " So this should update every \$flushOmaticHours hours!" >> /data/R an_EngineFlush-O-Matic.echo \$line.echo \$line.echo "".echo " \ /".echo "".echo " )_..echo " "..echo "".echo \$l ine.echo "".by -=zeppelinrox=-" echo " Engine Flush-O-Matic is enabled!" >> /data/Ran_EngineFlush-O-Mati c.echo "".echo " \ /".echo " |_(--------) '-'".echo "".echo "".echo "".echo " |___| __".echo " |_(--------) '-'".\$animspeed clear.echo "".echo "".echo "".\$animspeed clear.echo "".echo "".echo "".echo "".log echo \$line echo "" sleep 2 if [ "\$flushOmaticHours" -ne 0 ].echo "".echo "".echo \$line.echo "".echo ""._(".echo \$line.echo \$line.echo "".echo " \ /". echo \$line.echo "".echo "".echo " )_.echo \$line.echo "".echo \$line.echo "".echo \$line.echo "".echo "".echo " )_.echo "".echo "".echo "".echo " | |".echo "".echo "\$flushmode".\$animspeed clear.ec ho " \ /".echo "".echo "".echo " |_(--------) '-'".ech o "".echo "".echo " |___| __".echo "".echo "\$flushmode".echo "".echo "".echo \$line.echo "".echo \$line.echo "".echo \$line.echo ""..echo "".echo " )_._(".an_EngineFlush-O-Matic.echo \$line.\$animspeed clear.echo " || ______ __ -( (-".e cho "".echo "".echo "".echo \$line.echo \$line.echo "".echo "".echo " )_.echo "".echo " || ________ -( (-".echo "".echo \$line.echo \$line.echo "".echo " |_(--------) '-'".echo "".echo "\$flushmode".echo "".echo "".\$animspeed clear.echo " \ /".echo "".*}.echo \$line.echo "" .echo " |___| __".echo " \ /".echo "\$flushmode".echo "".echo "".echo "".echo "".echo \$line.echo ""..echo \$line.echo "".echo "".echo "".echo \$line.echo \$line..echo "" .echo "".echo "".echo "".echo \$line..echo "".

echo "".echo "".echo "".echo "".echo "\$flushmode".echo \$line.echo \$line.echo ""..\$animspeed clear.echo "".echo "".echo "".echo "".echo \$line.echo " )_.echo " || ________ -( (-".echo " \ /".echo "".echo "".\$animspeed clear.echo "\$flushmode".echo "".\$animspee d clear.echo "".echo \$line.echo "".\$animspeed.echo "".echo "".ech o "".echo \$line.echo "\$flushmode".echo " |___| __".echo "".echo "".echo ""..\$anims peed clear._(".echo "".echo "".echo "".echo "".echo \$line.echo \$line.echo " zoom.\$a nimspeed clear.echo "".echo "".echo \$line.echo "".echo "" .echo \$line.echo "" .echo ""._(".echo " | D".echo \$line.echo "".echo "".echo "".echo "".\$animspeed clear.echo "\$flushmode".echo " )_.\$animspeed clear.echo "".echo ""..echo " || ________ -( (-".echo \$line.echo \$line.echo "".echo "".echo "\$flushmode".echo \$line.echo \$line.echo \$line...echo "".echo "".echo \$line.echo "".echo \$l ine.echo " ".echo " || ________ -( (-".\$animspeed clear.echo " || ______ __ -( (-".echo "".echo "".echo "".echo "".echo ""."._(".echo "".echo "".echo "".\$animspeed clear.echo "\$flushmode".echo " zoom.echo \$line.echo " |_(--------) '-'"..echo \$line.echo "".echo "".echo " )_._("._(".echo \$line.e cho "".echo "".echo "".echo "".echo "".echo \$line.echo "".echo "".\$animspeed clear.echo \$line.echo " | |".echo \$line.echo "".echo "".echo ""..ech o "".echo "\$flushmode".echo " |_(--------) '-'".echo " \ /".echo "". echo \$line.echo "".echo "\$flushmode".echo " )_.echo \$line.\$a nimspeed clear.echo " )_.echo "".echo \$line.echo " | |".echo "".echo " | |".echo \$line.echo \$line._(".echo \$line.\$a nimspeed clear.echo "".echo " zoom.echo "".echo " |___| __".echo "".echo \$line.echo \$line.echo "".echo "".echo "".echo " |_(--------) '-'"._(".echo "".ech o "".echo " )_.echo \$line.echo "".echo ""._(".echo "\$flushmode"._("..echo " |___| __".echo "".echo " \ /".echo "".echo "".\$animspeed clear.echo "\$flushmode".echo "".\$animspeed .cho " \ /".echo " \ /".echo ""..echo "".echo ""..echo "".echo \$line.echo "".echo "".echo \$ line.echo " | |".echo ""..echo "".echo "".echo "".echo \$line.echo " )_.echo " ___".echo " |_(--------) '-'".echo \$line.".echo "".echo "".echo "".echo "".echo "\$flushmode" .echo "".echo "".echo \$line.echo " |___| __".echo \$line.\$animspeed clear.echo " )_.echo "" .echo "".echo ""...echo " |_(--------) '-'".echo " )_.echo "\$ flushmode".echo " || ________ -( (-"..echo \$line.echo "\$flushmode".echo " |_(--------) '-'".echo "".echo " | |".echo "".echo \$line.echo "".echo " | D".echo ""..echo " | |".echo \$lin e.echo " )_.echo " |_(--------) '-'".echo "\$flushmode".echo "".echo \$line.echo "".echo " \ /".echo "\$flushmode".echo ""..echo "\$flushmode".echo "".e cho " \ /".echo "".echo "".".echo "".\$animspeed clear.echo "".echo "".echo " | |".echo "".e cho "".ec ho " \ /".echo \$line.echo "".echo " \ /".echo "".echo "".echo "".echo " |___| __".echo " || ________ -( (-".echo "".echo "".echo ""._(".echo "".

echo ""..echo "".echo "".echo \$line..echo \$line.echo "".echo "" .echo "\$flushmode"..echo "".echo \$line. zOOM." echo "" echo \$line echo "" sleep 3 exit 69 elif [ "\`busybox ps | grep Engine_ | grep Matic_\`" ]..echo "".e cho \$line.echo "".echo "\$flushmode".".Please Run as Root and try again.echo "".echo ""... you can access Options too.echo "".5 clear.echo "".\$animspeed clear.echo "".echo "".echo "".echo "".echo ""...echo "".echo "".echo "".echo "".echo "" . zoom..echo \$line .echo ""..echo "".echo ""....busybox sleep 0..echo "".". zOOM.echo ""..echo \$line.echo "".echo "" ...echo "".".echo "" .echo "".echo "".echo "\$flushmode"..echo "".echo " zoom.echo "\$flushmode".echo "".echo \$line.echo "".. id=\${id%%[\\( ]*} if [ "\$id" != "0" ] && [ "\$id" != "root" ].echo "".echo ""..echo \$line.".".echo "" .echo "".echo "".echo "".echo "".echo "".echo \$li ne. zoom.echo "\$fl ushmode".echo ""..".echo ""..echo " zoom.echo "".echo "".echo "".echo "". then echo " -=Engine Flush-O-Matic=.\$animspeed clear.echo "\$flushmode"...echo ""..\$animspeed clear." echo "" sleep 1 echo " .echo "\$flushmode".echo \$line.echo "".is already in memory!" echo "" sleep 1 echo " Do you want to flush now anyway?" echo "" sleep 1 echo " If you do.busybox sleep 0.echo "".echo "".echo "".echo "".echo "".echo "".No SuperUser For You!!" echo \$line echo "" sleep 3 echo " .echo "".echo "".echo \$line.echo "".echo " zOOM.echo ""..echo "".echo \$line.echo "".echo "\$flushmode"...echo "".echo ""...echo "".echo ""..."..echo "".".echo "".busybox sleep 1 clear.echo ""..echo \$line ..".echo " zoom." echo "" sleep 3 echo \$line echo " .echo "".echo "\$flushmode".but you can't enter another \"Flush Cycle\".echo \$line ..echo "".echo "".echo " zOOM..echo "".echo \$line .echo "".echo "".echo "".echo "".echo "". echo "".." echo "" sleep 1 .echo "".echo "\$flushmode".echo "".echo " zoom.\$animspeed clear.echo "".. zoom.echo "". zoom..busybox sleep 1 fi id=\$(id). zOOM.echo "".echo " zoom. zoom.\$animspeed clear. then sleep 2 echo " You are NOT running this script as root.echo " zoom.clear.".echo " zOOM.echo "".echo \$line.. id=\${id#*=}.echo "".ech o ""..echo ""..echo "".echo ""..echo \$line ..echo "".echo "".echo \$line.echo "".echo "".echo " zoom..echo \$line .echo "".echo "".echo "" .busybox sleep 0..5 clear.echo \$line.5 clear..echo "".

. ". then echo "".Cached Apps \$ramca ched" echo \$line echo "" sleep 1 echo " . fi echo "" echo \$line case \$FOMactive in y|Y)echo " Alrighty Then!" echo \$line echo "" sleep 1..OR.busybox sysctl -w vm. echo \$line echo -n " Engine Flush In Progress..." echo \$line echo "" sleep 1 echo " Total: \$ram MB Used: \$ramused MB True Free: \$ramfree MB" echo "" sleep 1 echo " Reported Free by most tools: \$ramreportedfree MB Free RAM!" echo "" sleep 1 echo \$line echo " True Free \$ramfree MB = \"Free\" \$ramreportedfree ... True Free RAM \$ramfree" echo " Cached Apps + \$ramcached" echo " ========" echo " Reported \"Free\" RAM = \$ramreportedfree MB" echo "" sleep 1 busybox sync..echo -n " Enter Y for Yes.ramrep ortedfree=\$((\$ramfree + \$ramcached)) echo " Note that \"Used RAM\" INCLUDES Cached Apps!!" echo "" sleep 1 echo \$line echo " RAM Stats BEFORE Engine Flush.drop_caches=3 echo \$line echo "" sleep 3 busybox sysctl -w vm.drop_caches=1 1>/dev/null ramused=\$((\`free | awk '{ print \$3 }' | sed -n 2p\`/1024)) ramkbytesfree=\`free | awk '{ print \$4 }' | sed -n 2p\` . esac fi ram=\$((\`free | awk '{ print \$2 }' | sed -n 2p\`/1024)) ramused=\$((\`free | awk '{ print \$3 }' | sed -n 2p\`/1024)) ramkbytesfree=\`free | awk '{ print \$4 }' | sed -n 2p\` ramkbytescached=\`cat /proc/meminfo | grep Cached | awk '{print \$2}' | sed -n 1 p\` ramfree=\$((\$ramkbytesfree/1024))..ramcached=\$((\$ramkbytescached/1024)).. any key for No: " stty -icanon min 0 time 200 read FOMactive stty sane if [ ! "\$FOMactive" ]. *)echo " No Options For You!" echo \$line echo "" exit 69..

.....Enjoy Your Quick Boost . True Free RAM \$ramfree" echo " Cached Apps + \$ramcached" echo " ========" echo " Reported \"Free\" RAM = \$ramreportedfree MB" echo "" sleep 1 echo \$line echo " ..ramkbytescached=\`cat /proc/meminfo | grep Cached | awk '{print \$2}' | sed -n 1 p\` ramfree=\$((\$ramkbytesfree/1024)).^]" echo \$line echo "" sleep 1 if [ "\$flushOmaticHours" -ne 0 ]. then echo " =====================================" echo " ) Engine Flush-O-Matic Completed! (" echo " =====================================" else echo " ==================================" echo " ) Fast Engine Flush Completed! (" echo " ==================================" fi echo "" sleep 1 echo " If desired.." echo "" sleep 1 echo \$line echo " -=Engine Flush-O-Matic=-" echo \$line echo "" sleep 1 echo " Current Status.Cached Apps \$ramca ched" echo \$line echo "" sleep 1 echo " ..RAM Stats AFTER Engine Flush" echo \$line echo "" sleep 1 echo " Total: \$ram MB Used: \$ramused MB True Free: \$ramfree MB" echo "" sleep 1 echo " Reported Free by most tools: \$ramreportedfree MB Free RAM!" echo "" sleep 1 echo \$line echo " True Free \$ramfree MB = \"Free\" \$ramreportedfree . then echo " Engine Flush-O-Matic is ON @ \$flushOmaticHours hour intervals!" echo " ==============================================" else echo " Engine Flush-O-Matic is currently OFF!" echo " ======================================" .ramcached=\$((\$ramkbytescached/1024))...." echo "" sleep 1 if [ "\$flushOmaticHours" -ne 0 ].ramrep ortedfree=\$((\$ramfree + \$ramcached)) echo \$line echo " ..OR. you can change options for.

or just change how often it runs ." echo "" sleep 1 echo \$line echo " -=Engine Flush-O-Matic=.d/*SuperCharger*\` " ].^]" echo "" sleep 1 if [ "\`ls /system/etc/init. heh.13 still needs to be run!" echo \$line echo "" sleep 1 . any key for No: " stty -icanon min 0 time 200 read changeoptions stty sane if [ ! "\$changeoptions" ].ENABLED!!" echo \$line echo "" sleep 1 if [ ! "\`ls /system/etc/init.. fi echo "" echo \$line case \$changeoptions in y|Y)changedopt=yes mount -o remount.. then echo " Note that when it's enabled.on boot is AUTOMATIC!" echo \$line echo "" sleep 1 echo " Since it is loaded via *99SuperCharger...d/*SuperCharger*\`" ]. do echo \$line echo "" sleep 1 echo -n " Enter E to Enable." echo "" sleep 1 fi 2>/dev/null echo " Change Options? You have 20 seconds to decide!" echo "" sleep 1 echo -n " Enter Y for Yes.rw /system 2>/dev/null busybox mount -o remount.\$3}' | sed -n 1p) 2>/dev/null echo " -=Engine Flush-O-Matic=. then echo ""..rw \$(busybox mount | grep system | awk '{pri nt \$1.fi echo "" sleep 1 echo " You can turn it on or off... then echo \$line echo " An Option from 2 .rw /system 2>/dev/null busybox mount -o remount." echo "" sleep 1 echo " . D to Disable: " read able echo "" echo \$line case \$able in e|E)echo " -=Engine Flush-O-Matic=..Options" while :.

. esac done sed -i 's/^flushOmaticHours=. *)echo " Invalid entry.\$3}' | sed -n 1p) 2>/dev/null. then sed -i 's/^flushOmaticHours =.. *)echo " Invalid entry.fi 2>/dev/null echo " How often do you want it to flush?" while :..running this script again :o)" echo "" echo \$line echo \$line. fi 2>/dev/null mount -o remount. Please try again :p" esac done." echo "" sleep 1 echo " .*/flushOmaticHours='\$flushOmaticHours'/' /system/xbin/flush.. then exit 0 elif [ "\$FOMactive" ] || [ "\`busybox ps | grep Engine_ | grep Matic_\`" ]. then sed -i 's/^flushOmaticHours=.. the n echo \$line echo " -=Engine Flush-O-Matic=.*/flushOmaticHours='\$flushOmaticHours'/' \$0 if [ "\$0" != "/data/V6_SuperCharger/!FastEngineFlush...is already in memory!" echo \$line echo "" exit 69 elif [ "\$changedopt" ].sh. d|D)flushOmaticHours=0 echo " -=Engine Flush-O-Matic=.DISABLED!! " break....ro /system 2>/dev/null busybox mount -o remount. Please try again :p"..ro /system 2>/dev/null busybox mount -o remount.. fi 2>/dev/null if [ "\$0" != "/system/xbin/flush" ].*/flushOmaticHours='\$flushOmaticHours'/' /data/V6_Supe rCharger/!FastEngineFlush. do echo "" sleep 1 echo -n " Enter a value from 1 to 24 (ho urs): " read flushOmaticHours echo "" echo \$line case \$flushOmaticHours in [1-9]|1[0-9]|2[0-4])echo " Engine Flus h-O-Matic Set To Run Every \$flushOmaticHours Hours!" break 2.ro \$(busybox mount | grep system | awk '{pri nt \$1... then echo "" echo " You can change options by. esac echo \$line echo "" sleep 1 if [ "\$flushOmaticHours" -eq 0 ]. *)echo " No Change For You!".sh" ]. ..

" echo \$line echo "" sleep 1 fi echo \$line echo " Here We Go Again.OR run this script again..." echo " OR /system/xbin/flush (either script name)" echo " Engine_Flush-O-Matic_is_In_Effect!" echo " flush" echo "" sleep 1 echo " Easier: Similar results can be had with.sh.echo "" sleep 1 echo " After closing this app you may wonder...I'll tell ya LOL" echo "" sleep 1 echo \$line echo " Also READ THE COMMENTS inside this script!" echo \$line echo "" sleep 1 echo \$line echo " Now executing -=Engine Flush-O-Matic=-.....\"busybox ps | grep -i flus\"" echo "" sleep 1 echo " . in \$flushOmaticHours hours LOL" echo \$line echo "" sleep 1 echo \$line echo " Oh Hey! You can close this App!" . in Terminal Emulator.working?" echo " ====================================" echo "" sleep 1 echo " Check out /data/Ran_EngineFlush-O-Matic. get COMPLETE information with." echo "" sleep 1 echo " \"pstree | grep -i flus\" OR \"pstree|grep sleep\"" echo "" sleep 1 echo " OR.....\"cat /proc/*/cmdline | grep -i flush\"!" echo "" sleep 1 echo " The output should look like this:" echo "" sleep 1 echo " /data/V6_SuperCharger/!FastEngineFlush." echo "" sleep 1 echo " Is -=Engine Flush-O-Matic=." echo "" sleep 1 echo " ............log!" echo "" sleep 1 echo " Or.... you can type." echo "" sleep 1 echo " .

.. busybox s tart-stop-daemon -S -b -x \$0 else echo "cookie!" > /data/FOMtemp.... just stay full of cache then!" echo $line echo "" $sleep.. then echo "cookie!" > /data/FOMtemp. . then sh /data/V6_SuperCharger/!FastEngineFlush.echo \$line echo "" sleep 1 if [ "\`busybox --help | grep nohup\`" ] && [ ! "\`busybox ps\$w | grep "/\${0## */}" | grep {\`" ]. :p" echo "" $sleep echo $line echo " Install a BusyBox build with MORE featu res!" echo $line echo "" $sleep .sh flushOmaticHours=`grep "^flushOmaticHours=" /dat a/V6_SuperCharger/!FastEngineFlush..sh $storage/V6_Sup erCharger/flush cp -fr /data/V6_SuperCharger/!FastEngineFlush.sh | sed 's/flushOmaticHours=//'` else echo " Oh wait.. \$0 & exit 0 fi EOF chown 0..sh cp -fr /data/V6_SuperCharger/!FastEngineFlush. *)echo " Nice! Gonna dump some cache.sh /system/xbin/fl ush echo " Continue and Flush it all away?" echo "" $sleep echo -n " Enter N for No. any key for Yes: " read flush echo "" echo $line case $flush in n|N)echo " Okay.. you don't have either busybox.. flush too!" echo $line echo "" sleep 2 if [ "`busybox --help | grep nohup`" ] || [ "`busybox --help | grep start-stop-daemon`" ]." echo "" $sleep echo " .sh $storage/V6_Sup erCharger cp -fr /data/V6_SuperCharger/!FastEngineFlush. (busybox nohup \$0 > /d ev/null &) elif [ "\`busybox --help | grep start-stop-daemon\`" ] && [ ! "\`busybox ps\$w | grep "/\${0##*/}" | grep {\`" ].\"nohup\" or \"start-stop-daemon\" applets!" echo "" $sleep echo " So I ain't gonna run it right now.. then echo "cookie!" > /data/FOMtemp.sh. .0 /data/V6_SuperCharger/!FastEngineFlush. chmod 777 / data/V6_SuperCharger/!FastEngineFlush.. DIY.

" echo " =====" echo "" $sleep echo " THAT'S IT!" else echo " WARNING: ERROR copying file to /system/xbin!" echo "" $sleep echo " Got enough free space?" echo "" $sleep echo " System Partition has `busybox df -h /system | awk '{print $4... esac echo " For Fast Flushing." echo " ==" echo "" $sleep echo " .type \"su\" and Enter.fi." echo "" echo $line echo "" $sleep if [ ! "`diff /data/V6_SuperCharger/!FastEngineFlush...type \"flush\" and Enter.was created!" echo "" $sleep echo " With Script Manager.sh /system/ xbin/flush`" ]....." echo "" $sleep echo " ." echo "" $sleep if [ "$flushOmaticHours" -ne 0 ]..you can make a \"Quick Widget\" for it.." echo "" $sleep echo " .../data/V6_SuperCharger/!FastEngineFlush." echo "" $sleep echo " Run Terminal Emulator."Free ("$5" Used)"}' | tail -n 1`" fi echo "" echo $line echo "" $sleep echo " Current Status.." echo "" $sleep echo " .." echo "" $sleep echo " ...sh....." echo "" $sleep echo " To use this script with Terminal Emulator.... then echo " There is another copy in /system/xbin...... then echo " Engine Flush-O-Matic is ON @ $flushOmaticHours ho ur intervals!" echo " ==============================================" .

then cat > /data/V6_SuperCharger/!Detailing. # Resulting in faster database access and less ram usage for smoother performanc e. # If you want to share it or make a thread about it.provided that proper credit is given WITH a link back to the XDA SuperCharger thread. and error to get perfected. but actually took a lot of time. # # This script can be used freely and can even be modified for PERSONAL USE ONLY. please give pr oper credit. # There are many things may look simple. # Prohibited: Any modification (excluding personal use). zeppelinrox. repackaging. just provide a link to the main thread. it defaults to running every 3rd boo . redistribu tion. # It can be freely incorporated into ROMs . or mirrors of my work are NOT PERMITTED. it won't run on boot.. trial..sh <<EOF #!/system/bin/sh # # Detailing Script (SQLite VACUUM & REINDEX to optimize databases) created by -= zeppelinrox=# # V6U9RC12T6 # # When using scripting tricks. then echo " You have many SQLite databases that become. # If 0.fragmented and unoptimized over a few days." echo "" $sleep echo " . # Thanks. # . debloat) ALL sqlite3 databases found on y our device. # If the value is invalid or missing..This ensures that users will always be getting the latest versions. or code snippets from here." echo "" $sleep echo " .else echo " Engine Flush-O-Matic is currently OFF!" echo " ======================================" fi echo "" $sleep echo $line echo " And Hey! READ THE COMMENTS inside the script!" fi if [ "$opt" -eq 18 ]. reindex. ideas. # # This will optimize (defrag.... # Valid values are from 1 to 9 (boots)." echo "" $sleep echo " This tool will optimize them with..SQLite VACUUM and REINDEX!" echo "" echo $line echo "" $sleep if [ "`which sqlite3`" ]. # # Props: avgjoemomma (from XDA) for the added reindex bit :) # # Note: You can change the "detailinterval" variable to any valid value that you want..

# Example: If you want it to run every 4th boot. then detailinterval=3. make the line read "detai linterval=4". id=\${id%%[\\( ]*} if [ "\$id" != "0" ] && [ "\$id" != "root" ].log 2>&1 # mount -o remount. then exit 69. and che ck /data/Log_Detailing.rw /data 2>/dev/null line================================================= cd "\${0%/*}" 2>/dev/null echo "" echo \$line echo " -=Detailing=.t.. fi if [ "\`busybox ps | grep Super | grep system/etc\`" ]. delete the # at the beginning of the following 2 lines. then sleep 1 echo " You are NOT running this script as root. # set -x # exec > /data/Log_Detailing." >> \$counte rfile echo " It exited peacefully on \`date\`" >> \$counterfile exit 69 fi else echo 1 > \$counterfile echo " SQLite databases are optimized at \$detailinterval boot intervals !" >> \$counterfile echo "" >> \$counterfile echo " Detailing was run manually so the counter has been reset.script by -=zeppelinrox=-" echo \$line echo "" sleep 2 counterfile=/data/V6_SuperCharger/!Detailing_Counter counter1=\`cat \$counterfile | head -n 1\` 2>/dev/null # To set the next line manually......" >> \ $counterfile echo " It was executed on \`date\`" >> \$counterfile fi id=\$(id).. fi if [ ! "\$counter1" ] || [ "\$counter1" -ge "\$detailinterval" ]. # clear # # For debugging.." echo "" ." >> \$counterfil e echo " It was executed on \`date\`" >> \$counterfile else counter2=\$((\$counter1+1)) sed -i '1s/'\$counter1'/'\$counter2'/' \$counterfile echo "" >> \$counterfile echo " Detailing last ran \$counter2 reboots ago. see comments at the top for instuctions! detailinterval=$detailinterval if [ ! "\$detailinterval" ] || [ "\`echo \$detailinterval | grep "[^0-9]"\`" ] | | [ "\$detailinterval" -gt 9 ].log file to see what may have fubarred.rw /data 2>/dev/null busybox mount -o remount. id=\${id#*=}. then c ounter2=1 echo "\$counter2" > \$counterfile echo " SQLite databases are optimized at \$detailinterval boot i ntervals!" >> \$counterfile echo "" >> \$counterfile echo " Detailing ran on the most recent boot. then if [ "\$detailinterval" -eq 0 ].

.." echo "" sleep 3 echo " ...No Vacuuming For You!!" echo \$line echo "" sleep 3 echo " Load the XDA SuperCharger thread...." echo \$line echo "" sleep 1 LOG_FILE=/data/Ran_Detailing.. sqlite3 binary was NOT found..Please Run as Root and try again...as they won't effect SQLite Optimization!" echo "" sleep 1 echo \$line echo " This may take awhile....sleep 3 echo \$line echo " ..." echo "" echo \$line echo "" sleep 3 exit 69 elif [ ! "\`which sqlite3\`" ]..log START=\`busybox date +%s\` ...." echo "" sleep 3 echo \$line echo " . then sleep 1 echo " Doh.. please wait." echo " ======" echo "" sleep 1 echo " \"malformed database\" OR \"collation sequence\"!" echo " ================== ==================" echo "" sleep 1 echo " .action.VIEW -n com...BrowserActivity -d file://$storage/!SuperC harger..android.browser/.and install The SuperCharger Starter Kit!" echo "" echo \$line echo "" sleep 3 su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start -a android.No SuperUser For You!!" echo \$line echo "" sleep 3 echo " .html" echo "" echo \$line echo "" sleep 3 exit 69 fi echo " Commencing SQLite VACUUM & REINDEX!" echo "" sleep 1 echo " Please IGNORE any errors that say.inten t.

.\$PERCENT% (\$PROGRESS of \$TOTAL)" echo "" echo " VACUUMING: \$i" | tee -a \$LOG_FILE sqlite3 \$i 'VACUUM. echo " REINDEXING: \$i" | tee -a \$LOG_FILE sqlite3 \$i 'REINDEX.'.\$START\` HOURS=\`busybox expr \$RUNTIME / 3600\` REMAINDER=\`busybox expr \$RUNTIME % 3600\` MINS=\`busybox expr \$REMAINDER / 60\` SECS=\`busybox expr \$REMAINDER % 60\` RUNTIME=\`busybox printf "%02d:%02d:%02d\n" "\$HOURS" "\$MINS" "\$SECS"\` echo "" echo \$line echo "" | tee -a \$LOG_FILE sleep 1 echo " Done Optimizing \$TOTAL Databases for ALL Apps..by -=zeppelinrox=-" echo -n " >" echo -e "\r \$PROGRESS_BAR>" echo "" echo " Processing DBs .db"\`.Say Hello To Optimized DBs!" echo "" echo \$line echo "" sleep 1 echo " Start Time: \$BEGAN" | tee -a \$LOG_FILE echo " Stop Time: \$ENDED" | tee -a \$LOG_FILE echo "" | tee -a \$LOG_FILE echo " Completion Time: \$RUNTIME" | tee -a \$LOG_FILE echo "" sleep 1 echo " See \$LOG_FILE for more details!" echo "" sleep 1 ." | tee -a \$LOG_FILE echo "" | tee -a \$LOG_FILE sleep 1 echo " . do PROGRESS=\$((\$PROGRESS+1)) PERCENT=\$(( \$PROGRESS * 100 / \$TOTAL )) if [ "\$PERCENT" -eq "\$INCREMENT" ].'. done sync STOP=\`busybox date +%s\` ENDED=\`date\` RUNTIME=\`busybox expr \$STOP . then INCREMENT=\$(( \$INCREMENT + 3 )) PROGRESS_BAR="\$PROGRESS_BAR=" fi clear echo "" echo -n " >" echo -e "\r \$PROGRESS_BAR>" echo " -=Detailing=..db" | wc -l\` INCREMENT=3 PROGRESS=0 PROGRESS_BAR="" echo " Start Detailing: \$BEGAN" > \$LOG_FILE echo "" >> \$LOG_FILE sync for i in \`busybox find /*d* -iname "*..BEGAN=\`date\` TOTAL=\`busybox find /*d* -iname "*.

. then echo "".so if you input 4.sh.. it runs every 4th boot!" echo "" sleep 1 echo \$line echo -n " Current Status: Detailing " if [ "\$detailinterval" -eq 0 ]. ...d/*Super Charger* sed -i '/sleep 90./ a\ sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!Detailing.d" ]." echo "" sleep 1 echo " .rw /system 2>/dev/null busybox mount -o remount.sh 2>/dev/null. any key for No: " stty -icanon min 0 time 200 read changeoptions stty sane if [ ! "\$changeoptions" ]. then sed -i '/!Detailing/d' /system/etc/init..so boot time would be unaffected!" echo "" sleep 1 echo " AND you can specify how often it runs. then echo "DOES NOT Run On Boot!" else echo "Runs Every \$detailinterval Boots!" fi echo \$line echo "" sleep 1 echo " You can also configure this in Driver Options!" echo "" sleep 1 echo \$line echo " Also READ THE COMMENTS inside this script!" echo \$line echo "" sleep 1 echo " Change Options? You have 20 seconds to decide!" echo "" sleep 1 echo -n " Enter Y for Yes..rw \$(busybox mount | grep syst em | awk '{print \$1." echo "" sleep 1 echo " *99SuperCharger would run Detailing. you can change Detailing options..\$3}' | sed -n 1p) 2>/dev/null echo "" sleep 1 if [ "\$bootdetailing" ] && [ "\`ls /system/etc/init.rw /system 2>/dev/null busybox mount -o remount..d/* SuperCharger*\`" ].." echo "" sleep 1 echo " . fi echo "" echo \$line case \$changeoptions in y|Y)mount -o remount.echo echo echo echo if [ " ==========================" " ) Detailing Completed! (" " ==========================" "" -d "/system/etc/init. then sleep 1 echo " If desired..

\ sh /data/V6_SuperCharger/!Detailing.sh & sleep 2;\ sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!Detailing.sh 2>/dev/null; sleep 480;' /system/etc/init.d/*SuperCharger* fi 2>/dev/null echo " Run Detailing on boot?" echo "" sleep 1 echo -n " Enter Y for Yes, any key for No: " read bootdetailing echo "" case \$bootdetailing in y|Y)detailing=1 if [ ! "\`ls /system/etc/init.d/*SuperCharger* \`" ]; then echo \$line echo " An Option from 2 - 13 still needs to be run!" fi 2>/dev/null while :; do echo \$line echo "" sleep 1 echo -n " How often? 1=every boot to 9=e very 9th boot: " read detailinterval echo "" echo \$line case \$detailinterval in [1-9])echo " Detailing Set To Ru n Every \$detailinterval Boots!" break;; *)echo " Invalid entry... Please try again :p";; esac done;; *)detailing=0; detailinterval=0 sed -i '/!Detailing.sh/s/^/# /' /system/etc/in it.d/*SuperCharger* 2>/dev/null echo " Declined Detailing On Boot!"; ; esac sed -i 's/^detailinterval=.*/detailinterval='\$detailint erval'/' \$0 if [ "\$0" != "/data/V6_SuperCharger/!Detailing.sh" ]; t hen sed -i 's/^detailinterval=.*/detailinterval='\$detailinterval'/' /data/V6_Su perCharger/!Detailing.sh; fi 2>/dev/null if [ "\$0" != "/system/xbin/vac" ]; then sed -i 's/^deta ilinterval=.*/detailinterval='\$detailinterval'/' /system/xbin/vac; fi 2>/dev/nu ll if [ -f "/data/V6_SuperCharger/SuperChargerOptions" ]; t hen awk 'BEGIN{OFS=FS=","}{\$10='\$detailing',\$11=' \$detailinterval';print}' /data/V6_SuperCharger/SuperChargerOptions > /data/V6_S uperCharger/SuperChargerOptions.tmp mv /data/V6_SuperCharger/SuperChargerOptions.tmp /data/V6_SuperCharger/SuperChargerOptions fi mount -o remount,ro /system 2>/dev/null busybox mount -o remount,ro /system 2>/dev/null

busybox mount -o remount,ro \$(busybox mount | grep syst em | awk '{print \$1,\$3}' | sed -n 1p) 2>/dev/null;; *)echo " No Change For You!";; esac fi echo \$line echo "" sleep 1 exit 0 EOF chown 0.0 /data/V6_SuperCharger/!Detailing.sh; chmod 777 /data/V6_SuperCharger/!Detailing.sh cp -fr /data/V6_SuperCharger/!Detailing.sh $storage/V6_S uperCharger cp -fr /data/V6_SuperCharger/!Detailing.sh $storage/V6_S uperCharger/vac cp -fr /data/V6_SuperCharger/!Detailing.sh /system/xbin/ vac echo " Optimize SQLite databases now?" echo "" $sleep echo -n " Enter N for No, any key for Yes: " read detail echo "" echo $line case $detail in n|N)echo " SQLite Optimization Declined... meh..." echo $line echo "" $sleep detailingnotrun=yes;; *)echo " Time to clean up after you! ;^] " echo $line echo "" sleep 2 sh /data/V6_SuperCharger/!Detailing.sh detailing=`awk -F , '{print $10}' /data/V6_Sup erCharger/SuperChargerOptions` detailinterval=`awk -F , '{print $11}' /data/V 6_SuperCharger/SuperChargerOptions`;; esac echo " For Diligent Detailing..." echo "" $sleep echo " .../data/V6_SuperCharger/!Detailing.sh..." echo "" $sleep echo " ...was created!" echo "" $sleep echo " With Script Manager..." echo "" $sleep echo " ...you can make a \"Quick Widget\" for it." echo "" echo $line echo "" $sleep if [ ! "`diff /data/V6_SuperCharger/!Detailing.sh /syste

m/xbin/vac`" ]; then echo " There is another copy in /system/xbin..." echo "" $sleep echo " To use this script with Terminal Emulator ..." echo "" $sleep echo " Run Terminal Emulator..." echo "" $sleep echo " ...type \"su\" and Enter..." echo " ==" echo "" $sleep echo " ...type \"vac\" and E nter..." echo " echo "" $sleep echo " else echo " WARNING: ERROR copying file to /system/xb in!" echo "" $sleep echo " Got enough free space?" echo "" $sleep echo " System Partition has `busybox df -h /syst em | awk '{print $4,"Free ("$5" Used)"}' | tail -n 1`" fi echo "" if [ -d "/system/etc/init.d" ] && [ "$detailingnotrun" ] ; then detailingnotrun= echo $line echo "" $sleep echo " Detailing can run automatically on boot!" echo "" $sleep echo " *99SuperCharger would run Detailing.sh. .." echo "" $sleep echo " ...so boot time would be unaffe cted!" echo "" $sleep echo " AND you can specify how often it runs. ;^ ]" echo "" $sleep echo $line echo -n " Current Status: Detailing " if [ "$detailing" -eq 0 ]; then echo "DOES NOT R un On Boot!" else echo "Runs Every $detailinterval Boots!" fi ===" THAT'S IT!"

" echo "" $sleep echo " ..which means less RAM comsumption...." echo "" $sleep echo " . sqlite3 binary was NOT found.." echo "" $sleep echo " ..and a faster device!!" echo "" $sleep echo $line echo " If you get Force Closes.sh <<EOF #!/system/bin/sh # # "ZepAlign" / Wheel Alignment Script (ZipAlign) created by -=zeppelinrox=# # V6U9RC12T6 # # When using scripting tricks.No Vacuuming For You!!" echo $line echo "" $sleep echo " Load the XDA SuperCharger thread. please give pr oper credit.. then cat > /data/V6_SuperCharger/!WheelAlignment.. or code snippets from here... run Fix Emissions too!" echo $line echo "" $sleep if [ "`which zipalign`" ]....better battery life...... ideas.." echo "" $sleep echo " .and install The SuperCharger Starter Kit!" echo "" $sleep echo -n " Press The Enter Key...gl/qM6yR" echo "" fi fi if [ "$opt" -eq 19 ].." echo "" $sleep echo $line echo " . then echo " ZipAlign optimizes all your APKs.. .. " read enter echo "" echo $line echo "" su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start http://goo.echo $line echo "" $sleep echo $line echo " You can configure this in Driver Options! " fi else echo " Doh.

# There are many things may look simple, but actually took a lot of time, trial, and error to get perfected. # # This script can be used freely and can even be modified for PERSONAL USE ONLY. # It can be freely incorporated into ROMs - provided that proper credit is given WITH a link back to the XDA SuperCharger thread. # If you want to share it or make a thread about it, just provide a link to the main thread. # - This ensures that users will always be getting the latest versions. # Prohibited: Any modification (excluding personal use), repackaging, redistribu tion, or mirrors of my work are NOT PERMITTED. # Thanks, zeppelinrox. # # ZipAligns all data and system apks (apps) that have not yet been ZipAligned. # ZipAlign optimizes all your apps, resulting in less RAM comsumption and a fast er device! ;^] # # Props: Automatic ZipAlign by Wes Garner (original script) # oknowton for the change from MD5 to zipalign -c 4 # # Tweaks & Enhancements by zeppelinrox... # - Added support for /vendor/app (POST-ICS) # - Added support for /mnt/asec # - Added support for more data directories ie. dbdata, datadata, etc. # - Added debugging # - Tweaked interface a bit ;^] # clear # # For debugging, delete the # at the beginning of the following 2 lines, and che ck /data/Log_ZepAlign.log file to see what may have fubarred. # set -x # exec > /data/Log_ZepAlign.log 2>&1 # mount -o remount,rw /data 2>/dev/null busybox mount -o remount,rw /data 2>/dev/null line================================================= cd "\${0%/*}" 2>/dev/null echo "" echo \$line echo " -=Wheel Alignment=- script by -=zeppelinrox=-" echo \$line echo "" sleep 2 id=\$(id); id=\${id#*=}; id=\${id%%[\\( ]*} if [ "\$id" != "0" ] && [ "\$id" != "root" ]; then sleep 1 echo " You are NOT running this script as root..." echo "" sleep 3 echo \$line echo " ...No SuperUser For You!!" echo \$line echo "" sleep 3 echo " ...Please Run as Root and try again..." echo "" echo \$line echo "" sleep 3

exit 69 elif [ ! "\`which zipalign\`" ]; then sleep 1 echo " Doh... zipalign binary was NOT found..." echo "" sleep 3 echo \$line echo " ...No ZepAligning For You!!" echo \$line echo "" sleep 3 echo " Load the XDA SuperCharger thread..." echo "" sleep 3 echo " ...and install The SuperCharger Starter Kit!" echo "" echo \$line echo "" sleep 3 su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start -a android.inten t.action.VIEW -n com.android.browser/.BrowserActivity -d file://$storage/!SuperC harger.html" echo "" echo \$line echo "" sleep 3 exit 69 fi mount -o remount,rw /system 2>/dev/null busybox mount -o remount,rw /system 2>/dev/null busybox mount -o remount,rw \$(busybox mount | grep system | awk '{print \$1,\$3 }' | sed -n 1p) 2>/dev/null LOG_FILE=/data/Ran_ZepAlign.log START=\`busybox date +%s\` BEGAN=\`date\` TOTAL=\$((\`ls /d*/*/*.apk | wc -l\`+\`ls /system/*/*.apk | wc -l\`+\`ls /vendor /*/*.apk | wc -l\`+\`ls /mnt/asec/*/*.apk | wc -l\`)) 2>/dev/null INCREMENT=3 PROGRESS=0 PROGRESS_BAR="" ALIGNED=0; ALREADY=0; FAILED=0; SKIPPED=0 echo " Start Wheel Alignment ( \"ZepAlign\" ): \$BEGAN" > \$LOG_FILE echo "" >> \$LOG_FILE sync for apk in /d*/*/*.apk /system/*/*.apk /vendor/*/*.apk /mnt/asec/*/*.apk; do PROGRESS=\$((\$PROGRESS+1)) PERCENT=\$(( \$PROGRESS * 100 / \$TOTAL )) if [ "\$PERCENT" -eq "\$INCREMENT" ]; then INCREMENT=\$(( \$INCREMENT + 3 )) PROGRESS_BAR="\$PROGRESS_BAR=" fi clear echo "" echo -n " >" echo -e "\r \$PROGRESS_BAR>" echo " Wheel Alignment by -=zeppelinrox=-" echo -n " >" echo -e "\r \$PROGRESS_BAR>" echo "" echo " Processing APKs - \$PERCENT% (\$PROGRESS of \$TOTAL)"

echo "" if [ -f "\$apk" ]; then if [ "\$(busybox basename \$apk )" = "framework-res.apk" ] || [ "\$(busybox basename \$apk )" = "SystemUI.apk" ] || [ "\$(busybox basename \$apk )" = "com.htc.resources.apk" ]; then echo " NOT ZipAligning (Problematic) \$apk..." | tee -a \$LOG_FILE SKIPPED=\$((\$SKIPPED+1)) skippedapp="\$skippedapp\$(busybox basename \$apk )," else zipalign -c 4 \$apk ZIPCHECK=\$? if [ "\$ZIPCHECK" -eq 1 ]; then echo " ZipAligning \$apk..." | tee -a \$LOG_FILE zipalign -f 4 \$apk /cache/\$(busybox basename \ $apk) rc="\$?" if [ "\$rc" -eq 0 ]; then if [ -e "/cache/\$(busybox basename \$ap k)" ]; then busybox cp -f -p /cache/\$(busyb ox basename \$apk) \$apk | tee -a \$LOG_FILE ALIGNED=\$((\$ALIGNED+1)) else echo " ZipAligning \$apk... Fail ed (No Output File!)" | tee -a \$LOG_FILE FAILED=\$((\$FAILED+1)) failedapp="\$failedapp\$(busybox basename \$apk )," fi else echo "ZipAligning \$apk... Failed (rc: \$rc !)" | tee -a \$LOG_FILE FAILED=\$((\$FAILED+1)) failedapp="\$failedapp\$(busybox basenam e \$apk )," fi if [ -e "/cache/\$(busybox basename \$apk)" ]; t hen busybox rm /cache/\$(busybox basename \$apk); fi else echo " ZipAlign already completed on \$apk" | te e -a \$LOG_FILE ALREADY=\$((\$ALREADY+1)) fi fi fi done sync mount -o remount,ro /system 2>/dev/null busybox mount -o remount,ro /system 2>/dev/null busybox mount -o remount,ro \$(busybox mount | grep system | awk '{print \$1,\$3 }' | sed -n 1p) 2>/dev/null STOP=\`busybox date +%s\` ENDED=\`date\` RUNTIME=\`busybox expr \$STOP - \$START\` HOURS=\`busybox expr \$RUNTIME / 3600\` REMAINDER=\`busybox expr \$RUNTIME % 3600\` MINS=\`busybox expr \$REMAINDER / 60\` SECS=\`busybox expr \$REMAINDER % 60\` RUNTIME=\`busybox printf "%02d:%02d:%02d\n" "\$HOURS" "\$MINS" "\$SECS"\` echo ""

. any key for Yes: " read align echo "" echo $line case $align in n|N)echo " No Wheel Alignment? Watch out for teh curb s!".sh cp -fr /data/V6_SuperCharger/!WheelAlignment. ^]" echo $line echo "" sleep 2 .sh..sh $storage /V6_SuperCharger/zepalign cp -fr /data/V6_SuperCharger/!WheelAlignment." | tee -a \$LOG_FILE echo " \$ALREADY Apps were already zipaligned. fi echo " \$SKIPPED (Problematic) Apps were skipped.sh /system/ xbin/zepalign echo " ZipAlign data and system APKs now?" echo "" $sleep echo -n " Enter N for No....." | tee -a \$LOG_FILE echo "" | tee -a \$LOG_FILE sleep 1 echo " \$ALIGNED Apps were zipaligned.....sh $storage /V6_SuperCharger cp -fr /data/V6_SuperCharger/!WheelAlignment. chmo d 777 /data/V6_SuperCharger/!WheelAlignment." | tee -a \$LOG_FILE echo " (\$skippedapp)" | tee -a \$LOG_FILE echo "" | tee -a \$LOG_FILE echo " \$TOTAL Apps were processed!" | tee -a \$LOG_FILE echo "" | tee -a \$LOG_FILE sleep 1 echo " .Say Hello To Optimized Apps!" echo "" echo \$line echo "" sleep 1 echo " Start Time: \$BEGAN" | tee -a \$LOG_FILE echo " Stop Time: \$ENDED" | tee -a \$LOG_FILE echo "" | tee -a \$LOG_FILE echo " Completion Time: \$RUNTIME" | tee -a \$LOG_FILE echo "" sleep 1 echo " See \$LOG_FILE for more details!" echo "" sleep 1 echo " ================================" echo " ) Wheel Alignment Completed! (" echo " ================================" echo "" sleep 1 exit 0 EOF chown 0.0 /data/V6_SuperCharger/!WheelAlignment." | tee -a \$LOG_FILE echo " \$FAILED Apps were NOT zipaligned due to error.. *)echo " Gonna \"ZepAlign\" in no time! ." | tee -a \$LOG_FILE if [ "\$failedapp" ]...echo \$line echo "" | tee -a \$LOG_FILE sleep 1 echo " Done \"ZepAligning\" ALL data and system APKs. then echo " (\$failedapp)" | tee -a \$LOG_FILE.

. \"ZepAligning\"." echo "" $sleep echo " ....sh /data/V6_SuperCharger/!WheelAlignment..make a \"Quick Widget\" for it."Free ("$5" Used)"}' | tail -n 1`" fi echo "" .sh....type \"zepalign\" and E nter. uhh." echo "" $sleep echo " To use this script with Terminal Emulator .type \"su\" and Enter../data/V6_SuperCharger/!WheelAlignment." echo " ========" echo "" $sleep echo " THAT'S IT!" else echo " WARNING: ERROR copying file to /system/xb in!" echo "" $sleep echo " Got enough free space?" echo "" $sleep echo " System Partition has `busybox df -h /syst em | awk '{print $4..........or put it on a weekly schedule!" echo "" echo $line echo "" $sleep if [ ! "`diff /data/V6_SuperCharger/!WheelAlignment.. then echo " There is another copy in /system/xbin....." echo "" $sleep echo " ..was created!" echo "" $sleep echo " With Script Manager. esac echo $line echo "" $sleep echo " For Zippy...." echo "" $sleep echo " Run Terminal Emulator." echo " ==" echo "" $sleep echo " ....sh / system/xbin/zepalign`" ]." echo "" $sleep echo " .sh autofixemissions=yes..." echo "" $sleep echo " .." echo "" $sleep echo " ...

rw / 2>/dev/null mount -o remount. then echo $line echo "" $sleep echo " Wheel Alignment can run automatically on boot!" echo "" $sleep echo " *99SuperCharger would run WheelAlignment....rw rootfs 2>/dev/null busybox mount -o remount.d" ].. sh.rw /system 2> /dev/null busybox mount -o remount.. but run it if you get FCs!!". then echo $line echo "" $sleep echo " Run the Fix Permissions option?" echo "" $sleep echo -n " Enter N for No. esac fi else echo " Doh. any key for Yes: " read emissions echo "" echo $line case $emissions in n|N)autofixemissions= mount -o remount.so boot time would be unaffe . zipalign binary was NOT found." echo "" $sleep echo " cted!" echo "" $sleep echo $line echo " You can configure this in Driver Options! " fi if [ "$autofixemissions" ]....rw / 2>/dev/n ull busybox mount -o remount..$3}' | sed -n 1p) 2>/dev/null echo " Okay.rw /system 2>/dev/nul l busybox mount -o remount.rw rootfs 2>/ dev/null mount -o remount. *)opt=20 echo "" echo " ================== ===" busybox echo " //// FIX EM ISSIONS \\\\\\\\" echo $line echo "" $sleep....if [ -d "/system/etc/init.rw $(busybox mount | grep system | awk '{print $1." .

" echo "" $sleep echo " .. and error to get perfected. or code snippets from here. # If you want to share it or make a thread about it.. then echo " This should fix app Force Closes!" echo "" $sleep echo " FCs usually happen due to permission errors.have the correct permissions!" echo "" echo $line echo "" $sleep cat > /data/V6_SuperCharger/!FixEmissions. or mirrors of my work are NOT PERMITTED. # # This script can be used freely and can even be modified for PERSONAL USE ONLY. just provide a link to the main thread...This ensures that users will always be getting the latest versions. # .echo "" $sleep echo $line echo " ..gl/qM6yR" echo "" fi fi if [ "$opt" -eq 20 ]. ideas.. but actually took a lot of time. please give pr oper credit.. zeppelinrox..No ZepAligning For You!!" echo $line echo "" $sleep echo " Load the XDA SuperCharger thread." echo "" $sleep echo " This tool will ensure that ALL apps..sh <<EOF #!/system/bin/sh # # Fix Emissions Script (Fix Permissions) created by -=zeppelinrox=# # V6U9RC12T6 # # When using scripting tricks. # Thanks. trial. # It can be freely incorporated into ROMs .provided that proper credit is given WITH a link back to the XDA SuperCharger thread." echo "" $sleep echo " .and install The SuperCharger Starter Kit!" echo "" $sleep echo -n " Press The Enter Key. # Prohibited: Any modification (excluding personal use)... # . " read enter echo "" echo $line echo "" su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start http://goo. redistribu tion. # There are many things may look simple.. repackaging...

.. # . then sleep 1 echo " You are NOT running this script as root.Removed the usage of the "pm list packages" command .rw /system 2>/dev/null busybox mount -o remount. dbdata.rw /data 2>/dev/null busybox mount -o remount. etc.rw /system 2>/dev/null busybox mount -o remount.Tweaked interface a bit .No longer excludes framework-res.Added support for /vendor/app (POST-ICS) # .script by -=zeppelinrox=-" echo \$line echo "" sleep 2 id=\$(id).\$3 }' | sed -n 1p) 2>/dev/null LOG_FILE=/data/Ran_FixEmissions.. # set -x # exec > /data/Log_FixEmissions.# Sets permissions for android data directories and apks.Added debugging # ." echo "" sleep 3 echo \$line echo " .log 2>&1 # mount -o remount.. # This should fix app force closes (FCs). and che ck /data/Log_FixEmissions. # # Props: Originally and MOSTLY (erm.htc...setting permissions for 300 apps in approximately 1 minute.. something like 90% of it lol) by Jared Ru mmler (JRummy16)..apk or com. delete the # at the beginning of the following 2 lines. # However.resources. # . id=\${id#*=}..Added support for more data directories ie.rw \$(busybox mount | grep system | awk '{print \$1. datadata.rw /data 2>/dev/null line================================================= cd "\${0%/*}" 2>/dev/null echo "" echo \$line echo " -=Fix Emissions=..log START=\`busybox date +%s\` BEGAN=\`date\` TOTAL=\`cat /d*/system/packages.^] # # Tweaks & Enhancements by zeppelinrox.*serId"\` ." echo "" echo \$line echo "" sleep 3 exit 69 fi mount -o remount. # . I actually meshed together 3 different Fix Permissions scripts .Please Run as Root and try again.No SuperUser For You!!" echo \$line echo "" sleep 3 echo " .log file to see what may have fubarred.^] # clear # # For debugging.apk # .. # It's quite fast . id=\${id%%[\\( ]*} if [ "\$id" != "0" ] && [ "\$id" != "root" ].xml | grep -c "^<package.it didn't work on boot..

.*%\1%' | cut -d '"' f1\` CODEPATH=\`echo \$pkgline | sed 's%.*%\1%' | cut -d '"' -f 1\` PROGRESS=\$((\$PROGRESS+1)) PERCENT=\$(( \$PROGRESS * 100 / \$TOTAL )) if [ "\$PERCENT" -eq "\$INCREMENT" ].*\)".xml | while read pkgline. then busybox chown 0 \$CODEPATH busybox chown :0 \$CODEPATH busybox chmod 644 \$CODEPATH elif [ "\$APPDIR" = "`ls -d /d*/app`" ].* name="\(.*%\1%' | cut -d '"' -f1\` DATAPATH=/d*/d*/\$PKGNAME PKGUID=\`echo \$pkgline | sed 's%.*serId="\(." echo "" echo " ..*serId" /d*/system/packages. then busybox chmod 755 \$DATAPATH busybox chown \$PKGUID \$DATAPATH busybox chown :\$PKGUID \$DATAPATH DIRS=\`busybox find \$DATAPATH -mindepth 1 -type d\` for file in \$DIRS. then busybox chown 1000 \$CODEPATH busybox chown :\$PKGUID \$CODEPATH busybox chmod 640 \$CODEPATH fi if [ -d "\$DATAPATH" ].*\)".\$PKGNAME" echo " \$PKGNAME (\$CODEPATH)" >> \$LOG_FILE if [ -e "\$CODEPATH" ]. do PERM=755 NEWUID=\$PKGUID ..INCREMENT=3 PROGRESS=0 PROGRESS_BAR="" echo " Start Fix Emissions: \$BEGAN" > \$LOG_FILE echo "" >> \$LOG_FILE echo " Setting & Fixing Permissions For.\$PERCENT% (\$PROGRESS of \$TOTAL)" echo "" echo " Setting & Fixing Permissions For. then busybox chown 1000 \$CODEPATH busybox chown :1000 \$CODEPATH busybox chmod 644 \$CODEPATH elif [ "\$APPDIR" = "`ls -d /d*/app-private`" ]. do PKGNAME=\`echo \$pkgline | sed 's%.* codePath="\(. then INCREMENT=\$(( \$INCREMENT + 3 )) PROGRESS_BAR="\$PROGRESS_BAR=" fi clear echo "" echo -n " >" echo -e "\r \$PROGRESS_BAR>" echo " \"Fix Emissions\" by -=zeppelinrox=-" echo -n " >" echo -e "\r \$PROGRESS_BAR>" echo "" echo " Processing Apps ..*\)"." >> \$LOG_FILE echo "" >> \$LOG_FILE sync grep "^<package.. then APPDIR=\`busybox dirname \$CODEPATH\` if [ "\$APPDIR" = "/system/app" ] || [ "\$APPDIR" = "/vendor/app " ]..

\$3 }' | sed -n 1p) 2>/dev/null STOP=\`busybox date +%s\` ENDED=\`date\` RUNTIME=\`busybox expr \$STOP .NEWGID=\$PKGUID FNAME=\`busybox basename \$file\` case \$FNAME in lib)busybox chmod 755 \$ file NEWUID=1000 NEWGID=1000 PERM=755... *)busybox chmod 771 \$ file PERM=771. shared_prefs)busybox chmod 771 \$file PERM=660.\$START\` HOURS=\`busybox expr \$RUNTIME / 3600\` REMAINDER=\`busybox expr \$RUNTIME % 3600\` MINS=\`busybox expr \$REMAINDER / 60\` SECS=\`busybox expr \$REMAINDER % 60\` RUNTIME=\`busybox printf "%02d:%02d:%02d\n" "\$HOURS" "\$MINS" "\$SECS"\` echo "" echo \$line echo "" | tee -a \$LOG_FILE sleep 1 echo " FIXED Permissions For ALL \$TOTAL Apps..." | tee -a \$LOG_FILE echo ""| tee -a \$LOG_FILE sleep 1 echo " ..' busybox find \$file -type f -maxdepth 1 ! -user \$NEWUID -exec busybox chown \$NEWUID {} '. esac busybox chown \$NEWUID \$file busybox chown :\$NEWGID \$file busybox find \$file -type f -maxdepth 2 ! -perm \$PERM -exec busybox chmod \$PERM {} '..ro /system 2>/dev/null busybox mount -o remount.Say Buh Bye To Force Close Errors!" echo "" echo \$line echo "" sleep 1 echo " Start Time: \$BEGAN" | tee -a \$LOG_FILE echo " Stop Time: \$ENDED" | tee -a \$LOG_FILE echo "" | tee -a \$LOG_FILE . cache)busybox chmod 771 \$file PERM=600... databases)busybox chmod 771 \$file PERM=660..ro \$(busybox mount | grep system | awk '{print \$1. files)busybox chmod 771 \$file PERM=775..' busybox find \$file -type f -maxdepth 1 ! -group \$NEWGID -exec busybox chown :\$NEWGID {} '.' done fi fi 2>/dev/null done sync mount -o remount.ro /system 2>/dev/null busybox mount -o remount.

..sh $storage/V6_SuperC harger cp -fr /data/V6_SuperCharger/!FixEmissions..echo " Completion Time: \$RUNTIME" | tee -a \$LOG_FILE echo "" sleep 1 echo " See \$LOG_FILE for more details!" echo "" sleep 1 echo " ==============================" echo " ) Fix Emissions Completed! (" echo " ==============================" echo "" sleep 1 exit 0 EOF mount -o remount....sh.make a \"Quick Widget\" for it. This won't take too long . autofixemissions=.. *)echo "" echo " Cool..rw /system 2>/dev/null busybox mount -o remount..^]" echo "" sleep 2 sh /data/V6_SuperCharger/!FixEmissions..." echo "" $sleep echo " . What The FC!?".." echo "" $sleep echo " . echo $emissions else read emissions fi echo "" echo $line case $emissions in n|N)echo " Fix Emissions Declined.rw /system 2>/dev/null busybox mount -o remount. then emissions=Y.rw $(busybox mount | grep system | awk '{print $1.sh cp -fr /data/V6_SuperCharger/!FixEmissions.sh.... any key for Yes: " if [ "$autofixemissions" ].sh." echo "" $sleep ." echo "" $sleep echo " . esac echo $line echo "" $sleep echo " For a Fast FCing Fix.sh /system/xbin/fixfc echo " Fix Permissions now?" echo "" $sleep echo -n " Enter N for No..0 /data/V6_SuperCharger/!FixEmissions.$3}' | sed -n 1p) 2>/dev/null chown 0.../data/V6_SuperCharger/!FixEmissions.sh $storage/V6_SuperC harger/fixfc cp -fr /data/V6_SuperCharger/!FixEmissions.. chmod 777 /dat a/V6_SuperCharger/!FixEmissions..was created!" echo "" $sleep echo " With Script Manager.

.sh /system/xbi n/fixfc`" ]." echo "" $sleep echo " Run Terminal Emulator." echo "" $sleep echo " .. then echo " There is another copy in /system/xbin." echo " ==" echo "" $sleep echo " .so boot time would be unaffected!" echo "" $sleep echo $line echo " You can configure this in Driver Options!" fi fi if [ "$opt" -eq 21 ]..." echo " =====" echo "" $sleep echo " THAT'S IT!" else echo " WARNING: ERROR copying file to /system/xbin!" echo "" $sleep echo " Got enough free space?" echo "" $sleep echo " System Partition has `busybox df -h /system | awk '{print $4." echo "" $sleep echo " ...sh." echo "" $sleep echo " To use this script with Terminal Emulator...d" ].Wheel Alignment AND Fix Emissions!" echo "" $sleep .type \"su\" and Enter...echo " .." echo "" $sleep echo " . then echo $line echo "" $sleep echo " Fix Emissions can run automatically on boot!" echo "" $sleep echo " *99SuperCharger would run FixEmissions.type \"fixfc\" and Enter."Free ("$5" Used)"}' | tail -n 1`" fi echo "" if [ -d "/system/etc/init......or put it on a weekly schedule!" echo "" echo $line echo "" $sleep if [ ! "`diff /data/V6_SuperCharger/!FixEmissions..... then echo " This combines two scripts into one.....

redistribu tion.. # . just provide a link to the main thread. but actually took a lot of time.... then cat > /data/V6_SuperCharger/!FixAlignment..so this Fixes Permissions of each app." echo "" $sleep echo $line echo " It's the ONLY script of it's kind .. zeppelinrox. and error to get perfected. # # Combines my "ZepAlign" / Wheel Alignment Script (ZipAlign) with my Fix Emissio ns Script (Fix Permissions).. resulting in less RAM comsumption and a fast er device! ..This ensures that users will always be getting the latest versions.. # There are many things may look simple. repackaging... # If you want to share it or make a thread about it. please give pr oper credit.. # ############################### # Wheel Alignment Information # ############################### # ZipAligns all data and system apks (apps) that have not yet been ZipAligned..provided that proper credit is given WITH a link back to the XDA SuperCharger thread.^]" echo $line echo "" $sleep if [ "`which zipalign`" ]. Force Closes can result. or code snippets from here.which means less RAM comsumption. trial.immediately after zipaligning it!" echo "" $sleep echo " It's REALLY FAST and. # It can be freely incorporated into ROMs .echo " ZipAlign optimizes all your APKs.." echo "" $sleep echo " ." echo "" $sleep echo " .. # ZipAlign optimizes all your apps." echo "" $sleep echo " . # Thanks..^] # # Props: Automatic ZipAlign by Wes Garner (original script) ." echo "" $sleep echo " .. or mirrors of my work are NOT PERMITTED.. # # This script can be used freely and can even be modified for PERSONAL USE ONLY. # Prohibited: Any modification (excluding personal use).better battery life and a faster device!!" echo "" $sleep echo " But sometimes. ideas..sh <<EOF #!/system/bin/sh # # Fix Alignment Script (ZipAlign AND Fix Permissions) created by -=zeppelinrox=# # V6U9RC12T6 # # When using scripting tricks..

. datadata.Added debugging # .^] # clear # # For debugging.. id=\${id#*=}. # It's quite fast . delete the # at the beginning of the following 2 lines.setting permissions for 300 apps in approximately 1 minute. # set -x # exec > /data/Log_FixAlign.No SuperUser For You!!" echo \$line echo "" sleep 3 echo " .script by -=zeppelinrox=-" echo \$line echo "" sleep 2 zipalign="yes" id=\$(id).. # This should fix app force closes (FCs).. then sleep 1 echo " You are NOT running this script as root. # ..resources.Please Run as Root and try again." echo "" sleep 3 echo \$line echo " ...Removed the usage of the "pm list packages" command ..Tweaked interface a bit . and che ck /data/Log_FixAlign.Added support for /vendor/app (for ICS) # .# oknowton for the change from MD5 to zipalign -c 4 # # Tweaks & Enhancements by zeppelinrox..^] # ############################# # Fix Emissions Information # ############################# # Sets permissions for android data directories and apks. # . I actually meshed together 3 different Fix Permissions scripts . etc.Added support for more data directories ie. id=\${id%%[\\( ]*} if [ "\$id" != "0" ] && [ "\$id" != "root" ].. dbdata.Added support for more data directories ie.htc.Added debugging # .. etc. # However.apk or com. # . # .log file to see what may have fubarred.No longer excludes framework-res.. dbdata..rw /data 2>/dev/null busybox mount -o remount.Tweaked interface a bit . # . something like 90% of it lol) by Jared Ru mmler (JRummy16)." echo "" .log 2>&1 # mount -o remount.Added support for /mnt/asec # ..rw /data 2>/dev/null line================================================= cd "\${0%/*}" 2>/dev/null echo "" echo \$line echo " -=Fix Alignment=.^] # # Tweaks & Enhancements by zeppelinrox. # # Props: Originally and MOSTLY (erm.Added support for /vendor/app (for ICS) # . datadata.apk # .it didn't work on boot.

..*serId"\` INCREMENT=3 PROGRESS=0 PROGRESS_BAR="" echo " Start Fix Alignment: \$BEGAN" > \$LOG_FILE if [ "\$zipalign" ].* name="\(.* codePath="\(.*%\1%' | cut -d '"' f1\` CODEPATH=\`echo \$pkgline | sed 's%.*%\1%' | cut -d '"' -f1\` .log START=\`busybox date +%s\` BEGAN=\`date\` TOTAL=\`cat /d*/system/packages.VIEW -n com.xml | grep -c "^<package. zipalign binary was NOT found. FAILED=0." echo "" sleep 3 echo \$line echo " . S KIPPED=0... then echo " Start Wheel Alignment ( \"ZepAlign\" ): \$BEGAN " > \$LOG_FILE2.rw /system 2>/dev/null busybox mount -o remount." echo "" sleep 3 echo " .browser/.inten t.*\)".. do if [ ! -f "/data/fixaligntemp" ]..html" echo "" echo \$line echo "" sleep 3 echo \$line echo " So.xml | while read pkgline.. echo "" >> \$LOG_FILE2. fi sync grep "^<package. can ONLY Fix Emissions!" echo \$line echo "" sleep 3 fi mount -o remount.*\)"..No ZepAligning For You!!" echo \$line echo "" sleep 3 echo " Load the XDA SuperCharger thread.. ALREADY=0. then ALIGNED=0. fi PKGNAME=\`echo \$pkgline | sed 's%. then zipalign= sleep 1 echo " Doh.and install The SuperCharger Starter Kit!" echo "" echo \$line echo "" sleep 3 su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start -a android.. for now..log LOG_FILE2=/data/Ran_ZepAlign..echo \$line echo "" sleep 3 exit 69 elif [ ! "\`which zipalign\`" ].rw /system 2>/dev/null busybox mount -o remount.android.BrowserActivity -d file://\$storage/!Super Charger.action..rw \$(busybox mount | grep system | awk '{print \$1.*serId" /d*/system/packages..\$3 }' | sed -n 1p) 2>/dev/null rm /data/fixaligntemp* 2>/dev/null LOG_FILE=/data/Ran_FixAlign.

apk" ] || [ "\$(busybox basename \$CODEPATH )" = "SystemUI. then busybox cp -f -p /cache/ \$(busybox basename \$CODEPATH ) \$CODEPATH | tee -a \$LOG_FILE \$LOG_FILE2 ALIGNED=\$((\$ALIGNED+1) ) else echo " ZipAligning \$COD EPATH.. Failed (No Output File!)" | tee -a \$LOG_FILE \$LOG_FILE2 FAILED=\$((\$FAILED+1)) failedapp="\$failedapp\$ (busybox basename \$CODEPATH ). ." fi else echo "ZipAligning \$CODEPATH.resources.apk" ]. Fai led (rc: \$rc!)" | tee -a \$LOG_FILE \$LOG_FILE2 FAILED=\$((\$FAILED+1)) failedapp="\$failedapp\$(busybox basename \$CODEPATH ).DATAPATH=/d*/d*/\$PKGNAME PKGUID=\`echo \$pkgline | sed 's%..\$PERCENT% (\$PROGRESS of \$TOTAL)" echo "" | tee -a \$LOG_FILE echo " Fix Aligning \$PKGNAME. then if [ "\$(busybox basename \$CODEPATH )" = "framework-res .*serId="\(." else zipalign -c 4 \$CODEPATH ZIPCHECK=\$? if [ "\$ZIPCHECK" -eq 1 ]." | tee -a \$LOG_FILE echo "" if [ -e "\$CODEPATH" ].*%\1%' | cut -d '"' -f 1\` PROGRESS=\$((\$PROGRESS+1)) PERCENT=\$(( \$PROGRESS * 100 / \$TOTAL )) if [ "\$PERCENT" -eq "\$INCREMENT" ]. then echo " NOT ZipAligning (Problematic) \$CODEPATH.apk" ] || [ "\$(busy box basename \$CODEPATH )" = "com...htc.." | tee -a \$LOG_FILE \$LOG_FILE2 zipalign -f 4 \$CODEPATH /cache/\$(busyb ox basename \$CODEPATH ) rc="\$?" if [ "\$rc" -eq 0 ]. then echo " ZipAligning \$CODEPATH.*\)"." | tee -a \$LOG_FILE \$LOG_FILE2 SKIPPED=\$((\$SKIPPED+1)) skippedapp="\$skippedapp\$(busybox basename \$CO DEPATH ).. then INCREMENT=\$(( \$INCREMENT + 3 )) PROGRESS_BAR="\$PROGRESS_BAR=" fi clear echo "" echo -n " >" echo -e "\r \$PROGRESS_BAR>" echo " \"Fix Alignment\" by -=zeppelinrox=-" echo -n " >" echo -e "\r \$PROGRESS_BAR>" echo "" echo " Processing Apps . then if [ "\$zipalign" ]..." fi . then if [ -e "/cache/\$(busybox basen ame \$CODEPATH )" ]..

shared_prefs)busybox chmod 771 \$file PERM=660. esac busybox chown \$NEWUID \$file busybox chown :\$NEWGID \$file busybox find \$file -type f -maxdepth 2 ! -perm \$PERM -exec busybox chmod \$PERM {} '. cache)busybox chmod 771 \$file PERM=600. then busybox chown 1000 \$CODEPATH busybox chown :1000 \$CODEPATH busybox chmod 644 \$CODEPATH elif [ "\$APPDIR" = "/data/app-private" ]. databases)busybox chmod 771 \$file PERM=660. files)busybox chmod 771 \$file PERM=775.. do PERM=755 NEWUID=\$PKGUID NEWGID=\$PKGUID FNAME=\`busybox basename \$file\` case \$FNAME in lib)busybox chmod 755 \$ file NEWUID=1000 NEWGID=1000 PERM=755. fi else echo " ZipAlign already completed on \$C ODEPATH " | tee -a \$LOG_FILE \$LOG_FILE2 ALREADY=\$((\$ALREADY+1)) fi echo "\$ALIGNED \$ALREADY \$FAILED \$SKIPPED" > /data/fixaligntemp echo "\$failedapp" > /data/fixaligntemp2 echo "\$skippedapp" > /data/fixaligntemp3 fi fi APPDIR=\`busybox dirname \$CODEPATH\` if [ "\$APPDIR" = "/system/app" ] || [ "\$APPDIR" = "/vendor/app " ] || [ "\$APPDIR" = "/system/framework" ]..' . then busybox chown 0 \$CODEPATH busybox chown :0 \$CODEPATH busybox chmod 644 \$CODEPATH elif [ "\$APPDIR" = "/data/app" ]. then busybox chmod 755 \$DATAPATH busybox chown \$PKGUID \$DATAPATH busybox chown :\$PKGUID \$DATAPATH DIRS=\`busybox find \$DATAPATH -mindepth 1 -type d\` for file in \$DIRS.. then busybox chown 1000 \$CODEPATH busybox chown :\$PKGUID \$CODEPATH busybox chmod 640 \$CODEPATH fi if [ -d "\$DATAPATH" ].. then busybox rm /cache/\$(busybox basename \$CODEPATH ).if [ -e "/cache/\$(busybox basename \$CO DEPATH )" ].. *)busybox chmod 771 \$ file PERM=771..

.ro /system 2>/dev/null busybox mount -o remount.." | tee -a \$LOG_FI LE \$LOG_FILE2 echo " (\$skippedapp)" | tee -a \$LOG_FILE \$LOG_FILE2 echo "" | tee -a \$LOG_FILE \$LOG_FILE2 echo " \$TOTAL Apps were processed!" | tee -a \$LOG_FILE \$LOG_FILE2 echo "" | tee -a \$LOG_FILE sleep 1 echo " ..." | tee -a \$LOG_FILE \$LOG_FI LE2 echo " \$ALREADY Apps were already zipaligned.busybox find \$file -type f -maxdepth 1 ! -user \$NEWUID -exec busybox chown \$NEWUID {} '.. then ALIGNED=\`awk '{print \$1}' /data/fixaligntemp\` ALREADY=\`awk '{print \$2}' /data/fixaligntemp\` FAILED=\`awk '{print \$3}' /data/fixaligntemp\` SKIPPED=\`awk '{print \$4}' /data/fixaligntemp\` failedapp=\`cat /data/fixaligntemp2\` skippedapp=\`cat /data/fixaligntemp3\` echo "" | tee -a \$LOG_FILE2 sleep 1 rm /data/fixaligntemp* echo " Done \"ZepAligning\" ALL data and system APKs.ro /system 2>/dev/null busybox mount -o remount.ro \$(busybox mount | grep system | awk '{print \$1.....\$START\` HOURS=\`busybox expr \$RUNTIME / 3600\` REMAINDER=\`busybox expr \$RUNTIME % 3600\` MINS=\`busybox expr \$REMAINDER / 60\` SECS=\`busybox expr \$REMAINDER % 60\` RUNTIME=\`busybox printf "%02d:%02d:%02d\n" "\$HOURS" "\$MINS" "\$SECS"\` if [ "\$zipalign" ]." | tee -a \$L OG_FILE \$LOG_FILE2 if [ "\$failedapp" ].\$3 }' | sed -n 1p) 2>/dev/null STOP=\`busybox date +%s\` ENDED=\`date\` RUNTIME=\`busybox expr \$STOP ." | tee -a \$LOG_FILE fi 2>/dev/null done sync echo "" | tee -a \$LOG_FILE echo \$line mount -o remount." | tee -a \$LOG_FILE ...." | tee -a \$LOG_ FILE \$LOG_FILE2 echo "" | tee -a \$LOG_FILE \$LOG_FILE2 sleep 1 echo " \$ALIGNED Apps were zipaligned. fi echo " \$SKIPPED (Problematic) Apps were skipped.' busybox find \$file -type f -maxdepth 1 ! -group \$NEWGID -exec busybox chown :\$NEWGID {} '. then echo " (\$failedapp)" | tee -a \$LOG_FILE ...." | tee -a \$LOG_FILE \$ LOG_FILE2 echo " \$FAILED Apps were NOT zipaligned due to error.Say Hello To Optimized Apps!" echo "" echo \$line fi echo "" sleep 1 echo " FIXED Permissions For ALL \$TOTAL Apps.' done fi echo " Fixed Permissions..

sh.0 /data/V6_SuperCharger/!FixAlignment.sh $storage/V 6_SuperCharger/fixalign cp -fr /data/V6_SuperCharger/!FixAlignment..echo "" | tee -a \$LOG_FILE sleep 1 echo " .." echo "" $sleep echo " .sh cp -fr /data/V6_SuperCharger/!FixAlignment." echo "" $sleep .. then echo " And see \$LOG_FILE2 for even more!". fi echo "" sleep 1 echo " ==============================" echo " ) Fix Alignment Completed! (" echo " ==============================" echo "" sleep 1 exit 0 EOF chown 0..sh $storage/V 6_SuperCharger cp -fr /data/V6_SuperCharger/!FixAlignment.. ^]" echo $line echo "" sleep 2 sh /data/V6_SuperCharger/!FixAlignment..Say Buh Bye To Force Close Errors!" echo "" echo \$line echo "" sleep 1 echo " Start Time: \$BEGAN" | tee -a \$LOG_FILE echo " Stop Time: \$ENDED" | tee -a \$LOG_FILE echo "" | tee -a \$LOG_FILE echo " Completion Time: \$RUNTIME" | tee -a \$LOG_FILE echo "" sleep 1 echo " See \$LOG_FILE for more details!" echo "" sleep 1 if [ "\$zipalign" ]./data/V6_SuperCharger/!FixAlignment.. any key for Yes: " read align echo "" echo $line case $align in n|N)echo " No Fix Alignment? Try and drive straight!" . *)echo " Gonna \"FixAlign\" in no time! .. chmod 777 /data/V6_SuperCharger/!FixAlignment.sh /system/xb in/fixalign echo " FixAlign data and system APKs now?" echo "" $sleep echo -n " Enter N for No.sh... esac echo $line echo "" $sleep echo " For Fast 'n Furious FixAligning.sh.

.echo " .or put it on a weekly schedule!" echo "" echo $line echo "" $sleep if [ ! "`diff /data/V6_SuperCharger/!FixAlignment." echo "" $sleep echo " To use this script with Terminal Emulator .. then echo $line echo "" $sleep echo " Fix Alignment can run automatically on bo ot!" echo "" $sleep echo " *99SuperCharger would run FixAlignment........." echo "" $sleep echo " Run Terminal Emulator."Free ("$5" Used)"}' | tail -n 1`" fi echo "" if [ -d "/system/etc/init." echo " ==" echo "" $sleep echo " ....sh /sy stem/xbin/fixalign`" ]....type \"fixalign\" and E nter...sh ." echo " ========" echo "" $sleep echo " THAT'S IT!" else echo " WARNING: ERROR copying file to /system/xb in!" echo "" $sleep echo " Got enough free space?" echo "" $sleep echo " System Partition has `busybox df -h /syst em | awk '{print $4." echo "" $sleep echo " ...d" ]..make a \"Quick Widget\" for it." echo "" $sleep echo " ..was created!" echo "" $sleep echo " With Script Manager." echo "" $sleep . then echo " There is another copy in /system/xbin..." echo "" $sleep echo " ..type \"su\" and Enter..

. WiFi or BlueTooth issues reported!" while :..it may make your device even snappier.." echo "" $sleep echo $line echo " .." echo "" $sleep echo " ." echo "" $sleep echo " But some people swear that it's great!" echo "" $sleep echo " Values are added at the bottom of build..so boot time would be unaffe echo "" $sleep echo $line echo " You can configure this in Driver Options! " fi else echo " Doh..... (U)n-Nullify..No FixAligning For You!!" echo $line echo "" $sleep echo " Load the XDA SuperCharger thread.it may improve multitasking..." echo "" $sleep echo " . then echo " This is EXPERIMENTAL...gl/qM6yR" echo "" fi fi if [ "$opt" -eq 22 ]...and install The SuperCharger Starter Kit!" echo "" $sleep echo -n " Press The Enter Key. E(X)it: " read nln .echo " cted!" .." echo "" $sleep echo " ...... " read enter echo "" echo $line echo "" su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start http://goo. zipalign binary was NOT found. do echo $line echo "" $sleep echo -n " Enter (N)ullify..prop!" echo "" $sleep echo $line echo " Warning: 3G.it may really do nothing....." echo "" $sleep echo " ..

.unsuper`" ]..prop backup intact. then cat >> /system/build. DELETING COMMENTS WILL BREAK UNINSTALL ROUTINE! # ENFORCE_PROCESS_LIMIT=false MAX_SERVICE_INACTIVITY= MIN_HIDDEN_APPS= MAX_HIDDEN_APPS= CONTENT_APP_IDLE_OFFSET= EMPTY_APP_IDLE_OFFSET= MAX_ACTIVITIES= ACTIVITY_INACTIVE_RESET_TIME= # End of Nullified Entries. then ech o " Leaving ORIGINAL build...prop /system/build.as /syste m/build..prop.break.unsuper fi echo "" $sleep if [ -f "/system/bin/build.prop /system/b uild.prop... fi sed -i '/Nullifier/..prop!" else sed -i '/SuperCharger Installati on/d' /system/build. then if [ -f "/system/build.unsuper echo " . then echo " ERROR BACKING UP /system/build.break.break..prop. Please try again :p"..prop.prop if [ "$nitro" -eq 1 ].unsuper" ].unsuper" ].pro p..prop.p rop. u|U)nitro=2. *)echo " Invalid entry. x|X)nitro=3. " echo "" $sleep cp -r /system/build..prop. EOF echo " Nitro Lag Nullifier installed.prop $storage/V6_SuperCharg er/build.prop. then cp -r /system/bin/build." else echo " Uninstalled Nitro Lag Nullifier." fi echo "" . then if [ "$nitro" -eq 1 ].prop" ] && [ ! -f "/system/bi n/build." else echo " Backing up ORIGINAL build.prop <<EOF # Nitro Lag Nullifier created by -=zeppelinrox=# # DO NOT DELETE COMMENTS./Nullified/d' /system/build. esac done if [ "$nitro" -ne 3 ]...echo "" echo $line case $nln in n|N)nitro=1.unsuper if [ "`diff /system/build..unsuper!" fi fi echo $line cp -fr /system/build.prop /system/bin/build.unsuper..

then cp -fr /system/ build. then e cho " You are already running it from system/xbin!" else dd if=$0 of=/system/xbin/v6 2>/dev/null cp -fr $0 $storage/V6_SuperCharger/v6 if [ ! "`diff $0 /system/xbin/v6`" ].$sleep if [ -f "/system/bin/build..prop /system/bin." echo " ==" echo "" $sleep echo " .....0 /system/xbin/v6..... continue installation?" echo "" $sleep echo -n " Enter Y for Yes. chmod 777 /sy stem/xbin/v6 echo " FABULOUS! Installation Was A Gre at Success!" else echo " WARNING: ERROR copying file to /s ystem/xbin!" echo $line echo "" $sleep echo " Got enough free space?" echo "" $sleep ..." echo "" echo $line echo "" $sleep echo " So..Reboot required!" fi echo "" fi if [ "$opt" -eq 23 ]. any key for No: " read v6xbin echo "" echo $line case $v6xbin in y|Y)if [ "$0" = "v6" ] || [ "$0" = "/system/xbin/v6" ]. then chown 0.prop" ]..type \"su\" and Enter." echo "" $sleep echo " Run Terminal Emulator..." echo "" $sleep echo " ..type \"v6\" and Enter." echo " ==" echo "" $sleep echo " THAT'S IT!" echo "" $sleep echo " Note that su is short for SuperUser.. fi echo " .. then echo " This will copy V6 SuperCharger to /system/xbin" echo "" $sleep echo " To use this script with Terminal Emulator.

esac fi if [ "$opt" -eq 25 ] || [ "$UnIScream" ].". echo $restorejar else read restorejar fi echo "" echo $line case $restorejar in y|Y)cp -fr $storage/V6_SuperCharger/services. forget it then. if it exi sts)" echo "" $sleep for newer in `busybox ls -lc $storage/V6_SuperCh arger/services.unsuper /system/framework/services..jar... then restorejar=Y.. services. unsuper" echo "" $sleep echo " Do you want to restore it (with permissio ns)?" echo " (services..odex too.jar was found...unsuper" ]. done if [ "$newer" = "/system/bin/adb" ].. then echo $line echo " WARNING: This backup was created BEFORE." echo " ..unsuper /system/bin/adb | awk '{print $9}'`..$storage/V6_SuperCharger/services. then echo " Hey.jar is ALREADY SuperChar ged!" echo "" echo $line fi if [ -f "$storage/V6_SuperCharger/services.this ROM's insta llation date!" echo $line echo "" $sleep echo " It MIGHT be from a different ROM! Go ahead?" echo "" $sleep fi echo -n " Enter Y for Yes."Free ("$5" Used)"}' | tail -n 1`" echo "" fi fi.jar cp -fr $storage/V6_SuperCharger/servic . then echo "" $sleep echo " A backup services.... any key for No: " if [ "$UnIScream" ] && [ "$newer" != "/system/bi n/adb" ].echo " System Partition has `busybox df -h /system | awk '{print $4.jar.jar. then if [ ! "$UnIScream" ].j ar." echo "" $sleep echo " ie.. *)echo " Well. then if [ "$servicesjarpatched" ]. do break.

*).odex" ]..jar. then if [ -f "/system/framework/services.OOM Priorities UnFixed..odex 2>/dev/null if [ ! "`diff $storage/V6_SuperCharger /services.. fi fi if [ ! "$servicesjarpatched" ] || [ "$usedwebapp" ] || [ "$newer " = "/system/bin/adb" ]." echo "" $sleep echo " . fi if [ "$newsupercharger" ] && [ "$ran" -eq 1 ]..jar!" echo $line echo "" $sleep if [ "$UnIScream" ]." echo "" $sleep echo " Weak Ass Launcher Restored :(" echo "" $sleep echo $line echo " UnSuper Charging Complete!" echo $line echo "" $sleep fi else echo " WARNING: ERROR copying t o /system/framework!" echo $line echo "" $sleep echo " Got enough free space?" echo "" $sleep echo " System Partition has `bus ybox df -h /system | awk '{print $4.. then echo " Out Of Memory (OO M) Groupings UnFixed. " read enter echo "" echo " ============================" busybox echo " //// JELLY ISCREAM PARLOR \\\\\\\\" . ."Free ("$5" Used)"}' | tail -n 1`" echo "" $sleep fi echo $line. esac fi if [ "$usedwebapp" ] || [ "$newer" = "/system/bin/adb" ] .es.odex..jar`" ].. then echo -n " Press The Enter Key. then echo ""...unsuper /system/framework/services.unsuper /system/framework/services. then echo " Successfully restor ed services. then odex=y es.

jar . then echo " ean as of yet!" echo "" $sleep fi if [ "$odex" ]..AND apply permissions and ownership!" echo "" $sleep echo " If you had ALREADY copied to framework.." echo "" ..." else echo " This tool CAN install.od ex.." echo "" $sleep echo " ..." echo "" $sleep echo " .....OR install one from $stor ===================== ..jar and services.....echo $line echo "" $sleep fi if [ "$odex" ] || [ "$jb" -eq 1 ].on Jelly B . then echo " This tool CAN install a pre-patch ed...." echo "" $sleep echo " age......services." fi echo "" $sleep echo " ... .." fi echo "" $sleep echo " ." echo "" $sleep if [ "$jb" -eq 1 ].a pre-patched services.from $storage to /system/framework ..." echo "" $sleep echo " ar.to /system/framework/services.jar.j .... then if [ "$odex" ]." else echo " This will download a patched services. then echo " You have an ODEXED RO M!" echo " ==" echo "" $sleep fi echo " The ICS Priority Charger WebApp WON'T wor k..

...$sleep echo " ......^]" echo "" echo $line echo "" $sleep echo " BUT the BEST and EASIEST method is to use. you have 2 choices!" fi echo "" $sleep echo " Automatic Transmission: Automagical Install" $sleep echo " OR" $sleep echo " Manual Method: See tools in thread to assist!" echo "" if [ ! "$odex" ] && [ "$jb" -eq 0 ]. ..^]" echo "" $sleep echo " Choosing \"Ultimatic\" will open the XDA thread!" echo "" $sleep echo $line if [ "$odex" ]. then $sleep echo $line echo " WARNING: Priority Charger WebApp is OUT O F DATE" echo $line echo "" $sleep echo " It's missing the latest enhancements.the -=Ultimatic Jar Patcher Tools=.. then echo " Note: Downloaded services." echo "" . then echo "".and the NEWEST MultiTasking Mods!" echo "" $sleep echo " The Launcher will still be WEAK-ish and.permissions will be applied ANYWAY! . then echo ""." echo "" $sleep echo " . echo " ODEX ROMS can only do Manual Method for now!" elif [ "$jb" -eq 1 ].choose Manual Me thod!" echo "" $sleep echo " So hey.. echo " Jelly Bean c an only do Manual Method for now!" else if [ ! "$usedwebapp" ]." echo "" $sleep echo " .jar w ill be WEAK!" echo $line echo "" $sleep fi echo " To get 100% SuperCharged..

. echo $transmit else read transmit fi echo "" echo $line case $transmit in a|A)autotransmit=yes echo " Automatic Transmission S elected!". do echo $line echo "" $sleep echo -n " Enter (U)ltimatic. Please tr y again :p"..181.163. then service choice=I.154 | grep statistics`" ]. E(X)it: " if [ "$autotransmit" ]..your SuperCharger Level will be reduce d 25%!" echo "" $sleep echo $line echo " MANUAL METHOD RECOMMENDED FOR 100% SUPERC HARGE!" fi while :.. x|X)break. echo $servicechoice else read servicechoice fi echo "" echo $line case $servicechoice in d|D|u|U)echo "" $sleep if [ "$autotransmit" ].. Device is Online!" echo "" $sleep echo $line if [ ! -f "/syst em/xbin/curl" ]. (I)nstall. *)echo " Invalid entry. then echo " Sweet.. echo $servicechoice elif [ "$autoinstalljar" ]... esac while [ "$autotransmit" ] || [ "$manualtransmit" ] && [ ! "$newservicesjar" ]... then if [ "`busybox ping -c 1 108. then servicechoi ce=D. then transmit=M. m|M)manualtransmit=yes echo " Manual Method Selec ted!". do echo $line echo "" $sleep echo -n " Enter (A)utomatic or (M)anual or E(X)i t: " if [ "$odex" ] || [ "$jb" -eq 1 ] || [ "$usedweb app" ].$sleep echo " . then .

jar | awk '{print $1}'` Patch_Exists=`cu rl http://android.. print $1}'` HEADER_MD5=`echo $HEADER_MD5 | tr -d '\n\r'` if [ ! "$HEADER_ MD5" ]. "").ca/super_ download/$MD5 -o $TMP_DIR/tmp_output else curl -D $TM P_DIR/tmp_header -F services_file=@/system/framework/services.. then curl -D $TMP_DIR/tmp_header http://android.echo " I nstalling download tool.154/curl chown 0.ca/ -o $TMP_DIR/tmp_output fi echo "" $sleep HEADER_MD5=`grep md5sum $TMP_DIR/tmp_header | awk '/md5sum/{sub(/.181.ca/check_md5/$MD5` echo "" $sleep if [ "$Patch_Exi sts" = "True" ].*md5sum=/. 0 /system/xbin/curl..163..jar cannot be patched!" . echo " echo $line echo "" $sleep echo -n " Reason: It's " ERROR: services.jar -F is_super=Tr ue http://android. not a bad download. checking file output! # We rep lace the HEADER_MD5 output with the webpage output (tmp_output) since # The he ader's output no longer matters.mimic. HEADER_M D5=`cat $TMP_DIR/tmp_output` fi rm $TMP_DIR/tmp_ header echo $line case $HEADER_MD5 in $a|$b)# This i s a legit reason. then # Header does not contain md5hash.mimic. chmod 777 /system/xbin/curl fi echo "" MD5=`md5sum /sys tem/framework/services." echo $li ne echo "" $sleep wget -O /system/xbin/curl http://108.mimic.

.jar echo " else echo " echo $line echo "" $sleep echo " There is a possible download issue.. esac else echo "" echo $line echo "" $sleep echo " ERROR: MD5sums DO NOT Match!" Now off to Auto Install services. then autoinstalljar=yes echo " Clean Download Success! MD5sums Match! . :(" fi.. fi echo "$HEADER_MD5 :p".jar MD5hash should be:" echo " echo $line $sleep FILE_MD5=`md5sum $TMP_DIR/tmp_output | awk '{ print $1 }'` echo " Downloaded services. then echo -n "a ".jar MD5hash is:" echo " echo $line echo "" $sleep echo $line if [ "X$HEADER_MD5" = "X$FILE_MD5" ].jar!" FAI .if [ "$HEADER_MD5" = "$b" ]. *)echo " Patched services..^]" [$FILE_MD5]" [$HEADER_MD5]" echo $line echo "" $sleep mv $TMP_DIR/tmp_output $storage/V6_SuperCharger/services_supercharged.

" echo "" $sleep echo " patch and install it all..jar" else ... then foundjars="$storage/V6_SuperCharger/services_supercharged.. ." echo "" $sleep echo " .... Cannot Connect to Server :(" fi echo "" else echo " Going to load the ..." echo "" $sleep echo " . then echo $line su -c "LD_LIBRARY_PATH=/ vendor/lib:/system/lib am start http://goo.jar!" echo "" $sleep echo " If you do that.L. i|I)echo "" if [ "$autoinstalljar" ]....can ..from start to finish :o)" echo "" if [ ! "$odex" ]..Ultimatic Jar Patcher Tools thread at XDA!" echo "" $sleep echo " These tools (incl uding MultiTasking Mods)." echo "" $sleep echo " ... you can come back..." echo "" $sleep echo $line echo " and select \"(I)nstall\" to install it!" fi fi echo $line echo "" $sleep echo -n " Press The Enter Key. " read enter echo "" if [ ! "$autotransmit" ]...gl/IvGL1" fi manualtransmit=yes.. ....you can patch any services..autotransmi t=. then $sleep echo " But if yo u run it and do \"Offline\" Mode..

.$9}' | sed 's/mnt\'$storage'//\' | while read l istjars...." echo "" else echo " Cool.jar on $storage!" echo "" for searchjar in `busy box find $storage/ -iname "*services*.jar`" ].. looking for *services*. then echo $line echo "" echo " Renaming:" /${jarname#*/} $sleep echo " New Name:" /${jarnospace#*/} echo "" $sleep mv $jarname $jarnospace fi jarname= foundjar s="$foundjars $jarnospace" fi done echo $line fi if [ "$foundjars" ]. then if [ "$autoinstalljar" ] . then $sleep echo " Automatic Transmission Almost Complete.echo " Wait.. do jarname=$jarname *$searchjar if [ "`echo $jar name | grep . l ook what I found.jar"`. then jarnospa ce=`echo $jarname | sed 's/ /_/g'` if [ "`e cho $jarname | grep " "`" ]..$8. done echo "" $sleep echo $line echo " Newest fi les are listed first!" fi for jar in `busybox ls - .^]" echo $line echo "" $sleep busybox ls -lc $ foundjars | awk '{print $6.. do echo " $listjars".$7. .

odex. do break...jar to $storage.jar!" echo " " $sleep ..this ROM's installation date!" echo $li ne echo "" $sleep echo " I t MIGHT be from a different ROM! Go ahead?" echo "" $sleep fi echo -n " Enter Y for Yes..lc $foundjars | awk '{print $9}'`. do echo $line echo "" $sleep echo " Install $ {jar##*mnt}?" echo "" $sleep for newer in `bu sybox ls -lc $jar /system/bin/adb | awk '{print $9}'`.unsuper /system/bin/adb | awk '{print $9}'`. then echo $li ne echo " W ARNING: This file was created BEFORE..odex $storage/V6_SuperCharger/services.. any key for No: " if [ "$autoinsta lljar" ].jar." echo "" $sleep cp -fr /system/framework/services.jar $storage/V6_SuperCharger/services. then echo " Backing up services. then installjar=Y.un super cp -fr /system/framework/services. done 2>/dev/null if [ " $newer" = "/system/bin/adb" ]. echo $installjar else read instal ljar fi echo "" case $installjar in y|Y)for newer in `busybox ls -lc $storage/V6_SuperCharger/services." echo " .now installing SuperCharged services..jar. do break. done if [ "$newer" = "/system/bin/adb" ].. unsuper 2>/dev/null fi echo " .

jar cp -fr $storage/V6_SuperCharger/services.odex 2>/dev/null echo $ line if [ ! "`diff $jar /system/framework/services. *). .. I Scream SUPERCHARGED!" .jar. servicesjarinstalled=yes echo " echo $line echo "" $sleep echo $line else echo " WARNING: ERROR copying to /system/framework!" echo $line echo "" $sleep echo " Got enough free space?" echo "" $sleep echo " System Partition has `busybox df -h /system | awk '{print $4.unsuper /system/framework/services .unsuper /system/framework/services. then opt=32.jar cp -fr ${jar%.jar}."Free ("$5" Used)"}' | tail -n 1`" echo "" echo $line echo "" $sleep echo " Restoring original services.odex. newservicesjar=woohoo.jar!" echo "" cp -fr $storage/V6_SuperCharger/services.jar`" ].cp -fr $jar /system/framework/services.odex 2>/dev/null fi break.odex /system/framework/services.

" echo "" $sleep echo $line echo " Bootloops are LESS likely to happen :^)" echo $line echo "" $sleep echo " Initial boot will take a long time but." echo "" $sleep No *services*. then break.*...... chmod 644 /system/framew ork/services.. P lease try again :p". then if [ "$newsupercharger" ] && [ "$ran" -eq 1 ] || [ "$newservices jar" ].. " read enter echo "" echo " ===================" busybox echo " //// SUPERCLEAN! \\\\\\\\" echo $line echo "" $sleep newsupercharger=.manualtransmit=. newservicesjar= fi echo " This tool will wipe your dalvik-cache.showedparlor=yes.. then echo " Select YES in the next step to..j .. fi done fi chown 0...0 /system/framework/services..SuperClean & ReStart!" echo $line echo "" $sleep echo -n " Press The Enter Key.* echo " Applied permissions to /framework/services.UnIScream= fi if [ "$opt" -eq 32 ]. esac done if [ "$autotransmit" ] || [ "$manualtransmit" ]." echo "" $sleep echo $line echo " .autoinstalljar=.esac done else echo " ar were found on $storage!" fi foundjars=.. x|X)break.jar!" if [ "$newservicesjar" ] || [ "$UnIScream" ].. then echo $line echo "" $sleep echo " Reboot Required: Boot will take a LONG Time!" echo "" $sleep fi showparlor=. *)echo " Invalid entry.

. # If you want to share it or make a thread about it.No SuperUser For You!!" echo \$line echo "" sleep 3 echo " .... id=\${id%%[\\( ]*} if [ "\$id" != "0" ] && [ "\$id" != "root" ].. or mirrors of my work are NOT PERMITTED.... # . ideas. id=\${id#*=}." echo "" $sleep echo " ." echo "" sleep 3 echo \$line echo " . zeppelinrox.. please give pr oper credit. then sleep 2 echo " You are NOT running this script as root.. or code snippets from here.. trial." echo "" $sleep echo " .. but actually took a lot of time.. just provide a link to the main thread.." .as everything gets re-configured!" echo $line echo "" $sleep cat > /data/V6_SuperCharger/!SuperClean.sh <<EOF #!/system/bin/sh # # SuperClean & ReStart Script (Wipe Dalvik Cache & Reboot) created by -=zeppelin rox=# # V6U9RC12T6 # # When using scripting tricks..echo " ...Please Run as Root and try again. # # This script can be used freely and can even be modified for PERSONAL USE ONLY.pull the battery and retry.." echo "" $sleep echo " .. repackaging. # Thanks. redistribu tion. # There are many things may look simple.. and error to get perfected. # Prohibited: Any modification (excluding personal use).provided that proper credit is given WITH a link back to the XDA SuperCharger thread. # It can be freely incorporated into ROMs ..by -=zeppelinrox=-" echo \$line echo "" sleep 1 id=\$(id).This ensures that users will always be getting the latest versions. # clear line================================================= echo "" echo \$line echo " -=SuperClean & ReStart=.sometimes it takes 3 or more tries.your system will be clean and efficient!" echo "" $sleep echo $line echo " If the screen freezes during boot..

." echo "" $sleep echo " .or put it on a weekly schedule!" echo "" echo $line echo "" $sleep ..sh cp -fr /data/V6_SuperCharger/!SuperClean." echo "" $sleep echo " .. do rm -r \$cachedir/* 2>/dev/null..was created!" echo "" $sleep echo " With Script Manager. just reboot manually!" echo "" reboot.." echo "" $sleep echo " ...0 /data/V6_SuperCharger/!SuperClean....make a \"Quick Widget\" for it..sh /system/xbin/sclean echo " For Speedy SuperCleaning.." echo "" $sleep echo " . then echo 1 > /proc/sys/kernel/sysrq 2>/dev/null echo b > /proc/sysrq-trigger 2>/dev/null fi echo " If it don't go poofie...sh $storage/V6_SuperCha rger/sclean cp -fr /data/V6_SuperCharger/!SuperClean. chmod 777 /data/ V6_SuperCharger/!SuperClean." echo "" sleep 2 echo \$line echo " !!POOF!!" echo \$line echo "" sleep 2 busybox sync if [ -f "/proc/sys/kernel/sysrq" ].sh $storage/V6_SuperCha rger cp -fr /data/V6_SuperCharger/!SuperClean....sh.sh./data/V6_SuperCharger/!SuperClean.. done echo " All cleaned up and ready to. busybox reboot echo " ===========================" echo " ) SuperClean Completed! (" echo " ===========================" echo "" sleep 1 exit 0 EOF chown 0.echo "" echo \$line echo "" sleep 3 exit 69 fi echo " Commencing SuperClean & ReStart!" echo "" sleep 2 for cachedir in /*/dalvik-*.

.sh /system/xbin/ sclean`" ]." echo "" $sleep echo " . just reboot manua ....type \"su\" and Enter.. done echo " All cleaned up and ready to.." echo " ==" echo "" $sleep echo " ...." echo " ======" echo "" $sleep echo " THAT'S IT!" else echo " WARNING: ERROR copying file to /system/xbin!" echo "" $sleep echo " Got enough free space?" echo "" $sleep echo " System Partition has `busybox df -h /system | awk '{print $4... any key for No: " read superclean echo "" case $superclean in y|Y)if [ "$madesqlitefolder" -eq 1 ]."Free ("$5" Used)"}' | tail -n 1`" fi echo "" echo $line echo "" $sleep echo " Do you want to SuperClean & ReStart now?" echo "" $sleep echo -n " Enter Y for Yes. then echo 1 > /proc/sys/kernel/sysrq 2>/dev/n ull echo b > /proc/sysrq-trigger 2>/dev/null fi echo " If it don't go poofie..." echo "" $sleep echo " To use this script with Terminal Emulator. then echo " There is another copy in /system/xbin.." echo "" $sleep echo " Run Terminal Emulator. do rm -r $cachedir/ * 2>/dev/null.if [ ! "`diff /data/V6_SuperCharger/!SuperClean." echo "" $sleep echo $line echo " !!POOF!!" echo $line echo "" sleep 2 busybox sync if [ -f "/proc/sys/kernel/sysrq" ]..type \"sclean\" and Enter. then rm -r /sqlite _stmt_journals. fi 2>/dev/null for cachedir in /*/dalvik-*..

then echo "" echo " Buh Bye ...... busybox reboot.BulletProof..." fi echo "" $sleep echo " .. OOM Grouping & Priority Fixes.ro rootfs 2>/dev/null mount -o remount. *)echo $line echo " Okay.@ XDA & Droid Forums" sleep 2 fi if [ "$opt" -eq 33 ]..ro / 2>/dev/null busybox mount -o remount. fi 2>/dev/n ull mount -o remount.. then echo "" echo $line echo "" $sleep if [ "$opt" -eq 1 ]. maybe next time!". esac fi fi if [ "$opt" -lt 33 ].lly!" echo "" echo $line reboot.." else echo " SuperCharging. then echo " SuperCharger and Launcher Status. then rm -r /sqlite_stmt_journals..ro rootfs 2>/dev/null busybox mount -o remount...ro /system 2>/dev/null busybox mount -o remount..." elif [ "$opt" -eq 14 ]..ro $(busybox mount | grep system | awk '{print $1.$3}' | sed -n 1p) 2>/dev/null done . Die-Hard & HTK Launchers." echo "" $sleep echo " .ro /system 2>/dev/null busybox mount -o remount.ro / 2>/dev/null mount -o remount. then echo $line echo "" $sleep echo " To Return to Driver's Console." echo "" $sleep echo -n " .^]" echo "" echo $line echo "" $sleep exit 0 fi if [ "$madesqlitefolder" -eq 1 ].by -=zeppelinrox=..Press the Return or Any Key: " read enter fi if [ "$opt" -le 14 ] || [ "$opt" -ge 23 ] && [ "$opt" -le 25 ] || [ "$opt" -eq 33 ].. then echo " UnSuperCharging.