[Android Software/Hacking General [Developers Only]] zeppelinrox:
Hey if somebody says that minfree tweaks don't work on ICS and JB, you can safely assume that they don't know what they're talking about lol

================================================= ==========================================

Please Rate the thread 5 Stars and click the Thanks Button! (any of my posts will do!) if you have enjoyed using The V6 SuperCharger!

Or consider donating:) - HUGE THANKS to those that have already donated! :cool:

And THANKS for

constructive feedback

- which makes this mod so

AMAZING

!

================================================= ==========================================

Rant

: So I "cleaned up the OP" by adding little headings and hiding stuff. So if you want to post that it's still confusing, DON'T bother.

If you don't like it,

don't use it.

(And calling yourself a n00b is a BS excuse - READ and LEARN something like everybody else did.)

So... if you don't read and search first, and ask redundant questions anyway...

be ready for...

​

.​

SuperCharger = Speed + Multitasking!

No more lag! No more launcher redraws! Smooth & Snappy!

It's the

ONLY

Complete Memory Management Fix!​

There is

NOTHING ELSE LIKE IT

!

It Runs Like A...

​

So... HOLD ON TIGHT!
​

Terms of Use:

99SuperCharger Tweaking:

Of course, I don't own any rights in regards to the actual tweaks applied to system settings.

This means anybody is free to mess with OOM groupings, OOM priorities and minfrees.

So it's fine to modify and share your tweaked 99SuperCharger file as long as you

leave the credits intact

:)

Developers may include the attached

V6 SuperCharger Installation Script

in their roms. (This installs 99SuperCharger)

The attached V6 SuperCharger

installation script

may NOT be disassembled in any way, or be used as a part of any memory management app or package.

This is because it is no different than an app/apk found in the market.

It's an installation program.

I don't own any right to tweak OOM Groupings, OOM Priorities, or minfree values. But

I do own this program

.

ATTN DEVS

: Baking the V6 SuperCharger memory system in your ROM is 100% fine.

..................Don't make it a "secret" feature. Make it a

PROMINENT

feature and give proper credit and a HTML link to this thread.

..................You can include the V6 installation script in the system/xbin folder so users can use it with terminal emulator

.................. - giving it a short name is fine as it's a pain to type long file names in terminal.

..................

Do not modify it

,

do not rebrand it

