[Desire Android Development] Androidmarketuser:
I wrote this guide for originally in elk759's JB CM10 thread, but with some modifications it works with every ROM and every phone.

I thought other guides were too hard to understand so I concluded all neccessary information and nothing more.

This guide is for Windows, because it uses a Windows tool to make the process MUCH easier. This only affects the modding of services.jar, so look at the original Supercharger thread for instructions withot the Windows tool.

Here are the benefits of using SUPERCHARGER, I cn approve that it works, it's faster, more apps can run and no launcher redraws!

___________________________________________________________________________

Sources:

http://xdaforums.com/showpost.php?p=12058585&postcount=1

http://xdaforums.com/showpost.php?p=18703418&postcount=5021

___________________________________________________________________________

IF YOU HAVE ANY PROBLEMS, LOOK FIRST AT THE Q&A BELOW!

1. Prerequisites:

SuperCharger_Starter_Kit_xxx.zip (contins busybox, sqlite and zipalign)

[*]V6_SuperCharger_for_Android-Update9_RC11_xxx.sh.pdf

Script Manager for starting scripts (on first run enable root browse AND run every script with su rights, the skull and bones symbol)

ES File Explorer (with root rights in settings->root management)

optionally: Terminal Emulator

Recommended for everyone and REQUIRED for 4.0+ Roms:

pepcisko's Windows tool for patching services.jar

Place the V6_Supercharger script and the Supercharger_Starter_Kit.zip content to "/sdcard/V6"

Place the Windows tool somewhere on your Hard Drive

Install the required apps

2. Installation of Starter Kit:

Start SManager and confirm root rights when browsing

go to sdcard/V6/1_SuperCharger_Starter_Kit and click on StartMeUp.sh

select the SU button (skull + bones) and RUN it as script and follow the instructions (install at least busybox for being safe that everything works)

3. Patching services.jar

Background information (could be very useful):

Patching the services.jar gives you the multitasking mod. Apps shouldn't restart all the time, they will stay in RAM as long as they can.

Patching the services.jar is REQUIRED for Android 4.x.x, but you don't have to use multitasking mod.

For the other Android versions it isn't required, you only need this if you want to have multitasking mod, too.

If you have Sense 4.0+ and want multitasking mod, you have to follow this, more complex tutorial.

But you can also use this method, but your visible app limit stay at 8 Apps, instead of 50!

extract the Windows tool and launch it

You can choose between online mode (phone drivers needed) or offline mode, I'll explain offline mode:

make sure you have root rights in ES Explorer and that you mount system as R/W (read/writable)

copy the services.jar from /system/framework to your SD, and connect your phone to PC

move the services.jar to the framework folder of the Windows tool directory

in the windows tool specify your Android version + if the rom is odexed/deodexed

now press "enter" -> "y" for supercharge -> "enter" for die die-hard launcher -> "enter" -> "y" for multitasking -> "enter" -> "y" to delete temporary files

You have patched the services.jar, now you have two options (both files are in "dist" directory):

Place the update-signed.zip on sdcard and install it via recovery

OR

Place the modded services.jar (and if odexed rom the services.odex too) to /system/framework and overwrite. Then you have to set owner and permissions:

In Terminal Emulator

su

(confirm SuperUser Request)

busybox mount -o remount,rw /system

cd /system/framework

chown 0.0 services.jar

chmod 644 services.jar​

Now go into recovery (or stay there after flashing update-signed.zip) and wipe cache & dalvik cache.

On your next reboot apps should be optimized.​

4. Supercharger Installation

Remember: I can't promise, that the guide is always up to date. So it could happen that after an update of the script, the option numbers are different. Look at the text on the right side of the option

start the /sdcard/V6/V6_SuperCharger... script with SManager with SU rights

follow the instructions of driver options: You will be asked for Scroll Speed but also various tweaks which can improve the performance

The script calculates the preferred FreeMem size, you can use them or set your own prefered size:

After you have declined to use the calculated option you are in Driver's Console, you can choose between 33 options.

The Options 2 to 9 set the MinFree size, for the different Ram Size of the devices.

For the Desire I recommend option 6 which is called "balanced". You can try a lower or a higher option, too.

Lower values are better for Multitasking, higher values are better for the speed on the visible app.​

go back to driver options and type 21 for Nitro Lag Nullifier, confirm with N (could be unstable, you don't have to use this)

After you are finished press option 17 for Engine Flush and after that option 32 for SuperClean& Restart

After the restart you should open SManager again and navigate to /system/etc/init.d, click on S99SuperCharger and enable SU + Run on Boot.

Press Save. This should avoid issues if you want to launch Supercharger Script again (for me it worked without doing that)​

Widgets for easy and fast freemem change:

For compairing settings, you can make widgets, settings will be changed instantly:

- you have to select the option you want to use as a widget (e.g. option 5 of supercharger) one time in V6_Supercharger script

Your selected options will appear as a small script in sdcard/V6_Supercharger/PowerShift_Scripts

- long press on home screen, click on Widgets and select SManager

- choose the script you want to use (e.g. 512HP_UnLedded...)

Q&A Supercharger

Q: Supercharger says "sorry, your rom wipes service entries on boot". Is it an issue?

A: No you can ignore it. You'll stay supercharged. (thx to abelle_abelle for the hint)

Q: Supercharger says that I'm only 75%/50% supercharged. What is the reason?

A: Propably the services.jar hasen't been patched right. Check if the services.jar is replaced and if the owner and the permissions are right. Try it out with offline mode in the Windows tool.

Q: Do I have to patch the services.jar again after rom update?

A: If you flash the rom you have to replace the original services.jar again. I don't know if you can use the previous patched services.jar.

Q: Do I have to run the whole script again after a rom update?

A: You have to run the Supercharger script again, but it has stored the last settings and can restore them. Then you have to Wipe Cache & Dalvik, reboot and set /system/etc/init.d/S99SuperCharger to run with SU rights + at boot.

Q: Did my settings stick?

A: If Supercharger says "100% supercharged" everything should be fine. If you think there is something wrong, because of a particular message paste the log text in pastebin.com and give me the link in your post.

Q: Do I have to install the Supercharger StarterKit?

A: No, you cann try it without this first if you want. BUT some busybox versions doesn't work with Supercharger (everything below 1.16.2 and even some versions above 1.16.2.

The StarterKit installs a recommended version.

Q: My phone is getting slower from time to time.

A: This can happen if you don't reboot often (1 or 2 days). The cache is growing and there is less and less RAM.

If you don't want to reboot all the time you can make the EngineFlush in V6_SuperCharger (option 17) and a script will be created (!FastEngineFlush.sh). You can make a widget for it after you set it as favorite or launch it normally in Script Manager.

A more detailed guide about making widgets is written above.

Q: Everythings (apps and launcher) stucks after NitroLagNullifier/V6 Supercharger installation. What can I do?

A: The user abelle_abelle had this issue. He had to hard reset his device (hard reset wipes your partitions -> deletes your data) and had to reinstall the rom.

Q: Are there any possibilites to make my rom even faster?

A: Yes, with KickAssKernelizer (KAK):

http://xdaforums.com/showpost.php?p=32508611&postcount=35

Maybe I will write a bit more detailed guide for this. You can see what it does at the benefits of Supercharger at the top of my first post.
​

----------------------------------------------------------------------------------------------------------------------------------------------------------

It took me long to test and to write please give a Thanks if I helped you

Also thank the creator of the scripts (check links)