V6 SuperCharger for Android-Update9 RC12 Test 6.Sh

download V6 SuperCharger for Android-Update9 RC12 Test 6.Sh

If you can't read please download the document

Transcript of V6 SuperCharger for Android-Update9 RC12 Test 6.Sh

#!/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/nullmount -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 kernel.random.read_wakeup_threshold
Entropy-ness Enlarger Musings... - Possible re asons why it may actually do something :p

Patching services.jar/odex for ALL ROMS:: It actually has 3 Mods. See the -=Ultimatic Jar Patcher Tools=- thread .
Mod 1. "Jelly ISCream" for ICS, Jelly Bean and above. This will SuperCharge Your Home Launcher and ADJ/OOM Priorities!
Mod 2. "Maximum MultiTasking Mods" for Froyo and above
Mod 3. "Non-Sense App Limit" for Sense 4 and above (Not needed for Sense 3.6 and below).

Ok... now be sure to have BusyBox installed or else the scripts won't wo rk!
Most custom roms should already have a version installed and that usually worksOK.
So if you need to, only install BusyBox v1.16.2 or higher!
Note that some versions above v1.18.2 and below v1.19.1 sometimes give errors so PAY ATTENTION to the script output!
Versions above v1.19.0 should be fine though.
If all else fails or if you get "applet not found" errors, just grab Busy Box from the V6 SuperCharger Thread!
Or even better, get the SuperCharger Starter Kit!
A nice app for running the script is Script Manager
It can even load scripts on boot - on ANY ROM!
Plus, it even has WIDGETS!
So you can actually put a V6 SuperCharger shortcut on your desktop, launch it, a nd have a quick peek at your current status!

But first, you need to set up Script Manager properly!
In the "Config" settings, enable "Browse as Root."
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!
Do NOT run this file at boot! (You don't want to run the install on every boot, do you?)
Run the V6 SuperCharger script, touch the screen to access the soft keyboard, an d enter your choice :)

Stock ROMs: After running the script, have Script Manager load the newly created /data/99SuperCharger.sh on boot
In the "Config" settings, be sure that "Browse as Root" is enabled.
Press the menu key and then Browser. Navigate up to the root, then click on the "data" folder.
Click on 99SuperCharger.sh and select "Script" from the "Open As" menu.
In the properties dialogue box, check "Run as root" (SuperUser) and "Run at boot " and "Save".
And that's it!
Script Manager will load your most recent settings on boot!
If you run the script later and with different settings, you don't have to recon figure anything.
Script Manager will just load the new /data/99SuperCharger.sh on boot automagica lly ;^]

Custom ROMs: If you have a custom rom that loads /system/etc/init. d boot scripts,
You DON'T need to use Script Manager to load a boot script. It will all be autom atic!
Also, if you can run boot scripts from the /system/etc/init.d folder, there are other options.
For example you can use an app like Terminal Emulator to run the script.
PRE-ICS ROMS: If your ROM has the option, DISABLE "Lock Home In Memory . This takes effect immediately.
Alternately, if you need to free up extra ram, you can use "Lock Home in Memory" as a "Saftey Lock".
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 ;)

If Settings Don't Stick: If you have Auto Memory Manager, DISABLE SuperUser permissions and if you have AutoKiller Memory Optimizer, DISABLE the a pply settings at boot option!
Also, if you have a Custom ROM, there might be something in the init.d fo lder that interferes with priorities and minfrees.
If you can't find the problem, a quick fix is to have Script Manager run /sys tem/etc/init.d/*99SuperCharger "at boot" and "as root."