(ie. It's not called "V6script").

Thank you.

This is the

only

permissible distribution of the attached installation script -

unmodified

,

in a custom rom

and

in the system/xbin folder

.

Modification

and redistribution of the attached installation script is

not permitted at all.

This means that you cannot feel free to zip up the attached installation script with other tweaks and this means that it is not be edited and shared.

ATTN USERS

: If you use or encounter a ROM with the V6 SuperCharger memory system, without proper credit given and no SuperCharger source links,

please make the Developer aware of it

, and if necessary, please let me know about it.

Thank you.

Personal Use

: You may tweak the V6 installation script (

leaving credits intact

) to your own personal liking as long as it is NOT redistributed in any way.

If you want to share this, just link to this thread.

If you want to make a thread in other forums telling people about it, that's great.

But I would prefer that you

do not post a copy

of the V6 SuperCharger installation script in those forums.

Your co-operation is very much appreciated.

I don't want diluted/broken V6 SuperCharger installations floating around and then have people say it doesn't work.

=============================================================================

Bonus Battery Calibration Info:

First, let me link to my method of calibrating the battery

without downtime

so you can use your phone normally and do it whenever it's convenient.

It definitely works on Milestone and it seems to work on Droid.

I think that's a pretty good trick, anyway - it may even work on other phones ;)

Note

: You can also try my Die-Hard Battery Calibrator script which is on the download page.

Update

: As I suspected, any calibration method doesn't magically make your battery last longer ;)

.............. - All my battery tips/scripts really do is help ensure that you are actually getting a full charge.

THAT'S IT

.

.............. - Which is why my Die-Hard Battery Calibrator

has always notified the user

the REAL percentage vs the REPORTED percentage :D

=============================================================================

Summary of Steps

(Yeah, it's

THIS

friggin

easy

...)

Before you start reading, just know that this is not difficult to implement...

it's easy

. There's more specifics below but basically:

1. Download a script

2. Install BusyBox (Attached! - see install instructions above the attachments)

3. Install Script Manager (Enable Browse as Root in Config)

4. Load script into Script Manager (Run As Root - the

skull and crossbones icon

which turns green when selected)

5. Follow instructions/user prompts & select what you want

6. Patch services.jar as needed (see Post 2)

See?

EASY!

Note: If you get errors, or fail the driving test, use the SuperCharger Starter Kit from the download page.

Essentially, the Starter Kit makes sure that your ROM has no silly stability issues.

It includes

:

A proven busybox

Fixed su binary (for segmentation fault issues with superuser.apk on ICS

only

)

zipalign binary and sqlite3 binary (used in Update 9 RC*)

=============================================================================

Know that the script explains what it does

before

it does anything!

It holds your hand along the way and

it will answer nearly all your questions as it moves along!

It works on ALL Android devices

- Custom Roms or Stock Roms, Phones or Tablets, it doesn't matter!

Also Note:

Nothing else does what The V6 SuperCharger does!

................Not AutoKiller Memory Optimizer, Not Auto Memory Manager, Not Minfree Manager...

................And NOTHING BEATS IT.

PERIOD.

So... if somebody says to you that V6 SuperCharger does the same thing as [pick any app], tell them to first read about what they're talking about so that they can actually have an informed opinion.

Get A Taste of The V8 SuperCharger

- Some details for 3G TurboCharger & Kick Ass Kernel Tweaks are here (older versions there too)

......................................................... - V8 SuperCharger Alpha for Milestone!

=============================================================================

Memorable User Comments:

"Feels like I have a new phone!"

"V6 is one the best things to come to android."

"Supercharger rocks bro, I'm actually mad I waited so long to do it..."

"I wish I hadn't upgraded yet"

"Now I can wait to upgrade",

"I was about to throw this phone through the wall",

"I was about to return it but now I don't have to",

"This cured my phone of cancer!"

"Oh man... just applied the V6 Supercharger Script by ZeppelinRox on my Android.. I think it fixed everything..",

"My phone is better than new!",

"my phones has turned god mode on or somthing",

"

I never notice this at all

, until I flash a new rom and realize its not there anymore lol."

=============================================================================

What's it do?

It makes your phone

FAST

... super snappy with

better multitasking!

It

rearranges and fixes

the OOM Groupings and Priorites and lowmemorykiller values.

So basically, it's a

COMPLETE MEMORY MANAGEMENT FIX!

It's the

ONLY

one of it's kind :D

NO LAUNCHER REDRAWS, faster than ever, multitasking is better... why?

Because it works

with

the lowmemorykiller and

letting it work the way it's meant to work.

Also, because of the rearrangement,

it works the same on all roms!

The problem with using minfree tweakers like AMM or AKMO is that it doesn't work the same on all roms.

Secondary apps may be in slot 3 on some roms but in slot 5 in others!

That's why you hear people comment "I tried AKMO but it didn't do anything..."

Most likely it didn't do anything because the apps weren't sitting where they were expected to be.

So fasten your seat belts and enjoy the ride!

=============================================================================

RAM Lesson:

Important Note

: FREE RAM IS

NOT

WASTED! - Read Linux Memory Consumption

...................... That article

TOTALLY

confirms what I've been saying!

To Summarize

: Article: "Performance degradation occurs when "Absolute Free Memory" (includes Cached RAM) decreases."

...................... Me: "Lag happens when free ram goes below the 'lag level'"

Same thing, different language :D

Big Thanks to dev hardcore and this post for helping me figure stuff out way back when ;)

=============================================================================

Note

:

Do this at your own risk

- regardless of how

little

risk there is .

............ It has the UnSuperCharger Option to uninstall, but do a nandroid anyway.

............ Simply reflashing your ROM will also wipe it clean from your system.

=============================================================================

Requirements:

1. Rooted Android Device. Milestoners, you can use Universal Androot (not in market ?)

2. Script Manager or Terminal Emulator to run the script. Stock ROMs can also use SM to load up boot scripts!

3. Busybox v1.16.2 OR ABOVE. You can use any of the ones attached to this post which contain a

Feature Rich

busybox v1.19.4 by wraithdu (CWM flashable.zip, "Normal" Installation script by me and one which

reinstalls BusyBox on EACH boot

by me.)

OR

,,,

Grab the SuperCharger Starter Kit and have busybox plus other tools (

fixed

su binary for ICS with superuser.apk and

not supersu.apk

, zipalign binary and sqlite3 binary) installed instantly!

BusyBox WARNING:

Some versions are "minimal" with many missing applets and functions! I also find v1.18.3, v1.18.4 and 1.185 VERY much a hassle with errors that should NOT be errors! Avoid any such versions! Minimal is BAD!

4. Optional: AutoStart Script by me :D - Enables Stock ROMS (

Milestone

+ a few other devices) to utilize etc/init.d for

boot scripts

.

=============================================================================

Installing/Using:

1. Download the attached V6_SuperCharger_for_Android*.txt/pdf script and save to your sdcard.

- Do

NOT

run the V6 SuperCharger install script at boot!

2. Run the script:

