[Android Software/Hacking General [Developers Only]] zeppelinrox:
OK this is not going to be easy but it could be harder anyway...

This will make it easier [Guide][Tutor]Jar/Apk baksmali smali compiler and decompiler

1. So grab the tutorial zip from above which includes smali and baksmali jar files so this is all you need apart from a text editor and a zip program like 7zip or WinRAR.

1. Unzip it into a folder and put services.jar (make sure you have a backup) in the same folder. Say C:\super

2. Open up a dos/command prompt and navigate to the folder by typing cd c:\super

3. Type: java -jar baksmali.jar -x services.jar -o classout (services jar gets decompiled into a classout folder.) Leave the dos/command prompt window open.

4. Open explorer and navigate down to c:\super\classout\com\android\server\am folder and find ActivityManagerService.smali

5. Open it up in notepad and make the edits specified down below.

Save it

.

6. Go back to the dos/command prompt and type: java -Xmx512M -jar smali.jar classout -o classes.dex (this creates classes.dex)

7. Open up services.jar with 7zip or WinRAR (you will see a classes.dex file inside) and drag the newly created classes.dex into the window to refresh services.jar with the new classes.dex

8. Put the new services.jar into your /system/framework folder and reboot.

You can also put it into

a copy of your rom

and flash that.

Boot will take a LONG time as it "optimizes all your apps"

If you have the bootanimation turned on, I'm not sure if you will see the optimizing message or if the animation keeps playing in foreground.

If it doesn't boot (which I doubt), you can always just re-flash your current untouched rom but do have a backup nevertheless.

If you get FCs, fixing permissions will solve that.

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

So these are the 6 smali edits to be made in ActivityManagerService.smali

Bold is the edit

Underlined

is the search term so you can find the location in the file easily.

The search term INCLUDES the "quotes" so you should actually only get 1 hit for each search.

Edit: Actually there are 5 hits for "backup" with quotes but just scroll down from the previous edit you'll find it :p (heh. the previous edit is for "previous" lol)

Also note that each edited line begins with "const/4 v10, "

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

.line 13614

const/4 v2, 0x1

if-le v10, v2, :cond_118

.line 13615

const/4 v10, 0x3

.line 13616

const-string v2,

"visible"

move-object/from16 v0, p1

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

if-ne v0, v2, :cond_154

.line 13654

const/4 v10, 0x4

.line 13655

const/16 v27, 0x1

.line 13656

const/4 v2, 0x0

move-object/from16 v0, p1

iput-boolean v2, v0, Lcom/android/server/am/ProcessRecord;->hidden:Z

.line 13657

const-string v2,

"heavy"

move-object/from16 v0, p1

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

.line 13663

const/4 v10, 0x1

.line 13664

const/16 v27, 0x1

.line 13665

const/4 v2, 0x0

move-object/from16 v0, p1

iput-boolean v2, v0, Lcom/android/server/am/ProcessRecord;->hidden:Z

.line 13666

const-string v2,

"home"

move-object/from16 v0, p1

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

.line 13674

const/4 v10, 0x5

.line 13675

const/16 v27, 0x1

.line 13676

const/4 v2, 0x0

move-object/from16 v0, p1

iput-boolean v2, v0, Lcom/android/server/am/ProcessRecord;->hidden:Z

.line 13677

const-string v2,

"previous"

move-object/from16 v0, p1

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

.line 13694

const/4 v10, 0x7

.line 13695

const-string v2,

"backup"

move-object/from16 v0, p1

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

.line 13723

const/4 v10, 0x6

.line 13724

const-string v2,

"started-services"

move-object/from16 v0, p1

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

That's It!

It was a pain in the ass to find because the settings that get applied actually ignore any setting that is given.

It's all over-ridden by a calculation routine :p

Note that you will stilll need to run V6 SuperCharger to get your minfrees and grouping fix/adj limits in place.

Edit: reposting this in post #2 for easy access :)