• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Step by step instructions to run zeppelinrox's V6 SuperCharger script

Scur

Android Expert
After some trial and error by ShinySide and me, we finally got the kinks out of running this script and making the settings stick. The original thread on here was mostly some back and forth with links here and there, so I'm putting the steps to getting everything to work correctly in sequential order here.

The original xdadevelopers information and downloads were gleaned from zepplinrox's post in xdadevelopers and from the subsequent links found there.

First, a bit of info...

What this does is mostly what Auto Memory Manager does, only it does it by running a quick script at boot instead of using an app, and gives you plenty of defaults. It will also make your launcher "Hard-To-Kill" by moving the launcher up to a higher Out Of Memory (OOM) group, from SECONDARY_SERVER to VISIBLE_APP, similar in results to the "Keep home in memory" option found in CM7 (which didn't work for me). Hard_To_Kill works like a charm. It may have to reload the launcher from time to time if you put a lot of strain on memory, but that's heaps better than reloading every time. You can do this with AMM also, but it won't save group info, so you have to move apps manually after each boot.

Out Of Memory groups are the six groups your memory is separated into. zepplinrox explains them like this...

Android puts each running app into 1 of 6 Out Of Memory (OOM) groups based on their priority.
FOREGROUND_APP, VISIBLE_APP, SECONDARY_SERVER, HIDDEN_APP, CONTENT_PROVIDER, and EMPTY_APP.
The default minfree values ("kill thresholds") for each OOM group are, as far as I can tell: 6, 8, 16, 20, 22 and 24 mb. (CyanogenMod 6.1.2)
This means that: when free memory lowers to 24 mb, EMPTY_APPS get killed; at 22 mb free ram, CONTENT_PROVIDER apps get killed; and so on...


AMM explains the differences between the OOM groups like this...

1. Foreground Application - An app that you currently see on the screen. This also includes System and Phone.

2. Visible Application - An app that is visible to the user but not at the front, possibly because of transparency, etc.

3. Secondary Server - These are applications and services running in the background. It includes SenseUI or Launcher(Home) so don't set this too high.

4. Hidden Application - Apps that are not visible but are still running in the background.

5. Content Provider - Processes that provide for others e.g. Contacts content provider, Calendar content provider, etc.

6. Empty Application - Apps that are essentially in standby and are not doing any work. They can be shut down.


So, by adjusting the minfree values, you can control when each group of apps will get shut down as the free memory shrinks, hopefully keeping your phone running a bit faster during heavy use.

BTW, you'll need to be rooted and have Root Explorer and Superuser installed. I don't know anyone who doesn't have these anyway. They're basically essentials.

So here's what to do...

edit: ShinySide just reminded me "Keep "Lock home in memory" in cm settings unchecked and also I have Launcher Pro+ and I keep the option "Keep in meomory" in the "General settings" of LP unchecked too."
This is important.

-Download and install Script Manager from market.

-Download and install BusyBox Installer from market.

-Download V6 SuperCharger update 8 (the latest update as of the time of this post) and move it to the root directory of your sdcard.

-Run BusyBox, and install version 1.18.2 or lower. Errors have been reported with higher versions. (And if you're looking at Titanium Backup and seeing a different version, just know that TB has it's own version of BB internally that it uses for itself.)

-Run Script Manager.

-Press the Menu button, Advanced options, Config, and uncheck Enable extra gestures, then hit the Back button. This keeps the script manager from reading scrolling actions as commands and filling your input area with garbage.

-I believe it defaults to "/mnt/sdcard". If it didn't, navigate there. (Keep pressing the ".." folder at the top to get to root.)

-Select the "V6 SuperCharger" script.

-Check Run as root only, and press Run.

-Once the script has started and is showing "Please select scrolling speed (0-3):", tap the screen to bring up the keyboard, select your speed, and hit the ↵ (return key). I usually select 1 or 2 because I like keeping up with the text to see what's going on (2 is rather slow, though).

-Enter "11" to make your launcher Hard-To-Kill. You don't have to, but I have found nothing but upsides in doing so.

-Enter the option number for the OOM settings you wish to use and hit enter. ShinySide and I both seem to be getting the best results using option 9 (MegaRAM 2 w/512mb). We're running a2sd though, so keep your free memory in mind.

-Enter "17" to exit.

-Press Close in the top left corner.

-Exit Script Manager.

-Run Root Explorer.

-Press Mount R/W at the top.

-Press the "system" folder.

-Press Mount R/W at the top again.

-Press the "etc" folder, then the "init.d" folder.

-Long press the "99SuperCharger" file.

-Press Permissions.

-Make sure only these boxes are checked...
Owner: Read, Write, Execute
Group: Read, Execute
Others: Read, Execute

-Press OK.

-Exit Root Explorer.

-Run Script Manager.

-Navigate to "/system/etc/init.d"

-Select the "99SuperCharger" file.

-Check Run as root and Run on boot, press Save, then press Run. It will run in error, but that's ok, you just need to get those settings saved.

-Press Close.

-Exit Script Manager.

And that should do it. You've changed the OOM values, moved your launcher to a higher OOM group, and made sure the settings are saved and take effect on a reboot. You don't have to reboot the phone at this point, since any changes you made with the V6 SuperCharger script take effect immediately. If you wish you can uninstall BusyBox Installer, Script Manager, and the V6 SuperCharger script. They were all tools to create the 99SuperCharger script, which actally does the work. Hope it helps you as much as it's helped me.
 
didnt work,i downloaded v6 supercharged and with root explorer i moved it to the root file. i opened scriptmanager and clicked as you said teh root file and it says forbidden.
 
didnt work,i downloaded v6 supercharged and with root explorer i moved it to the root file. i opened scriptmanager and clicked as you said teh root file and it says forbidden.

You put the V6 script on your root directory of your sdcard, opened Script Manager, and Script Manager wouldn't let you run the V6 script?
 
i got it to work but i coudlnt do it that way i had to leave the v6 supercharger on sd card to acces it since it would not let me access it in the root folder i put it in from root explorer
 
i got it to work but i coudlnt do it that way i had to leave the v6 supercharger on sd card to acces it since it would not let me access it in the root folder i put it in from root explorer

Right, it has to be in the root directory of the sdcard, not of the phone. That is, you keep hitting the .. folder at the top until you run out. You're in the phone's root directory. Then you choose sdcard. Now you're in the sdcard's root directory.
Actually, I'm not sure it even has to be in the root. It might run fine from the downloads or dropbox folder, but I haven't tried that.
 
are you sure it still works with script manager and busy box uninstalled?

Yeah. I mean, busybox stays on your phone, but you can ditch the installer as soon as you either confirm you have a low enough version, or have installed a low enough version. Script manager just runs the V6 Script (which can be removed as well), which is only a script that creates the 99 script. The 99 script is the one that makes OOM minvalue changes, as well as moves your launcher to another OOM slot. It will do it when it's created or changed, and if it saves correctly, it will do it at boot as well.
 
Back
Top Bottom