A) Load the script (V6_SuperCharger_for_Android*.txt/pdf) into Script Manager and select "Run as Root" (

skull and crossbones "Su" icon

- it turns green when selected)

OR...

B) Run Terminal Emulator and simply type: su and enter, sh /sdcard/V6*.sh and enter (provided you saved the script to the root of your sdcard)

OR...

C) via ADB on your computer. In a console, type: adb shell and enter, su and enter, sh /sdcard/V6*.sh and enter (provided you saved the script to the root of your sdcard)

3. Get SuperCharged! Just pick an option! The extra options (Engine Flush, etc.) explain things before doing anything :)

4. READ

the script's output!

5. Afterwards, READ

the html HELP FILE

in the root of your SD Card!

6. Non-ICS/JB ROMS - Disable

"Lock Home in Memory"

if your ROM has this option. (

This takes effect immediately.

)

7. Optional: For a

quick status check

, you can put a Script Manager widget for V6 SuperCharger on you desktop :)

8. Reboot - required if it's your first time SuperCharging the rom.

9. Check if it works - After reboot, run the V6_SuperCharger script and check the info under the menu.

10. Patch services.jar as needed (see Post 2)

Cool!

- Here are a few recent tutorials:

[GUIDE] How to install Supercharger V6 (includes patching steps)

[How To][Video Tut] Install/Run V6 Supercharger + Basics (uh... video)

[GUIDE] V6 Supercharger Update 9 RC 8.2 + for Samsung Galaxy Young (includes a little KAK tutorial too)

If you are using compcache and

have lag or slow down after SuperCharging

,

DISABLE compache, wipe caches and re-enable it.

Non-ICS/JB ROMS - Be sure to uncheck/disable lock home in memory!

Note:

V6_SuperCharger-AOR.zip

is for use with Milestone's

Androidiani OpenRecovery. Even if you have a Milestone,

don't run it within Android

.

........ AOR Usage: Extract to the root of your sdcard (Directory structure is in the zip)

.........You will now have a SuperCharger Menu on the main screen. Simply select the menu and select 1 of the 12 options.

=============================================================================

Pro Tips:

- CUST-OOMIZER! Use your settings without Autokiller Memory Optimizer or Auto Memory Manager!

- Use the

3rd slot to set how much free ram you want

.

- If you have a viable init.XXX.rc file, it makes a backup and edits that

single file

. This is nice and tidy.

... Thank to kabaldan for pointing out the importance of certain things.

- Most Custom ROMs - If you have a

/system/etc/init.d

folder, it creates

99SuperCharger

in there and edits your choice of either /data/local.prop or /system/build.prop (18 entries added for adjusting priorities and groupings). You

shouldn't

need to configure anything else.

- If the minfree levels do not stick on your Custom ROM:

........ Check /data/Ran_Supercharger.log to see if it ran... (Update 9 RC*)

........ If this happens to you, use Script Manager to load /system/etc/init.d/99SuperCharger "on boot" and "run as root"

- Stock ROMs - It also creates

/data/99SuperCharger.sh

which you can load up on boot (run as root) with Script Manager. The OOM groupings work as well since it happens on boot in local.prop or build.prop (18 entries added) :D

In case of any error, you will find a related help file in the root of your SD card.

So... I think this covers ANY Android ROM :)

The Help File! (Abbreviated)

-=The V6 SuperCharger=-

created by zeppelinrox.

Here is some

Background Info

in case you're curious...

Linux Memory Consumption - Nice article!

Memory and SuperCharging Overview or... "Why 'Free RAM' Is NOT Wasted RAM!"

MFK Calculator Info - explanation for vm.min_free_kbytes

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 reconfigure anything.

Script Manager will just load the new /data/99SuperCharger.sh on boot automagically ;^]

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 automatic!

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.

NON-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 free 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 apply settings at boot option!

Also, if you have a Custom ROM, there might be something in the init.d folder that interferes with priorities and minfrees.

If you can't find the problem, a quick fix is to have Script Manager run /system/etc/init.d/*99SuperCharger "at boot" and "as root."