Another option is to make a Script Manager widget for /system/etc/init.d/*99S uperCharger or /data/99SuperCharger.sh on your homescreen and simply launch it after each reboot.

For those with a Milestone, I made a version for Androidiani Open Reco very too :D
Just extract the zip to the root of $storage (it contains the directory structur e), load AOR, and there will be a SuperCharger Menu on the main screen!

For more SuperCharging help and info,
See the -=V6 SuperCharger Thread=-
Feedback is Welcome!

-=zeppelinrox=- @ XDA & Droid Forums

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. Not running as root...?" sleep 1 echo " 2. Busybox isn't installed...?" sleep 1 echo " 3. Busybox can't mount as r/w for some reason." echo "" sleep 2 echo $line fi if [ "$madesqlitefolder" -eq 1 ]; then rm -r /sqlite_stmt_journals; fi 2>/dev/nu ll mount -o remount,ro / 2>/dev/null mount -o remount,ro rootfs 2>/dev/null busybox mount -o remount,ro / 2>/dev/null busybox mount -o remount,ro rootfs 2>/dev/null echo " Test Driving Your Android Device..." echo $line echo "" sleep 1 if [ ! "`which busybox`" ]; then FAIL=yes echo " BusyBox NOT FOUND..." echo "" sleep 4 echo $line echo " ...No Supe For You!!" echo $line echo "" sleep 4 echo " If you continue, problems can occur..."echo "" sleep 4 echo " ...and even bootloops!" echo "" sleep 4 echo " ...Please install BusyBox and try again..." 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.gl/qM 6yR" echo "" echo $line echo "" sleep 4 echo " I hope that helped! :^)" echo "" sleep 4 echo " Continue anyway...?" echo "" sleep 2 echo -n " Enter Y for Yes, any key for No: " read bbnotfound echo "" case $bbnotfound in y|Y)echo " uh... right... okay..." echo "" echo $line echo "" sleep 2;; *)echo " Buh Bye..." echo "" exit 69;; esac else if [ ! "`which awk`" ]; then badbb=yes; echo " WARNING: awk applet NOT F OUND... Bad BusyBox!"; echo $line; sleep 2; fi if [ ! "`which sed`" ]; then badbb=yes; echo " WARNING: sed applet NOT F OUND... Bad BusyBox!"; echo $line; sleep 2; fi if [ ! "`which head`" ]; then badbb=yes; echo " WARNING: head applet NOT FOUND... Bad BusyBox!"; echo $line; sleep 2; fi if [ ! "`which pgrep`" ]; then badbb=yes; echo " WARNING: pgrep applet N OT FOUND... Bad BusyBox!"; echo $line; sleep 2; fi if [ "$badbb" ]; then FAIL=yes echo "" echo " Your BusyBox is an EPIC FAIL... :p" echo "" sleep 4 echo " It's version does NOT even matter because..." echo "" sleep 4 echo $line echo " It's MISSING basic applets and functions!" echo $line echo "" sleep 4echo " If you continue, problems can occur..." echo "" sleep 4 echo " ...and even bootloops!" echo "" sleep 4 echo " ...Please reinstall BusyBox and try again..." 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.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,2000,3000,4000,5000,6000 | awk -F , '{printf "%.0f %.0f %.0f %.0f %.0f %.0f\n", $1/256, $2/256, $3/256, $4/256, $5/256, $6/256}'` if [ "$test2" ]; then echo " BusyBox $test2 Found!" else echo " ERROR! Can't determine BusyBox version!"; FAIL=yes fi echo "" sleep 1 if [ "$test1" = "BusyBox" ] && [ "$test3" = "4 8 12 16 20 23" ]; then echo " AWKing Awesome... AWK test passed!" echo "" sleep 1 test4=`pgrep ini` if [ "$test4" ]; then echo " Groovy... pgrep test passe d too!" else FAIL=yes echo " BusyBox has holes in it..." echo "" sleep 4 echo " ...BulletProof Apps ain't gonna work..." echo "" sleep 4 echo $line echo " ...pgrep test FAILED!" echo $line fi else FAIL=yes echo " There was an AWK error..." echo "" sleep 4echo $line echo " ...what the AWK!?" echo $line echo "" sleep 4 if [ "$test3" != "4 8 12 16 20 23" ]; then echo $line echo " It can't even do... SIMPLE math! LOL WUT!?" echo $line echo "" sleep 4 fi echo " If you continue, problems can occur..." echo "" sleep 4 echo " ...and even bootloops!" echo "" sleep 4 echo " ...Please reinstall BusyBox and try again..." 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.gl/qM6yR" echo "" echo $line echo "" sleep 4 echo " I hope that helped! :^)" echo "" sleep 4 echo " Continue anyway...?" echo "" sleep 2 echo -n " Enter Y for Yes, any key for No: " read awkerror echo "" case $awkerror in y|Y)echo " uh... right... okay..." echo "" echo $line;; *)echo " Buh Bye..." echo "" exit 69;; esac fi echo "" sleep 1 fi id=$(id); id=${id#*=}; id=${id%%[\( ]*} if [ "$id" = "0" ] || [ "$id" = "root" ]; then echo " g as Root/SuperUser!" else Nice! You're RunninFAIL=yes echo $line echo " You are NOT running this script as root..." echo $line echo "" sleep 4 echo $line echo " ...No SuperUser For You!!" echo $line echo "" sleep 4 echo " ...Please Run as Root and try again..." echo "" sleep 4 echo " Loading Owner's Guide..." echo "" echo $line echo "" sleep 4 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 4 echo " I hope that helped! :^)" echo "" sleep 4 exit 69 fi echo "" sleep 1 echo $line echo -n " Test Drive Report: " if [ "$FAIL" ]; then echo "FAIL!" else echo "PASS!" fi echo $line echo "" sleep 2 if [ "`busybox ps -w`" ]; then w=" -w"; fi 2>/dev/null animspeed="busybox sleep 0.2" smrun=`pgrep scriptmanager` bbversion=`busybox | head -n 1 | awk '{print $1,$2}'` ram=$((`free | awk '{ print $2 }' | sed -n 2p`/1024)) opt=0;ran=0;gb=0;preics=yes;jb=0;memory=c;a=already_modified;b=bad_jar;ram1=9600 ;oomstick=0;ADJs=0;OOMs=0;minfrees=0 heapsize=$(($ram*16/100)) remainder=$(($heapsize%2)) heapsize=$(($heapsize+$remainder)) if [ "$ram" -lt 512 ]; then sdtweak=1024 else sdtweak=2048 fi TMP_DIR="$storage/V6_SuperCharger/temp" initrcpath1="/init.rc" initrcpath="/data$initrcpath1" initrcbackup=$initrcpath.unsuper LIMIT1=0;LIMIT2=3;LIMIT3=6;LIMIT4=10;LIMIT5=12;LIMIT6=15 newscadj="$LIMIT1,$LIMIT2,$LIMIT3,$LIMIT4,$LIMIT5,$LIMIT6";oldscadj1="0,3,5,7,14,15";oldscadj2="0,2,4,7,14,15";oldscadj3="0,3,6,10,14,15";oldscadj4="0,4,8,12,14 ,15";scamadj1="0,2,5,7,14,15";scamadj2="0,1,2,4,6,15" minfreefile="/sys/module/lowmemorykiller/parameters/minfree" if [ -f "/sys/module/lowmemorykiller/parameters/adj" ]; then adjfile="/sys/modul e/lowmemorykiller/parameters/adj" elif [ -f "/data/V6_SuperCharger/SuperChargerAdj" ]; then adjfile="/data/V6_Supe rCharger/SuperChargerAdj" fi if [ -f "/proc/1/oom_adj" ]; then oom_adj="oom_adj" elif [ -f "/proc/1/oom_score_adj" ]; then oom_adj="oom_score_adj" fi if [ -f "/data/V6_SuperCharger/SuperChargerMinfree" ]; then cp -fr /data/V6_SuperCharger/SuperChargerMinfree /data/V6_SuperCharger/S uperChargerMinfreeOld scminfreeold=`cat /data/V6_SuperCharger/SuperChargerMinfreeOld` fi 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 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 if [ ! -d "/data/V6_SuperCharger" ]; then mkdir /data/V6_SuperCharger; fi if [ ! -d "$storage/V6_SuperCharger" ]; then mkdir $storage/V6_SuperCharger; fi for rc in `grep import $initrcpath1 | grep -v "#" | sed 's/.*import*.//'` `busyb ox find /system -iname "*.rc"`; do if [ "`echo $rc | grep -Ev "goldfish|ueventd"`" ] && [ ! "`echo $allrcpa ths | grep $rc`" ]; then if [ ! -f "$rc" ]; then echo "on early-boot" > $rc echo "on boot" > $rc touch $rc.unsuper fi chown 0.0 $rc; chmod 644 $rc allrcpaths="$allrcpaths $rc" if [ "`grep -ls "on boot" $rc`" ]; then rcpaths="$rcpaths $rc"; fi fi done mount -o remount,ro / 2>/dev/null mount -o remount,ro rootfs 2>/dev/null busybox mount -o remount,ro / 2>/dev/null busybox mount -o remount,ro rootfs 2>/dev/null 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 if [ -f "/data/V6_SuperCharger/SuperChargerOptions" ]; then speed=`awk -F , '{print $1}' /data/V6_SuperCharger/SuperChargerOptions` buildprop=`awk -F , '{print $2}' /data/V6_SuperCharger/SuperChargerOptio ns` animation=`awk -F , '{print $3}' /data/V6_SuperCharger/SuperChargerOptio ns` initrc=`awk -F , '{print $4}' /data/V6_SuperCharger/SuperChargerOptions` launcheradj=`awk -F , '{print $5}' /data/V6_SuperCharger/SuperChargerOpt ions` panicmode=`awk -F , '{print $6}' /data/V6_SuperCharger/SuperChargerOptio ns`fixalign=`awk -F , '{print $7}' /data/V6_SuperCharger/SuperChargerOption s` zepalign=`awk -F , '{print $8}' /data/V6_SuperCharger/SuperChargerOption s` fixemissions=`awk -F , '{print $9}' /data/V6_SuperCharger/SuperChargerOp tions` detailing=`awk -F , '{print $10}' /data/V6_SuperCharger/SuperChargerOpti ons` detailinterval=`awk -F , '{print $11}' /data/V6_SuperCharger/SuperCharge rOptions` miscsd=`awk -F , '{print $12}' /data/V6_SuperCharger/SuperChargerOptions ` tc3g=`awk -F , '{print $13}' /data/V6_SuperCharger/SuperChargerOptions` flushOmaticHours=`grep "^flushOmaticHours=" /data/V6_SuperCharger/!FastE ngineFlush.sh | sed 's/flushOmaticHours=//'` 2>/dev/null sleep="sleep $speed" if [ "$buildprop" -eq 1 ]; then prop="/system/build.prop" else prop="/data/local.prop" fi if [ ! "$detailinterval" ] || [ "`echo $detailinterval | grep "[^0-9]"`" ] || [ "$detailinterval" -gt 9 ]; then detailinterval=3; fi if [ ! "$flushOmaticHours" ] || [ "`echo $flushOmaticHours | grep "[^0-9 ]"`" ] || [ "$flushOmaticHours" -gt 24 ]; then flushOmaticHours=0; fi if [ ! "$tc3g" ]; then missingoptions=yes; animation=1; fi else firstgear=yes; autoshowcalculated=yes; sleep="sleep 2" fi if [ ! "$animation" ] || [ "$animation" -eq 1 ]; then clear;$animspeed;echo $line;echo "";echo "";echo "";echo "";echo "";echo ""; echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo $line;echo "";echo "";echo "";echo "";echo "";echo "" ; echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo $line;echo $line;echo "";echo "";echo "";echo "";echo ""; echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo $line;echo "";echo $line;echo "";echo "";echo "";echo ""; echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo $line;echo " |/ #####";echo "";echo $line;echo " ";echo "";echo ""; echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo $line;echo " | / # #";echo " |/ #####";ec ho "";echo $line;echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo $line;echo " ||// # #";echo " | / # #"; echo " |/ #####";echo "";echo $line;echo "";echo "";echo "";echo "";echo "" ;$animspeed clear;echo "";echo $line;echo " || // #####";echo " ||// # #" ;echo " | / # #";echo " |/ #####";echo "";echo $line;echo "";echo "" ;echo "";echo "";$animspeed clear;echo "";echo $line;echo " || // #";echo " || // #####";ec ho " ||// # #";echo " | / # #";echo " |/ #####";echo "";echo $line;echo "";echo "";echo "";$animspeed clear;echo "";echo $line;echo " || // # #" ;echo " || // # ";echo " || // #####";echo " ||// # #";echo " | / # #";echo " |/ #####";echo "";echo $line;echo "";echo "";$animspeed clear;echo "";echo $line;echo " || // #####";echo " || // # #";echo " || // #";echo " || // #####";echo " ||// # #";echo " | / # #";echo " |/ #####";echo "";echo $line;echo "";$animspeed clear;echo "";echo $line;echo "";echo " || // #####";echo " || // # #";echo " || // #";echo " || // #####";echo " ||// # #";echo " | / # #";echo " |/ #####";echo "";echo $line;sleep 1 clear;echo "";echo $line;echo "";echo " || // #####";echo " || // # #";echo " || // # -=SUPERCHARGER=-";echo " || // #####";echo " ||// # #";echo " | / # #";echo " |/ #####";echo"";echo $line;sleep 1 clear;echo " zoom...";echo $line;echo "";echo " || // #####";echo " || // # #";echo " || // # -=SUPERCHARGER=-";echo " || // #####";echo " ||// # #";echo " | / # # Presented";echo " |/ #####";echo "";echo $line;sleep 1 clear;echo " zoOM... zoOM...";echo $line;echo "";echo " || // ### ##";echo " || // # #";echo " || // # -=SUPERCHARGER=-";e cho " || // #####";echo " ||// # #";echo " | / # # Presented by:";echo " |/ #####";echo "";echo $line;sleep 1 clear;echo " zOOM... zOOM...";echo $line;echo "";echo " || // ### ##";echo " || // # #";echo " || // # -=SUPERCHARGER=-";e cho " || // #####";echo " ||// # #";echo " | / # # Presented by:";echo " |/ ##### -=zeppelinrox=-";echo "";echo $line;sl eep 1 else clear; echo ""; echo $line fi echo " NOTE: BUSYBOX v1.16.2 OR HIGHER IS RECOMMENDED!" echo $line echo "" sleep 2 if [ "$smrun" ]; then echo " Touch the screen to bring up soft keyboard" else echo " Try Script Manager... 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,$4,$5,$6,$7,$8,$9,$10}'`" echo "" $sleep if [ "$bbversion" \> "BusyBox v1.16.1" ] && [ "$bbversion" \< "BusyBox v1.18.3" ] || [ "$bbversion" \> "BusyBox v1.18.9" ]; then echo " ...which is fi ne - if it's COMPLETE!" else echo $line echo -n " WARNING! Your BusyBox is " if [ "$bbversion" \> "BusyBox v1.18.2" ] && [ "$bbversion" \< "BusyBox v 1.19.0" ]; then echo "greater than v1.18.2" echo "" sleep 2 echo " ...and less that v1.19.0!" echo $line echo "" sleep 2 echo " These versions can cause problems..." else echo "less than v1.16.2" echo $line echo "" sleep 2 echo " Some commands may not even work..." fi echo "" sleep 2 echo " ..and you may have issues such as bootloops..."echo "" sleep 2 echo " ...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.gl/qM 6yR" fi echo "" homeadj=`getprop ro.HOME_APP_ADJ`;FA=`getprop ro.FOREGROUND_APP_ADJ`;PA=`getprop ro.PERCEPTIBLE_APP_ADJ`;VA=`getprop ro.VISIBLE_APP_ADJ` api="`grep ro.build.version.sdk /system/build.prop | sed 's/.*=//' | tr -d '\r'` " if [ "$api" -ge 14 ]; then postics=yes;preics=;FA=0;PA=2 if [ "$api" -ge 16 ]; then jb=1; fi elif [ "$PA" ]; then gb=1 fi adjs1=0; adjs3=0; adjs5=0; adjs6=0; adjs7=0 for launchers in `grep set.*/*.Launcher /d*/system/packages.xml | sed 's/\/*.L.* //' | sed 's/.*="//'` `grep "^/dev/null if [ "$allrcpaths" ]; then echo "" echo " STOCK ROMS will benefit most from Services..." echo " ...since those builds have no init.d support!" echo ""if [ "$scservice" ] || [ "$bpservice" ] || [ ! "$scminfree" ]; then echo $line echo -n " SuperCharger Service is " if [ "$scservice" ]; then echo "Installed!" else echo "NOT Installed!" fi echo $line echo -n " BulletProof Apps Service is " if [ "$bpservice" ]; then echo "Installed!" else echo "NOT Installed!" fi else if [ "$minfrees" -eq 0 ]; then echo $line; fi echo " Sorry, your ROM wipes service entries on boot." if [ "$minfrees" -eq 1 ]; 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.d/*BulletProof_Apps*`" ] && [ ! -f "/data/97Bul letProof_Apps.sh" ]; then echo " BulletProof Apps Script is NOT Installed!" elif [ "`busybox ps$w | grep Bullet | grep Proof`" ]; then for i in `busybox ps$w | grep Bullet`; do if [ "`echo $i | grep Effect`" ]; then echo " $i"; ech o $line elif [ "`echo $i | grep init.d`" ]; then echo " `echo $i | sed ' s/.*etc//'` is Running!"; echo $line elif [ "`echo $i | grep data`" ]; then echo "$i is Running!"; ec ho $line fi done ldone=yes elif [ "`ls /system/etc/init.d/*BulletProof_Apps*`" ]; then echo " `ls /system/ etc/init.d/*BulletProof_Apps* | sed 's/.*etc//'` is NOT Running!" else echo "/data/97BulletProof_Apps.sh is NOT Running!" fi 2>/dev/null if [ "$ldone" ]; then ldone= else echo $line fi if [ ! -f "/system/xbin/flush" ] && [ ! -f "/data/V6_SuperCharger/!FastEngineFl ush.sh" ]; then echo " Fast Engine Flush is NOT Installed!" elif [ "$flushOmaticHours" -eq 0 ]; then echo " Engine Flush-O-Matic is N OT Enabled!" elif [ "`busybox ps$w | grep -i flush | grep -E "_|/"`" ]; then for i in `busybox ps$w | grep -i flush | grep -E "_|/"`; do if [ "`echo $i | grep Effect`" ]; then echo " $i"; echo $l ine elif [ "`echo $i | grep xbin`" ]; then echo " $i is Runn ing!"; echo $line elif [ "`echo $i | grep data`" ]; then echo " `echo $i | sed 's/.*SuperCharger\///'` is Running!"; 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!"fi 2>/dev/null if [ "$ldone" ]; then ldone= else echo $line fi echo -n " Nitro Lag Nullifier is " if [ "`grep Nullifier /system/build.prop`" ]; then echo "Installed!" else echo "NOT Installed!" fi echo $line if [ `cat /proc/sys/kernel/random/entropy_avail` -gt 1000 ]; 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" ]; 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" ]; then echo " In Config, select Run as Root & Browse as Root!" echo " But DO NOT run this script at boot!" echo "" echo " For a quick status check..." echo " ...put a V6 SuperCharger WIDGET on the desktop!" else echo " Optimized for display with Script Manager." echo "" echo " SM can give you a quick status check..." echo " ...Put a V6 SuperCharger WIDGET on the desktop!" echo " ...Try it! ;^]" 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));ramcached=$(($ramkbytescached/1024));ramreport edfree=$(($ramfree + $ramcached)) echo " True Free $ramfree MB = \"Free\" $ramreportedfree - Cached Apps $ramcach ed" echo $line echo " SuperCharger Level: $scpercent% SuperCharged!" echo $line if [ "$scpercent" -eq 0 ] && [ "$rookie" ]; then echo " Hey Rookie! SCROLL UP to see the Menu Options!" echo $line elif [ "$ran" -eq 1 ] && [ "$scpercent" -lt 90 ]; then echo " Did it work? READ ABOVE MESSAGES AFTER REBOOT!" echo $line elif [ "$scpercent" -lt 100 ]; then if [ "$ADJs" -eq 0 ]; then echo " Lose 25% - ADJ Entries NOT Found / NOT Patched"; fi if [ "$oomstick" -eq 0 ]; then echo " Lose 25% - SuperCharged Launcher N OT In Effect"; fi if [ "$OOMs" -eq 0 ]; then echo " Lose 25% - OOM Grouping Fix(adj) NOT I n Effect"; fi if [ "$minfrees" -eq 0 ]; then echo " Lose 25% - SuperCharger Minfrees NOT In Effect"; fi if [ "$usedwebapp" ]; then echo $line; echo " OUTDATED Web App Pat ch Is In Effect"; fi echo $line fi $sleep if [ ! "$didsomething" ] && [ ! "$missingoptions" ] && [ ! "$newsupercharger" ] && [ "$scminfree" ] && [ "$currentminfree" != "$scminfree" ]; then if [ -d "/system/etc/init.d" ] && [ "`ls /system/etc/init.d/*SuperCharge r*`" ] || [ ! -d "/system/etc/init.d" ]; then echo "" echo " Values DON'T MATCH... Read The Owner's Guide!" echo "" echo $line echo "" $sleep su -c "LD_LIBRARY_PATH=/vendor/lib:/system/lib am start -a andro id.intent.action.VIEW -n com.android.browser/.BrowserActivity -d file://$storage /!SuperCharger.html" 2>/dev/null echo "" echo $line fi 2>/dev/null fi echo -n " Please Enter Option [1 - 33]: " if [ "$autoresupercharge" ]; then opt=24; echo $opt elif [ "$firstgear" ] || [ "$missingoptions" ]; then opt=29; echo $opt elif [ "$autoshowcalculated" ] && [ "$currentminfree" != "$calculatedminfree" ] ; then opt=10; echo $opt elif [ "$postics" ] && [ "$scadj" ] && [ "$showparlor" ]; then opt=25; 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 ]; then didsomethin g=yes 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 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 if [ -d "/sqlite_stmt_journals" ]; then madesqlitefolder=0 else mkdir /sqlite_stmt_journals; madesqlitefolder=1 fi if [ "$opt" -ne 14 ]; then if [ ! "`grep "SuperCharger Installation" /system/build.prop`" ] ; then echo "# SuperCharger Installation Marker." >> /system/build.prop; fi if [ ! -d "/data/V6_SuperCharger" ]; then mkdir /data/V6_SuperCh arger; fi if [ ! -d "/data/V6_SuperCharger/PowerShift_Scripts" ]; then mkd ir /data/V6_SuperCharger/PowerShift_Scripts; fi if [ ! -d "/data/V6_SuperCharger/BulletProof_One_Shots" ]; then mkdir /data/V6_SuperCharger/BulletProof_One_Shots; fiif [ ! -d "$storage/V6_SuperCharger" ]; then mkdir $storage/V6_S uperCharger; fi if [ ! -d "$storage/V6_SuperCharger/PowerShift_Scripts" ]; then mkdir $storage/V6_SuperCharger/PowerShift_Scripts; fi if [ ! -d "$storage/V6_SuperCharger/BulletProof_One_Shots" ]; th en mkdir $storage/V6_SuperCharger/BulletProof_One_Shots; fi if [ ! -d "$storage/V6_SuperCharger/temp" ]; then mkdir $storage /V6_SuperCharger/temp; fi fi fi 2>/dev/null case $opt in 1) echo " V6 SUPERCHARGER AND LAUNCHER STATUS!";; 2) if [ "$preics" ]; then echo " 256HP UNLEDDED MINFREES +" else echo " 256HP UNLEDDED MINFREES SELECTED!" fi CONFIG="256HP UnLedd" MB1=8;MB2=12;MB3=22;MB4=24;MB5=26;MB6=28;; 3) if [ "$preics" ]; then echo " 256HP LEDDED MINFREES +" else echo " 256HP LEDDED MINFREES SELECTED!" fi CONFIG="256HP Ledded" MB1=8;MB2=12;MB3=26;MB4=28;MB5=30;MB6=32;; 4) if [ "$preics" ]; then echo " 256HP SUPER UNLEDDED MINFREES +" else echo " 256HP SUPER UNLEDDED MINFREES SELECTED!" fi CONFIG="256HP Super" MB1=8;MB2=12;MB3=28;MB4=30;MB5=35;MB6=50;; 5) if [ "$preics" ]; then echo " 512HP UNLEDDED MINFREES +" else echo " 512HP UNLEDDED MINFREES SELECTED!" fi CONFIG="512HP UnLedd" MB1=8;MB2=14;MB3=40;MB4=50;MB5=60;MB6=75;; 6) if [ "$preics" ]; then echo " 512HP LEDDED MINFREES +" else echo " 512HP LEDDED MINFREES SELECTED!" fi CONFIG="512HP Ledded" MB1=8;MB2=14;MB3=55;MB4=70;MB5=85;MB6=100;; 7) if [ "$preics" ]; then echo " 512HP SUPER UNLEDDED MINFREES +" else echo " 512HP SUPER UNLEDDED MINFREES SELECTED!" fi CONFIG="512HP Super" MB1=8;MB2=14;MB3=75;MB4=90;MB5=95;MB6=125;; 8) if [ "$preics" ]; then echo " 768HP SUPER UNLEDDED MINFREES +" else echo " 768HP SUPER UNLEDDED MINFREES SELECTED!" fi if [ "$ram" -le 256 ]; then opt=26 echo $line $sleep echo " WHOA! There's NOT Enough RAM! lulz!" else CONFIG="768HP Super" MB1=8;MB2=16;MB3=150;MB4=165;MB5=180;MB6=200 fi;; 9) if [ "$preics" ]; then echo " 1000HP SUPER UNLEDDED MINFREES +" else echo " 1000HP SUPER UNLEDDED MINFREES SELECTED!" fi if [ "$ram" -le 256 ]; then opt=26 echo $line $sleep echo " WHOA! There's NOT Enough RAM! lulz!"else CONFIG="1000HP Super" MB1=8;MB2=16;MB3=200;MB4=220;MB5=240;MB6=275 fi;; 10)if [ "$preics" ]; 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..." echo "" $sleep echo $currentminfree | awk -F , '{printf " %.0f, %.0f, %. 0f, %.0f, %.0f, %.0f MB\n", $1/256, $2/256, $3/256, $4/256, $5/256, $6/256}' echo "" $sleep echo " Your SuperMinFree Calculator values are..." echo "" $sleep echo " $calculatedmb MB" echo "" if [ "$sccminfree" ]; then $sleep echo " Your Prior Cust-OOMizer values are..." echo "" $sleep echo $sccminfree | awk -F , '{print " "$1/256", "$ 2/256", "$3/256", "$4/256", "$5/256", "$6/256" MB"}' echo "" fi if [ "$scminfreeold" ] && [ "$currentminfree" != "$scminfreeold" ]; the n $sleep echo " Your Prior V6 Minfrees are..." echo "" $sleep echo $scminfreeold | awk -F , '{print " "$1/256", "$2/256", "$3/256", "$4/256", "$5/256", "$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, any key for No: " read crestore echo "" echo $line case $crestore in y|Y)restore=1 MB1=`echo $sccminfree | awk -F , '{print $1/256}'`;MB2 =`echo $sccminfree | awk -F , '{print $2/256}'`;MB3=`echo $sccminfree | awk -F , '{print $3/256}'`;MB4=`echo $sccminfree | awk -F , '{print $4/256}'`;MB5=`echo $sccminfree | awk -F , '{print $5/256}'`;MB6=`echo $sccminfree | awk -F , '{print $6/256}'` echo " *);; Cust-OOMizer Settings will be Restored!";; esac fi if [ "$currentminfree" != "$calculatedminfree" ] && [ "$calculatedminfr ee" != "$scminfree" ] && [ "$restore" -eq 0 ]; then echo "" $sleep echo " Apply SuperMinFree Calculator Settings?" echo "" $sleep if [ "$autoshowcalculated" ]; then echo " If not, come back late r for more options!" else echo " If not, there are still more options ahead!" fi echo "" $sleep echo -n " Enter Y for Yes, any key for No: " read calculated echo "" echo $line case $calculated in y|Y)calculatorcharge=1 CONFIG="Calculator" MB1=`echo $calculatedmbnosp | awk -F , '{print $1}'`;M B2=`echo $calculatedmbnosp | awk -F , '{print $2}'`;MB3=`echo $calculatedmbnosp | awk -F , '{print $3}'`;MB4=`echo $calculatedmbnosp | awk -F , '{print $4}'`;MB 5=`echo $calculatedmbnosp | awk -F , '{print $5}'`;MB6=`echo $calculatedmbnosp | awk -F , '{print $6}'` echo " Cust-OOMizing with SuperMinFree Calculator!";; *)if [ "$autoshowcalculated" ]; then echo " Well... I tr ied to do you a favour... sheesh!"; fi;; esac fi 2>/dev/null if [ "$scminfreeold" ] && [ "$currentminfree" != "$scminfreeold" ] && [ "$sccminfree" != "$scminfreeold" ] && [ "$calculatedminfree" != "$scminfreeold" ] && [ "$restore" -eq 0 ] && [ "$calculatorcharge" -eq 0 ] && [ ! "$autoshowcal culated" ]; then echo "" $sleep echo " Revert to Prior V6 Minfrees?" echo "" $sleep echo -n " Enter Y for Yes, any key for No: " read prior echo "" echo $line case $prior in y|Y)revert=1 MB1=`echo $scminfreeold | awk -F , '{print $1/256}'`;M B2=`echo $scminfreeold | awk -F , '{print $2/256}'`;MB3=`echo $scminfreeold | aw k -F , '{print $3/256}'`;MB4=`echo $scminfreeold | awk -F , '{print $4/256}'`;MB 5=`echo $scminfreeold | awk -F , '{print $5/256}'`;MB6=`echo $scminfreeold | awk -F , '{print $6/256}'` echo " Prior V6 Minfrees will be Restored!";; *);; esac fi 2>/dev/null if [ "$currentminfree" != "$sccminfree" ] && [ "$currentminfree" != "$scminfree" ] && [ "$restore" -eq 0 ] && [ "$calculatorcharge" -eq 0 ] && [ "$reve rt" -eq 0 ] && [ ! "$autoshowcalculated" ]; then echo "" $sleep echo " Apply Quick SuperCharge of Current Minfrees?" echo "" $sleep echo " If Yes, these become your Cust-OOMizer values." echo "" $sleep echo -n " Enter Y for Yes, any key for No: " read quick echo "" echo $line case $quick in y|Y)quickcharge=1 MB1=`echo $currentminfree | awk -F , '{printf "%.0f\n" , $1/256}'`;MB2=`echo $currentminfree | awk -F , '{printf "%.0f\n", $2/256}'`;MB 3=`echo $currentminfree | awk -F , '{printf "%.0f\n", $3/256}'`;MB4=`echo $curre ntminfree | awk -F , '{printf "%.0f\n", $4/256}'`;MB5=`echo $currentminfree | aw k -F , '{printf "%.0f\n", $5/256}'`;MB6=`echo $currentminfree | awk -F , '{print f "%.0f\n", $6/256}'` echo " Quick Cust-OOMizer Settings will be Saved!";; *);; esac fi 2>/dev/null if [ "$restore" -eq 0 ] && [ "$calculatorcharge" -eq 0 ] && [ "$quickch arge" -eq 0 ] && [ "$revert" -eq 0 ] && [ ! "$autoshowcalculated" ]; then echo " Running Cust-OOMizer..." 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 ;^]" echo "" echo $line echo "" $sleep while [ "$break" -eq 0 ]; do echo -n " Slot 1: ";read MB1 if [ "$MB1" = "X" ] || [ "$MB1" = "x" ]; then break=1 elif [ "$MB1" -gt 0 ] 2>/dev/null; then break else echo " Input Error! Try again :p";sleep 2; fi done while [ "$break" -eq 0 ]; do echo -n " Slot 2: ";read MB2 if [ "$MB2" = "X" ] || [ "$MB2" = "x" ]; then break=1 elif [ "$MB2" -gt 0 ] 2>/dev/null; then break else echo " Input Error! Try again :p";sleep 2; fi donewhile [ "$break" -eq 0 ]; echo -n " if [ "$MB3" = "X" elif [ "$MB3" -gt else echo " Input :p";sleep 2; fi done while [ "$break" -eq 0 ]; echo -n " if [ "$MB4" = "X" elif [ "$MB4" -gt else echo " Input :p";sleep 2; fi done while [ "$break" -eq 0 ]; echo -n " if [ "$MB5" = "X" elif [ "$MB5" -gt else echo " Input :p";sleep 2; fi done while [ "$break" -eq 0 ]; echo -n " if [ "$MB6" = "X" elif [ "$MB6" -gt else echo " Input :p";sleep 2; fido Slot 3: ";read MB3 ] || [ "$MB3" = "x" ]; then break=1 0 ] 2>/dev/null; then break Error! Try again do Slot 4: ";read MB4 ] || [ "$MB4" = "x" ]; then break=1 0 ] 2>/dev/null; then break Error! Try again do Slot 5: ";read MB5 ] || [ "$MB5" = "x" ]; then break=1 0 ] 2>/dev/null; then break Error! Try again do Slot 6: ";read MB6 ] || [ "$MB6" = "x" ]; then break=1 0 ] 2>/dev/null; then break Error! Try againdone echo "" if [ "$break" -eq 0 ]; then $sleep echo $line echo " CONFIRM! $MB1, $MB2, $MB3, $MB4, $MB5, $MB6 MB?" echo $line echo "" $sleep echo -n " Enter N for No, any key for Yes: " read custOOM echo "" case $custOOM in n|N)opt=26;; *)echo $line echo " Cust-OOMizer Settings Accepted!" ;; esac fi fi if [ "$break" -eq 1 ] || [ "$MB1" -eq 0 ]; then opt=26; fi autoshowcalculated=;; 11)echo " OOM GROUPING FIXES PLUS..." echo "" echo " ...HARD TO KILL LAUNCHER!" $sleep echo $line echo " This Launcher Is Strong BUT Still Killable" echo $line echo "" $sleep if [ "$gb" -eq 1 ]; then launcheradj=2 echo "$speed,$buildprop,$animation,$initrc,$launcheradj,$panicmode,$fixalign,$zepalign,$fixemissions,$detailing,$detailinterval,$miscsd,$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" ]; then echo " This CAN'T SuperCharge ADJs on POST-ICS ROMS!" echo "" $sleep echo " It can only apply adj/Grouping Fixes..." echo "" $sleep echo " ...and other tweaks!" echo "" $sleep echo $line if [ "$servicesjarpatched" ]; then echo " Hey your services.jar is already patched. .." echo "" $sleep echo " ...with a Hard To Kill Launch er..." echo "" $sleep if [ "$HL" -eq 2 ]; then echo " ...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, Hard To Kill Launcher..." echo "" $sleep echo " ...is not available on this ROM..." echo "" fi fi;; 12)echo " OOM GROUPING FIXES PLUS..." echo "" echo " ...DIE-HARD LAUNCHER!" $sleep echo $line echo " This Launcher Is Stronger and RECOMMENDED!" echo $line echo "" $sleep if [ "$postics" ]; then echo " This CAN'T SuperCharge ADJs on POST-ICS ROMS!" echo "" $sleep echo " It can only apply adj/Grouping Fixes..." echo "" $sleep echo " ...and other tweaks!"echo "" $sleep echo $line if [ "$servicesjarpatched" ]; then echo " Hey your services.jar is already patched..." echo "" $sleep echo " ...with a Die-Hard Launcher..." echo "" $sleep if [ "$HL" -eq 1 ]; then echo " ...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,$buildprop,$animation,$initrc,$launcheradj,$panicmo de,$fixalign,$zepalign,$fixemissions,$detailing,$detailinterval,$miscsd,$tc3g" > /data/V6_SuperCharger/SuperChargerOptions cp -fr /data/V6_SuperCharger/SuperChargerOptions $storage/V6_Sup erCharger/SuperChargerOptions echo $line echo " Driver Options Updated!" fi;; 13)echo " OOM GROUPING FIXES PLUS..." echo "" echo " ...BULLETPROOF LAUNCHER!" $sleep echo $line echo " This Launcher Is Strongest and UNKILLABLE!" echo $line echo "" $sleep if [ "$postics" ]; then echo " This CAN'T SuperCharge ADJs on POST-ICS ROMS!" echo "" $sleep echo " It can only apply adj/Grouping Fixes..." echo "" $sleep echo " ...and other tweaks!" echo "" $sleep echo $line if [ "$servicesjarpatched" ]; then echo " Hey your services.jar is already patched..." echo "" $sleep echo " ...with a BulletProof Launcher..." echo "" $sleep if [ "$HL" -eq 0 ]; then echo " ...so who cares!" else echo " See The \"Jelly ISCream Parlor\" to change it!" fi else echo " Select The \"Jelly ISCream Parlor\" Option Next!" fielse 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..." echo "" $sleep echo " ...or don't know what it is - just say \"Yes\" ;)" 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, any key for No:" read breakback echo "" echo $line case $breakback in y|Y)launcheradj=0 echo "$speed,$buildprop,$animation,$initrc,$launcherad j,$panicmode,$fixalign,$zepalign,$fixemissions,$detailing,$detailinterval,$miscs d,$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... erm... BulletProofing!";; *)echo " OK... Die-Hard Launcher Is Great Anyway!" opt=26;; esac fi;; 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 ""echo " WHAT? UnSuperCharge? Are you sure?" echo "" $sleep echo -n " Enter Y for Yes, any key for No: " read unsuper echo "" echo $line case $unsuper in y|Y)echo " Well... okay then... be like that! :p";; *)echo " False alarm... *whew*" opt=26;; esac;; 15)echo " =======================" busybox echo " //// THE bOOM STICK! \\\\\\\\";; 16)echo " ========================" busybox echo " //// BULLETPROOF APPS \\\\\\\\";; 17)if [ "$flushOmaticHours" -ne 0 ]; then flushmodebar=" ================================" flushmode=" //// -=Engine Flush-O-Matic=- \\\\\\\\" else flushmodebar=" =============================" flushmode=" //// -=Fast Engine Flush=- \\\\\\\\" fi animspeed="busybox sleep 0.125" clear;sleep 1;echo $line;echo "";echo "";echo "";echo "";echo "";echo " ";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo " ";echo "";$animspeed clear;echo "";echo $line;echo "";echo "";echo "";echo "";echo "";echo " ";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo " ";$animspeed clear;echo "";echo "";echo $line;echo "";echo "";echo "";echo "";echo " ";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo " ";$animspeed clear;echo "";echo "";echo $line;echo " =================== ====";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";ec ho "";echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo "";echo "";e cho "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";e cho "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo $line;echo "";echo "";echo "";echo "";echo "";echo "";ec ho "";echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo $line;echo " ";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo " ";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo "$flushmodebar";busybox echo "$flushmode";echo $line;ech o "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";ech o "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo "$flushmodeb ar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";echo "" ;echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo "";echo "$fl ushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "" ;echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6SUPERCHARGER ////";echo " =======================";echo " )_.._(";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $l ine;echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " \ /";echo " )_.._(";echo "";echo "$flushmodeba r";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";echo ""; echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $lin e;echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " || ________ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushm odebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";ech o "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " |___| __";echo " || ________ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " | |";echo " |___| __";echo " || _ _______ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushmodebar";bu sybox echo "$flushmode";echo $line;echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " | |";echo " | |";echo " |___| __" ;echo " || ________ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";ech o "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";$ animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " | D";echo " | |";echo " | |";echo " |___| __";echo " || ________ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushmodebar";busybox echo "$flushmode"; echo $line;echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " ___";echo " | D";echo " | |";echo " | |";echo " |___| __";echo " | | ________ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushmodebar" ;busybox echo "$flushmode";echo $line;$animspeed; $animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " | D";echo " | |";echo " | |";echo " |___| __";echo " || ________ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushmodebar";busybox echo "$flushmode"; echo $line;echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6SUPERCHARGER ////";echo " =======================";echo " | |";echo " | |";echo " |___| __" ;echo " || ________ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";ech o "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";$ animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " | |";echo " |___| __";echo " || _ _______ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushmodebar";bu sybox echo "$flushmode";echo $line;echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " |___| __";echo " || ________ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " || ________ -( (-";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushm odebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";ech o "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " |_(--------) '-'";echo " \ /";echo " )_.._(";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $lin e;echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " \ /";echo " )_.._(";echo "";echo "$flushmodeba r";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";echo ""; echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " )_.._(";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $l ine;echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo "";echo "";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo "";echo "$fl ushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "" ;echo "";echo "";echo "";echo "";$animspeed clear;echo " =======";echo " zoom...";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " ======================="; echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo " ";echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo " ==================";echo " zoom...";echo $line;busybox echo " \\\\\ \\\ V6 SUPERCHARGER ////";echo " =======================";echo "";ec ho "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo ""; echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo " ============================";echo " zoom...";echo $line;busybox echo " \\\\\\\\ V6 SUP ERCHARGER ////";echo " =======================";echo "";echo "$flush modebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";ec ho "";echo "";echo "";echo "";$animspeed clear;echo " ======================================";echo " zoom...";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo $line;echo " zoom...";echo $line;busybox echo " \ \\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo " ";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo $line;echo " zoom... zoom..." ;echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " =======================";echo "";echo "$flushmodebar";busybox echo "$flu shmode";echo $line;echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo $line;echo " zoom... zoom...";echo $line ;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " === ====================";echo "";echo "$flushmodebar";busybox echo "$flushmode";ech o $line;echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";$animspe ed clear;echo $line;echo " zoom... zoom...";echo $line;busybox e cho " \\\\\\\\ V6 SUPERCHARGER ////";echo " ============= ==========";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;ec ho "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";$animspeed clear;echo $line;echo " zoom... zoom...";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " ======================= ";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";busybox sleep 0.5 clear;echo $line;echo " zOOM... zOOM...";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " ======================= ";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";busybox sleep 0.5 clear;echo $line;echo " zoom... zoom...";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " ======================= ";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";busybox sleep 0.5 clear;echo $line;echo " zOOM... zOOM...";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " ======================= ";echo "";echo "$flushmodebar";busybox echo "$flushmode";echo $line;echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";busybox sleep 1 clear;echo $line;echo " zOOM... zOOM...";echo $line;busybox echo " \\\\\\\\ V6 SUPERCHARGER ////";echo " ======================= ";echo "";echo "$flushmodebar";busybox echo "$flushmode";; 18)echo " =================" busybox echo " //// DETAILING \\\\\\\\";; 19)echo " =======================" busybox echo " //// WHEEL ALIGNMENT \\\\\\\\";; 20)echo " =====================" busybox echo " //// FIX EMISSIONS \\\\\\\\";; 21)echo " =====================" busybox echo " //// FIX ALIGNMENT \\\\\\\\";; 22)echo " ===========================" busybox echo " //// NITRO LAG NULLIFIER \\\\\\\\";; 23)echo " ======================" busybox echo " //// SYSTEM INSTALL \\\\\\\\";; 24)echo " =======================" busybox echo " //// RE-SUPERCHARGER \\\\\\\\";; 25)echo " ============================" busybox echo " //// JELLY ISCREAM PARLOR \\\\\\\\" if [ "$preics" ]; then opt=26 echo $line echo "" $sleep echo " FAIL: This is a PRE-ICS ROM! lol"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`" ]; thenecho "" $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 ""$sleep echo " But if the launcher DOES'T get SuperCharged..." echo "" $sleep echo " You can apply MEM and ADJ values..." echo "" $sleep echo " ...to build.prop instead of local.prop!" echo "" $sleep echo " This is more likely to stick but is RISKIER..." echo "" $sleep echo $line echo " WARNING: There is a small chance of bootloops!" echo "" $sleep echo " ...so have a backup available!" echo $line echo "" $sleep echo -n " Do you want to use Build.prop" if [ ! "$buildprop" ] && [ ! -f "/data/local.prop" ]; then echo "..." echo "" $sleep echo " ...or create /data/local.prop?" else echo "?" fi echo "" $sleep buildpropold=$buildprop echo -n " Enter (B)uild.prop or any key for local.prop: " read buildpropopt echo "" echo $line case $buildpropopt in b|B)buildprop=1 prop="/system/build.prop" echo " Okay! build.prop Mode Activated!";; *)buildprop=0 prop="/data/local.prop" echo " Okay! local.prop Mode Activated!";; esac echo $line echo "" $sleep showbuildpropopt=0 if [ ! -f "$prop" ]; then touch $prop; chown 0.0 $prop; chmod 64 4 $prop; fi if [ "$buildpropold" ] && [ "$buildprop" != "$buildpropold" ]; t hen if [ "$buildpropold" -eq 1 ]; then sed -n '/.*V6 SuperCharger/,/.*V6 SuperCharged/p ' /system/build.prop >> /data/local.prop echo " Copied SuperCharger entries to local.prop ..." echo "" $sleep sed -i '/.*V6 SuperCharger/,/.*V6 SuperCharged/d' /system/build.prop echo " prop!" elif [ -f "/data/local.prop" ]; then sed -n '/.*V6 SuperCharger/,/.*V6 SuperCharged/p ' /data/local.prop >> /system/build.prop echo " Copied SuperCharger entries to build.prop ..." echo "" $sleep sed -i '/.*V6 SuperCharger/,/.*V6 SuperCharged/d ' /data/local.prop echo " ...and cleaned SuperCharger from local. prop!" fi echo "" echo $line echo "" $sleep fi echo -n " Press The Enter Key... " read enter echo "" echo $line echo "" $sleep echo " SuperCharged Launcher Strength..." echo " =================================" echo "" $sleep if [ "$gb" -eq 1 ]; then echo " Hard To Kill Launcher is..." echo "" $sleep echo " ...Strong BUT Still Killable!" echo "" $sleep fi echo " Die-Hard Launcher is..." echo "" $sleep echo " ...VERY Strong and RECOMMENDED!" echo "" $sleep echo " BulletProof Launcher is..." echo "" $sleep echo " ...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 ...and cleaned SuperCharger from build.echo " If you don't have or don't use this feature..." echo "" $sleep echo " ...don't worry about it ;)" 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 :; do echo $line echo "" $sleep echo " Select a Launcher Strength..." echo "" echo -n " " if [ "$gb" -eq 1 ]; then echo -n "(H)TK, "; fi echo -n "(B)ulletProof, any key for Die-Hard: " read lstrength echo "" echo $line case $lstrength in h|H)if [ "$gb" -eq 0 ]; then echo " Invalid entry ... Please try again :p" else launcheradj=2 echo " SuperCharged Launcher Strength is Hard To Kill!" break fi;; b|B)launcheradj=0 echo " SuperCharged Launcher Strength is Bulle tProof!" break;; *)launcheradj=1 echo " SuperCharged Launcher Strength is DieHard!" break;; esac done for p in /system/etc/ram.conf $prop; do if [ -f "$p" ]; then sed -i 's/ro.HOME_APP_ADJ=.*/ro.HOME_APP_ADJ='$launcheradj/ $p; fi; done echo $line echo "" $sleep else buildprop=1; prop="/system/build.prop"; launcheradj=1 fi echo " Kernel & Virtual Memory Tweaks..." echo " =================================" echo "" $sleep echo " SuperCharger will apply additional tweaks..." echo "" $sleep echo " ...for RAM management and battery savings!" echo "" $sleep echo $line echo " Note: The Kick Ass Kernelizer has DOZENS MORE!"echo $line echo "" $sleep echo $line echo " But The -=Entropy-ness Enlarger=- is included!" echo $line echo "" $sleep echo " \"Kernel Panics\" are inevitable..." echo "" $sleep echo " ...and can result in \"Random Reboots\"!" echo "" $sleep echo " Choose a \"Random Reboot Tolerance\" Level... " echo "" $sleep echo " 1. Rock Hard Kernel aka DON'T PANIC!" echo " =================================" echo " ...this PREVENTS reboots!" echo " ...so choose this for STABLE kernels!" echo " Note: This causes hangs on reboot on some ROMS" echo "" $sleep echo " 2. Rock & Roll Kernel aka OOPS... DON'T PANIC!" echo " ===========================================" echo " ...reboots after a 30s recovery attempt..." echo " ...but NOT when an OOPS or BUG turns up!" echo " Note: This causes hangs on reboot on some ROMS" echo "" $sleep echo " 3. Soft Rock Kernel aka EVERYBODY PANIC!" echo " =====================================" echo " ...reboots after a 30s recovery attempt!" echo " ...battery drains on a frozen screen..." echo " ...so choose this for UNSTABLE kernels!" echo "" if [ "$scpercent" -eq 0 ]; then $sleep echo $line echo " An Option from 2 - 13 still needs to be run!" fi echo $line echo "" $sleep for sc in /system/etc/init.d/*SuperCharger* /data/99SuperCharger.sh /sy stem/etc/hw_config.sh; do if [ -f "$sc" ]; then sed -i '/.*oom.*/d' $sc sed -i '/.*overcommit_memory.*/d' $sc sed -i '/.*swappiness.*/d' $sc sed -i '/.*panic.*/d' $sc sed -i '/.*read_wakeup_threshold.*/d' $sc fi done for rc in $initrcpath $allrcpaths; do sed -i '/vm\/.*oom.*/d' $rc sed -i '/vm\/.*overcommit_memory.*/d' $rc sed -i '/vm\/.*swappiness.*/d' $rc sed -i '/kernel\/panic.*/d' $rcsed -i '/random\/read_wakeup_threshold.*/d' $rc done echo " (N)one - use your ROM's / other tweak's values" echo " Rock (H)ard - NEVER reboot on panic." echo " (R)ock & Roll - Wait 30s but NOT on OOPS/Bug." echo " (S)oft Rock - Wait 30s on ANY panic." echo "" $sleep echo $line echo " VM Tweaks & Entropy-ness Enlarger Still Apply!" echo $line while :; do echo "" $sleep echo -n " Pick a Kernel Strength / \"Reboot Tolerance\": " read kvm echo "" echo $line case $kvm in n|N)panicmode=0; kpanic=30; kpoops=1 echo " NONE!? Good Luck with that! LOL" break;; h|H)panicmode=3; kpanic=0; kpoops=0 echo " DON'T PANIC! Rock Hard Kernel Chosen!" break;; r|R)panicmode=2; kpanic=30; kpoops=0 echo " OOPS... DON'T PANIC! Rock & Roll Kernel Chosen! " break;; s|S)panicmode=1; kpanic=30; kpoops=1 echo " EVERYBODY PANIC! Soft Rock Kernel Chosen!" break;; *)echo " Invalid entry... Please try again :p" echo $line;; esac done echo $line echo "" $sleep for sc in /system/etc/init.d/*SuperCharger* /data/99SuperCharger.sh /sy stem/etc/hw_config.sh; do if [ -f "$sc" ]; then sed -i '/min_free_kbytes=/ a\ busybox sysctl -w vm.oom_kill_allocating_task=0;\ busybox sysctl -w vm.panic_on_oom=0;\ busybox sysctl -w vm.overcommit_memory=1;\ busybox sysctl -w vm.swappiness=20;\ # busybox sysctl -w kernel.panic_on_oops='$kpoops';\ # busybox sysctl -w kernel.panic='$kpanic';\ busybox sysctl -w kernel.random.read_wakeup_threshold=1376; # Entropy-n ess Enlarger - keeps entropy_avail full - MAY save battery and/or boost responsi veness' $sc fi if [ "$panicmode" -ne 0 ]; then sed -i '/^#.*kernel.panic/s/#//' $sc; fi done for rc in $initrcpath $rcpaths; 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\# #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 ]; then sed -i '/^#.*kernel\/panic/s/#/ /' $rc; fi done echo " Applying Kernel & Virtual Memory Tweaks..." echo "" $sleep echo -n " ";busybox sysctl -w vm.oom_kill_allocating_task=0 echo -n " ";busybox sysctl -w vm.panic_on_oom=0 echo -n " ";busybox sysctl -w vm.overcommit_memory=1 echo -n " ";busybox sysctl -w vm.swappiness=20 if [ "$panicmode" -ne 0 ]; then echo -n " ";busybox sysctl -w kernel.panic_on_o ops=$kpoops echo -n " ";busybox sysctl -w kernel.pa nic=$kpanic fi echo -n " ";busybox sysctl -w kernel.random.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... " read enter echo "" echo $line echo "" $sleep echo " Miscellaneous & SD Card Speed Tweaks..." echo " =======================================" echo "" $sleep echo " SuperCharger can apply additional tweaks..." echo "" $sleep echo " ...which include additional battery savings!" echo "" $sleep echo " They are as follows..." echo "" $sleep echo " ...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`" ]; then echo " dalvik.vm .heapgrowthlimit = $heapsize MB"; fi echo " dalvik.vm.heapsize = $heapsize MB" if [ "`getprop | grep persist.sys.vm.heapsize`" ]; then echo " persist.sys.vm.heapsize = $heapsize MB"; fi echo " persist.sys.purgeable_assets = 1" echo " wifi.supplicant_scan_interval = 180"echo echo echo if [" windowsmgr.max_events_per_sec = 200" " pm.sleep_mode = 1" "" "$scpercent" -eq 0 ]; then $sleep echo $line echo " An Option from 2 - 13 still needs to be run!"fi echo $line echo "" $sleep if [ "$tc3g" ]; then sed -i '/#=#/,/sleep_mode/d' $prop else sed -i '/#=#/,/edge=/d' $prop fi for sc in /system/etc/init.d/*SuperCharger* /data/99SuperCharger.sh /sy stem/etc/hw_config.sh; do if [ -f "$sc" ] && [ "$tc3g" ]; then sed -i '/179/,/queue/d' $sc elif [ -f "$sc" ]; then sed -i '/wmem_max/,/queue/d' $sc sed -i '/#=#/ a\ #########################\ # SD Read Speed Tweak #\ ############==###########' $sc fi done for rc in $initrcpath $allrcpaths; do sed -i '/bdi\/read_ahead_kb/d' $r c; done echo " Enable Miscellaneous & SD Card Speed Tweaks?" echo "" $sleep echo -n " Enter Y for Yes, 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.vm.heapgrowthlimit='$heapsize'm\ dalvik.vm.heapsize='$heapsize'm\ persist.sys.vm.heapsize='$heapsize'm\ persist.sys.purgeable_assets=1\ wifi.supplicant_scan_interval=180\ windowsmgr.max_events_per_sec=200\ pm.sleep_mode=1' $prop if [ ! "`getprop | grep heapgrowthlimit`" ]; then sed -i '/heapgrowthlimit/d' $prop; fi if [ ! "`getprop | grep persist.sys.vm.heapsize`" ]; the n sed -i '/persist.sys.vm.heapsize/d' $prop; fi for sc in /system/etc/init.d/*SuperCharger* /data/99Supe rCharger.sh /system/etc/hw_config.sh; do if [ -f "$sc" ]; then sed -i '/#==#/ a\ if [ "\`ls /sys/devices/virtual/bdi/179*/read_ahead_kb\`" ]; then\ for i in \`ls /sys/devices/virtual/bdi/179*/read_ahead_kb\`; doecho '$sdtweak' > \$i; done;\ fi 2>/dev/null;\ echo '$sdtweak' > /sys/block/mmcblk0/bdi/read_ahead_kb 2>/dev/null;\ echo '$sdtweak' > /sys/block/mmcblk0/queue/read_ahead_kb 2>/dev/null;' $ sc fi done for rc in $initrcpath $rcpaths; do sed -i '/KVM Tweaks/ i\ write /sys/block/mmcblk0/bdi/read_ahead_kb '$sdtweak $rc done echo " Applying Miscellaneous & SD Speed Tweaks..." echo "" $sleep if [ "`ls /sys/devices/virtual/bdi/179*/read_ahead_kb`" ]; then read_ahead=yes for i in `ls /sys/devices/virtual/bdi/179*/read_ ahead_kb`; do echo $sdtweak > $i; done fi 2>/dev/null if [ -f "/sys/block/mmcblk0/bdi/read_ahead_kb" ]; 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" ]; then read_ahead=yes echo $sdtweak > /sys/block/mmcblk0/queue/read_ah ead_kb fi if [ "$read_ahead" ]; 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`" ]; then setprop dalvik.vm.heapgrowthlimit $heapsize"m" echo " dalvik.vm.heapgrowthlimit = $heaps ize MB" fi setprop dalvik.vm.heapsize $heapsize"m" echo " dalvik.vm.heapsize = $heapsize MB" if [ "`getprop | grep persist.sys.vm.heapsize`" ]; then setprop persist.sys.vm.heapsize $heapsize"m" echo " persist.sys.vm.heapsize = $heaps ize MB" fi setprop persist.sys.purgeable_assets 1 echo " persist.sys.purgeable_assets = 1" setprop wifi.supplicant_scan_interval 180 echo " wifi.supplicant_scan_interval = 180" setprop windowsmgr.max_events_per_sec 200 echo " windowsmgr.max_events_per_sec = 200" setprop pm.sleep_mode 1 echo " pm.sleep_mode = 1" echo "";;*)miscsd=0 echo " Miscellaneous & SD Card Speed Tweaks are OFF!";; esac echo $line echo "" $sleep echo -n " Press The Enter Key... " read enter echo "" echo $line echo "" $sleep echo " 3G TurboCharger Enhancement..." echo " ==============================" echo "" $sleep echo " 3G TurboCharger Enhancement effects..." echo "" $sleep echo " ...network buffersizes and TCP RAM allocation!" echo "" $sleep echo $line echo " This is an ADDON to my 3G TurboCharger Script!" if [ "$scpercent" -eq 0 ]; then echo $line echo "" $sleep echo $line echo " An Option from 2 - 13 still needs to be run!" fi echo $line echo "" $sleep sed -i '/#==#/,/edge=/d' $prop for sc in /system/etc/init.d/*SuperCharger* /data/99SuperCharger.sh /sy stem/etc/hw_config.sh; do if [ -f "$sc" ]; then sed -i '/wmem_max/,/tcp_wmem/d' $sc; fi; done echo " Enable 3G TurboCharger Enhancement?" echo "" $sleep echo -n " Enter Y for Yes, 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.dns1=8.8.8.8\ net.dns2=8.8.4.4\ net.tcp.buffersize.default=6144,87380,110208,6144,16384,110208\ net.tcp.buffersize.wifi=262144,524288,1048576,262144,524288,1048576\ net.tcp.buffersize.lte=262144,524288,3145728,262144,524288,3145728\net.tcp.buffersize.hsdpa=6144,262144,1048576,6144,262144,1048576\ net.tcp.buffersize.evdo_b=6144,262144,1048576,6144,262144,1048576\ net.tcp.buffersize.umts=6144,87380,110208,6144,16384,110208\ net.tcp.buffersize.hspa=6144,87380,262144,6144,16384,262144\ net.tcp.buffersize.gprs=6144,8760,11680,6144,8760,11680\ net.tcp.buffersize.edge=6144,26280,35040,6144,16384,35040' $prop if [ ! "`getprop | grep heapgrowthlimit`" ]; then sed -i '/heapgrowthlimit/d' $prop; fi if [ ! "`getprop | grep persist.sys.vm.heapsize`" ]; the n sed -i '/persist.sys.vm.heapsize/d' $prop; fi for sc in /system/etc/init.d/*SuperCharger* /data/99Supe rCharger.sh /system/etc/hw_config.sh; do if [ -f "$sc" ]; then sed -i '/#=#/ a\ busybox sysctl -w net.core.wmem_max=1048576;\ busybox sysctl -w net.core.rmem_max=1048576;\ busybox sysctl -w net.core.optmem_max=20480;\ busybox sysctl -w net.ipv4.tcp_moderate_rcvbuf=1; # Be sure t hat autotuning is in effect\ busybox sysctl -w net.ipv4.route.flush=1;\ busybox sysctl -w net.ipv4.udp_rmem_min=6144;\ busybox sysctl -w net.ipv4.udp_wmem_min=6144;\ busybox sysctl -w net.ipv4.tcp_rmem='"'6144 87380 1048576'"';\ busybox sysctl -w net.ipv4.tcp_wmem='"'6144 87380 1048576'"';' $sc fi done echo " Applying 3G TurboCharger Enhancement..." echo "" $sleep setprop net.dns1 8.8.8.8 setprop net.dns2 8.8.4.4 setprop net.tcp.buffersize.default 6144,87380,110208,614 4,16384,110208 setprop net.tcp.buffersize.wifi 262144,524288,1048576,26 2144,524288,1048576 setprop net.tcp.buffersize.lte 262144,524288,3145728,262 144,524288,3145728 setprop net.tcp.buffersize.hsdpa 6144,262144,1048576,614 4,262144,1048576 setprop net.tcp.buffersize.evdo_b 6144,262144,1048576,61 44,262144,1048576 setprop net.tcp.buffersize.umts 6144,87380,110208,6144,1 6384,110208 setprop net.tcp.buffersize.hspa 6144,87380,262144,6144,1 6384,262144 setprop net.tcp.buffersize.gprs 6144,8760,11680,6144,876 0,11680 setprop net.tcp.buffersize.edge 6144,26280,35040,6144,16 384,35040 echo -n " ";busybox sysctl -w net.core.wmem_m ax=1048576 echo -n " ";busybox sysctl -w net.core.rmem_m ax=1048576 echo -n " ";busybox sysctl -w net.core.optmem_m ax=20480 echo -n " ";busybox sysctl -w net.ipv4.tcp_moderate_rcvb uf=1 echo -n " ";busybox sysctl -w net.ipv4.route.flu sh=1 echo -n " ";busybox sysctl -w net.ipv4.udp_rmem_m in=6144echo -n " in=6144 echo -n " '6144 87380 1048576' echo -n " '6144 87380 1048576'";busybox sysctl -w net.ipv4.udp_wmem_m ";busybox sysctl -w net.ipv4.tcp_rmem= ";busybox sysctl -w net.ipv4.tcp_wmem=echo "";; *)tc3g=0 echo " 3G TurboCharger Enhancement is now OFF!";; esac echo $line echo "" $sleep echo -n " Press The Enter Key... " read enter echo "" echo $line echo "" $sleep if [ -d "/system/etc/init.d" ]; then echo " Fix Alignment On Boot..." echo " ==========================" echo "" $sleep echo " This combines two scripts into one..." echo "" $sleep echo " ...Wheel Alignment AND Fix Emissions!" echo "" $sleep echo " ZipAlign optimizes all your APKs..." echo "" $sleep echo " ...which means less RAM comsumption..." echo "" $sleep echo " ...better battery life and a faster device!!" echo "" $sleep echo " But sometimes... Force Closes can result..." echo "" $sleep echo " ...so this Fixes Permissions of each app..." echo "" $sleep echo " ...immediately after zipaligning it!" echo "" $sleep echo " It's REALLY FAST and..." echo "" $sleep echo $line echo " It's the ONLY script of it's kind ;^]" echo $line echo "" $sleep echo " Fix Alignment can run automatically on boot!" echo "" $sleep echo " *99SuperCharger would run FixAlignment.sh..."echo "" $sleep echo " ...so boot time would be unaffected!" echo "" echo $line echo "" $sleep if [ "`ls /system/etc/init.d/*SuperCharger*`" ]; then sed -i '/!FixAlignment/d' /system/etc/init.d/*SuperCharg er* sed -i '/scriptmanager/ i\ sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!FixAlignment.sh 2 >/dev/null;\ sh /data/V6_SuperCharger/!FixAlignment.sh & sleep 2;\ sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!FixAlignment.sh 2 >/dev/null;' /system/etc/init.d/*SuperCharger* fi 2>/dev/null echo " Run Fix Alignment on boot?" echo "" $sleep echo " Note 1 : If you say Yes..." echo " Wheel Alignment and Fix Emissions..." echo " ...On Boot are automatically disabled!" echo "" $sleep echo " Note 2 : If you say No..." echo " Wheel Alignment and Fix Emissions..." echo " ...boot options become available!" echo "" $sleep echo -n " Enter Y for Yes, any key for No: " read bootfixalign echo "" echo $line case $bootfixalign in y|Y)fixalign=1; zepalign=0; fixemissions=0 if [ ! "`ls /system/etc/init.d/*SuperCharger*`" ]; the n echo " An Option from 2 - 13 still needs to be r un!" echo $line echo "" $sleep echo $line fi 2>/dev/null if [ ! -f "/data/V6_SuperCharger/!FixAlignment.sh" ]; 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.sh/s/.*sed /# sed /' /system/et c/init.d/*SuperCharger* 2>/dev/null sed -i '/!FixEmissions.sh/s/.*sh \//# sh \//' /system/ etc/init.d/*SuperCharger* 2>/dev/null sed -i '/!WheelAlignment.sh/s/.*sed /# sed /' /system/etc/init.d/*SuperCharger* 2>/dev/null sed -i '/!WheelAlignment.sh/s/.*sh \//# sh \//' /system/etc/init.d/*SuperCharger* 2>/dev/null;; *)fixalign=0 echo " Boot Fix Align Declined... does that rhyme?" sed -i '/!FixAlignment.sh/s/^/#/' /system/etc/init.d/* SuperCharger* 2>/dev/null;; esac echo $line echo "" $sleep echo -n " Press The Enter Key... " read enter echo "" echo $line echo "" $sleep if [ "$fixalign" -eq 0 ]; then echo " Wheel Alignment On Boot..." echo " ==========================" echo "" $sleep echo " ZipAlign optimizes all your APKs..." echo "" $sleep echo " ...which means less RAM comsumption..." echo "" $sleep echo " ...better battery life..." echo "" $sleep echo " ...and a faster device!!" echo "" echo $line echo "" $sleep echo " Wheel Alignment can run automatically on boot!" echo "" $sleep echo " *99SuperCharger would run WheelAlignment.sh..." echo "" $sleep echo " ...so boot time would be unaffected!" echo "" $sleep echo $line echo " If you get Force Closes, run Fix Emissions!" echo $line echo "" $sleep if [ "`ls /system/etc/init.d/*SuperCharger*`" ]; then sed -i '/!WheelAlignment/d' /system/etc/init.d/* SuperCharger* sed -i '/scriptmanager/ i\ sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!WheelAlig nment.sh 2>/dev/null;\ sh /data/V6_SuperCharger/!WheelAlignment.sh & sleep 2;\ sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!WheelAlig nment.sh 2>/dev/null;' /system/etc/init.d/*SuperCharger* fi 2>/dev/nullecho " Run Wheel Alignment on boot?" echo "" $sleep echo -n " Enter Y for Yes, any key for No: " read bootzepalign echo "" echo $line case $bootzepalign in y|Y)zepalign=1 if [ ! "`ls /system/etc/init.d/*SuperCharger*` " ]; 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.sh" ]; then echo " Wheel Alignment has to run once f rom the menu!" echo $line echo "" $sleep echo $line fi echo " t!";; *)zepalign=0 echo " Boot Align Declined... does that rh yme?" sed -i '/!WheelAlignment.sh/s/^/#/' /system/et c/init.d/*SuperCharger* 2>/dev/null;; esac echo $line echo "" $sleep echo -n " Press The Enter Key... " read enter echo "" echo $line echo "" $sleep echo " Fix Emissions On Boot..." echo " ========================" echo "" $sleep echo " This should fix app Force Closes!" echo "" $sleep echo " FCs usually happen due to permission errors..." echo "" $sleep echo " This tool will ensure that ALL apps..." echo "" $sleep echo " ...have the correct permissions!" echo "" echo $line Wheel Alignment Set To Run On Booecho "" $sleep echo " Fix Emissions can run automatically on boot!" echo "" $sleep echo " *99SuperCharger would run FixEmissions.sh..." echo "" $sleep echo " ...so boot time would be unaffected!" echo "" echo $line echo "" $sleep if [ "`ls /system/etc/init.d/*SuperCharger*`" ]; then sed -i '/!FixEmissions/d' /system/etc/init.d/*Su perCharger* sed -i '/sleep 90;/ i\ sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!FixEmissions.sh 2 >/dev/null;\ sh /data/V6_SuperCharger/!FixEmissions.sh & sleep 2;\ sed -i '"'s/exec >/# exec >/'"' /data/V6_SuperCharger/!FixEmissions.sh 2 >/dev/null;' /system/etc/init.d/*SuperCharger* fi 2>/dev/null echo " Run Fix Emissions on boot?" echo "" $sleep echo -n " Enter Y for Yes, any key for No: " read bootfixemissions echo "" echo $line case $bootfixemissions in y|Y)fixemissions=1 if [ ! "`ls /system/etc/init.d/*SuperCharger*` " ]; 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 .sh" ]; 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 !";; *)fixemissions=0 echo " No FCing Fix On Boot For You!" sed -i '/!FixEmissions.sh/s/^/# /' /system/etc /init.d/*SuperCharger* 2>/dev/null;; esac echo $line echo "" $sleepecho -n " Press The Enter Key... " read enter echo "" echo $line echo "" $sleep fi echo " Detailing On Boot..." echo " ====================" echo "" $sleep echo " You have many SQLite databases that become..." echo "" $sleep echo " ...fragmented and unoptimized over a few days." echo "" $sleep echo " This tool will optimize them with..." 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.sh..." echo "" $sleep echo " ...so boot time would be unaffected!" echo "" $sleep echo " AND you can specify how often it runs..." echo "" $sleep echo " ...so if you input 4, it runs every 4th boot!" echo "" $sleep echo $line echo -n " Current Status: Detailing " if [ "$detailing" -eq 0 ]; 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.d/*SuperCharger*`" ]; then sed -i '/!Detailing/d' /system/etc/init.d/*SuperCharger* sed -i '/sleep 90;/ a\ sed -i '"'s/# exec >/exec >/'"' /data/V6_SuperCharger/!Detailing.sh 2>/dev/null; \ 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 echo -n " Enter Y for Yes, any key for No: " read bootdetailing echo "" echo $line case $bootdetailing in y|Y)detailing=1 if [ ! "`ls /system/etc/init.d/*SuperCharger*`" ]; the n echo " An Option from 2 - 13 still needs to be r un!" echo $line echo "" $sleep echo $line fi 2>/dev/null if [ ! -f "/data/V6_SuperCharger/!Detailing.sh" ]; the n echo " Detailing has to run once from the menu!" echo $line echo "" $sleep echo $line fi while :; 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;; *)echo " Invalid entry... Please try again :p" echo $line;; esac done;; *)detailing=0; detailinterval=0 sed -i '/!Detailing.sh/s/^/# /' /system/etc/init.d/*Su perCharger* 2>/dev/null echo " Declined Detailing On Boot!";; esac if [ -f "/data/V6_SuperCharger/!Detailing.sh" ]; then sed -i 's/ ^detailinterval=.*/detailinterval='$detailinterval'/' /data/V6_SuperCharger/!Det ailing.sh; fi if [ -f "/system/xbin/vac" ]; then sed -i 's/^detailinterval=.*/ detailinterval='$detailinterval'/' /system/xbin/vac; fi echo $line echo "" $sleep echo -n " Press The Enter Key... " read enterecho "" echo $line echo "" $sleep if [ "$preics" ]; then echo " System Integration - $initrcpath1 Options..." echo " ==================" echo "" $sleep echo " SuperCharger can attempt greater integration..." echo "" $sleep echo " ...with system files on boot using init.rc..." echo "" $sleep echo " If it sticks, it makes for a much cleaner mod!" echo "" $sleep echo " Root access issues are rare, but can occur..." echo "" echo $line $sleep echo " Regardless, a SuperCharged init.rc file..." echo "" $sleep echo " ...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.d/*SuperCharger* /data/99Supe rCharger.sh /system/etc/hw_config.sh; do if [ -f "$sc" ]; then sed -i '/diff/,/I ntegration/d' $sc; fi; done echo -n " Integrate? Enter Y for Yes, any key for No: " read bake echo "" echo $line case $bake in y|Y)initrc=1 for sc in /system/etc/init.d/*SuperCharger* /d ata/99SuperCharger.sh /system/etc/hw_config.sh; do if [ -f "$sc" ]; then sed -i '/remount,r w \/data/ i\ if [ -f "'$initrcpath'" ] && [ "\`grep "SuperCharger" /system/build.prop \`" ] && [ "\`diff '$initrcpath' '$initrcpath1'\`" ]; then\ 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;\ cp -fr '$initrcpath' '$initrcpath1';\ mount -o remount,ro / 2>/dev/null;\ mount -o remount,ro rootfs 2>/dev/null;\ busybox mount -o remount,ro / 2>/dev/null;\busybox mount -o remount,ro rootfs 2>/dev/null;\ fi 2>/dev/null; # System Integration Marker' $sc fi done echo " System Integration of $initrcpath1 i s now ON!";; *)initrc=0 echo " System Integration of $initrcpath1 i s now OFF!";; esac echo $line echo "" $sleep else initrc=0 fi else initrc=0; fixalign=0; fixemissions=0; zepalign=0; detailing=0; det ailinterval=0 fi echo " Disable AWESOME V6 Animation? (Say \"NO\"!) :P" echo " =======" echo "" $sleep echo -n " Enter Y for Yes, any key for No: " read animate echo "" echo $line case $animate in y|Y)animation=0 echo " Boo... Animation is OFF... :/";; *)animation=1 echo " Yay... Animation is ON... :D";; esac echo $line echo "" $sleep echo "$speed,$buildprop,$animation,$initrc,$launcheradj,$panicmode,$fix align,$zepalign,$fixemissions,$detailing,$detailinterval,$miscsd,$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=;missingoptions=;; 30)echo " =================" busybox echo " //// OFF TOPIC \\\\\\\\" echo $line echo "" $sleep echo " Ok this is \"Off Topic\"..." echo "" $sleep echo " ...but maybe there's a good reason..." echo "" $sleep echo " ...why this script is so popular :p" echo "" $sleepecho " It's profound... so just read the link..." echo "" $sleep echo " ...and decide for yourself if it makes sense!" echo "" $sleep echo " If you don't like it... remember..." echo "" $sleep echo " ...don't shoot the messenger!" echo "" $sleep echo " Either way... I'm not crazy..." echo "" $sleep echo " ...and you may learn something..." echo "" $sleep echo " ...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.gl/0 dMcp" echo "";; 31)echo $line echo " !!POOF!!" echo $line echo "" sleep 2 busybox sync if [ -f "/proc/sys/kernel/sysrq" ]; 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, just reboot manually!" echo "" reboot; busybox reboot;; 32)echo " ===================" busybox echo " //// SUPERCLEAN! \\\\\\\\" if [ "$ram1" -ne "$ram2" ]; then opt=26; fi;; 33)echo " Did you find this useful? Feedback is welcome!";; *) echo " #!*@%$*?%@&)&*#!*?(*)(*)&(!)%#!&?@#$*%&?&$%$*#?!" echo "" sleep 2 echo " oops.. typo?! $opt is an Invalid Option!" echo "" sleep 2 echo " 1 33 !!" echo "" sleep 2 echo -n " hehe... Press the Enter Key to continue... ;) " read enter echo "" opt=69;; esac if [ "$opt" -ne 0 ] && [ "$opt" -ne 1 ] && [ "$opt" -ne 14 ] && [ "$opt" -ne 15 ] && [ ! "$opt" -gt 26 ] && [ "$ram1" -ne "$ram2" ]; then opt=69; autoresuperch arge=; firstgear=; showparlor=; fiif [ "$preics" ] && [ "$opt" -ge 2 ] && [ "$opt" -le 10 ]; then echo "" $sleep echo $line if [ "$launcheradj" -eq 0 ]; then echo " BULLETPROOF LAUNC HER!" elif [ "$launcheradj" -eq 2 ]; then echo " HARD TO KILL LA UNCHER!" else echo " DIE-HARD LAUNCHER!" fi fi if [ "$opt" -le 25 ] || [ "$opt" -eq 32 ]; then