Another option is to make a Script Manager widget for /system/etc/init.d/*99SuperCharger 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 Recovery too :D

Just extract the zip to the root of /sdcard (it contains the directory structure), load AOR, and there will be a SuperCharger Menu on the main screen!

==============================================================================

The above is ALL YOU NEED TO KNOW.

The V6 SuperCharger Script EXPLAINS EVERYTHING that it does - as you use it!

Anything below is extra info!

So get SuperCharged

FIRST

and then read the stuff below to see how it works!

==============================================================================

The Nitty Gritty... For Geeks!

(WARNING: This can make a non-Geek's head Assplode!)

If you read Post #3 (History Parts 1-3), you'll see that

at first it was only about minfrees and launcher redraw

.

But after installing GingerBread, I saw that it needed more work than Froyo LOL.

Groupings were ALL MESSED UP and made NO SENSE to me whatsoever...

So I figured out how to group them more like CM6 (Froyo) but that still wasn't good enough...

So I further rearranged the OOM Groupings and Priorites and lowmemorykiller values and created a SuperCharger for phone memory...

THE ONLY COMPLETE MEMORY MANAGEMENT FIX!

Upon installation, V6 SuperCharger will first clean up any previous supercharging so none of your files get cluttered.

But if you toggle between Hard To Kill and BulletProof launchers, the memory adjustments aren't affected.

So you can leave your minfrees at stock/default settings and apply the Hard To Kill Launcher and still get the OOM Grouping/Priority fixes.

So if you love your ROMs memory settings, just try a SuperCharged Launcher/OOM Fix... you won't regret it :)

It's pretty awesome

:D

Here are some snaps....

Before...

After...

During....

Bonus....

Say Buh Bye to AKMO or any app that has to load on start up to change minfrees...

So did you notice the difference in groupings?

By default, CM7 has nearly all the apps in slot 5 and the launcher in slot 3.

Slightly aggressive settings will kill any chance of multitasking in that situation.

After SuperCharging, the apps get moved to slot 3 while the launcher is in slot 2 but the most important item in slot 2.

I've read, "oh you don't need to run any scripts for memory management..."

Well that's not true.

Playing with minfree values is one thing... it's playing with minfree levels... it's not really memory management...

Look at the pics above... now

THAT's

memory management...

If you look below at Post #3... that's how it all started... good background info in case you're wondering what the hell I'm talking about.

Notes:

Minfree changes take effect

immediately!

.......... Switching between Hard To Kill (strong), Die-Hard (stronger) and BulletProof (strongest) Launchers require a reboot to take effect.

.......... Disable your OS's "

Lock Home in Memory

" option, if it has it

.......... Or use "

Lock Home in Memory

" as a "Saftey Lock" - to toggle your launcher from "Bulletproof" (0) or HTK (1) to "Weak" (2)

.......... Note: "Lock Home in Memory" is not ADJ 1 with my OOM Grouping/Priority Fixes ;)

Cool Tip:

Sometimes it's difficult to keep a wanted background app alive, such as an SMS app. See how to Bulletproof Background Apps!

Remember:

When using scripts, use the SuperUser app to

DISABLE

SuperUser permissions for AMM!

................. It can still monitor your OOM groupings but it can't change your custom settings on boot.

................. If you have AKMO installed, disable it's option to Apply Settings at Boot!

==============================================================================

BusyBox v1.19.4 Install Script Instructions

:

First extract busybox_v1.19.4-wraithdu-installer_script.zip to the root of your sdcard

Method 1 - Just run the script inside/sdcard/bb1.19.4 with Script Manager as root.

Method 2 - Run terminal and type su and enter

............... - Type sh /sdcard/bb1*/busy* and enter

............... - Soup's On, Baby!

Boot Re-Installer! For BusyBox v1.19.4 Instructions

:

For PITA kernels and roms that insist on reinstalling old busyboxes on boot!

Contains same script as above but includes

another script

that makes busybox v1.19.4 reinstall

each boot

!

Basically, it installs the above script as /system/etc/init.d/96busybox :D

So for those kernels and roms... TAKE THAT!

First extract boot_reinstaller_script+busybox_v1.19.4-wraithdu-installs_every_boot.zip to the root of your sdcard

Method 1 - Just run the

boot_reinstaller*

script found inside/sdcard/boot.bb1.19.3 with Script Manager as root.

Method 2 - Run terminal and type su and enter

............... - Type sh /sdcard/boot*/boot* and enter

............... - Soup's On, Baby! (again and again!)

==============================================================================

V6_SuperCharger-AOR.zip is for Androidiani OpenRecovery for

Milestone

!! -

For Milestone ONLY!

- See "Installing/Using" instructions above!

How To Save Attached Files

- Right click with your browser & select "

save as

" from menu, or use the

QR Code

or

XDA app

or

Tapatalk

- Also a great method - use Opera Mini web browser. Very easy to download and it's FAST!

So... if you get an

error

like "line xxx: syntax error: unexpected end of file (

expecting "blah blah

")", it's an

INCOMPLETE DOWNLOAD!

Download it again

and

DO IT RIGHT

. :p

Most recent

files are HERE (RC/Beta/Test releases)

Don't Mirror Or RePackage My Files

- Just link

here

- Then your thread won't get real old, real fast.

If you're going to download something...

Please HIT THANKS and Give a 5 Star Rating!