[Tutorial] Unlimited Recent Apps Panels

Search This thread

steal25

Inactive Recognized Developer
With Zeppelinrox tearing up the multitasking scene around these parts lately I thought this would be a cool compliment to his mod. Plus it only work if you are using his modified services.jar. Heres his thread just a note: I used ff which should be a whole lot more than 16 but but there is a limit in android of 16 which im sure can be upped aswell i just havent looked yet.

mikeyxda brought it to my attention that a few of the edits weren't needed to complete this mod. So thanks mikey for making this even easier!

New zeppelinrox edits added make this mod unlimited panels!!!

Devs, Chefs, Rom Builders, Weekend warriors, whoever fell free to use.

First decompile SystemUI.apk
Navigate to com\android\systemui\recent\FxRecentTasksLoader.smali

search for

Code:
    const/16 v1, 0x10

    const/16 v2, 0x20

change to

Code:
    const/16 v1, 0xff

    const/16 v2, 0xff

search for

Code:
.field private static final DISPLAY_TASKS:I = 0x8

change to

Code:
.field private static final DISPLAY_TASKS:I = 0x[COLOR="red"]ff[/COLOR]

then just below is

Code:
.field private static final DISPLAY_TASKS:I = 0x10

change to
Code:
.field private static final DISPLAY_TASKS:I = 0x[COLOR="red"]ff[/COLOR]

then search for
search for .method getRecentTasks()Ljava/util/ArrayList;

the next instance of
Code:
const/16 v0, 0x8
change to
Code:
const/16 v0, 0x[COLOR="red"]ff[/COLOR]

Navigate to
com\android\systemui\recent\RecentAppFxActivity.smali

search for

iput-object v2, p0, Lcom/android/systemui/recent/RecentAppFxActivity;->mContext:Landroid/content/Context;

just below this is
Code:
const/16 v0, 0x8
change to
Code:
const/16 v0, 0x[COLOR="red"]ff[/COLOR]

just below that is
iput v0, p0, Lcom/android/systemui/recent/RecentAppFxActivity;->NUM_PANEL:I
then just below that is
Code:
const/16 v0, 0x10
change to
Code:
const/16 v0, 0x[COLOR="red"]ff[/COLOR]

then search for
.method private refreshRecentTasksList(Ljava/util/ArrayList;)V
and the next instance of
Code:
const/16 v5, 0x8
change to
Code:
const/16 v5, 0x[COLOR="red"]ff[/COLOR]

this is probably not necessary
navigate to com\android\systemui\recent\RecentAppFxActivityTablet.smali

search for

iput-object v2, p0, Lcom/android/systemui/recent/RecentAppFxActivity;->mContext:Landroid/content/Context;

just below this is
Code:
const/16 v0, 0x8
change to
Code:
const/16 v0, 0x[COLOR="red"]ff[/COLOR]

just below that is
iput v0, p0, Lcom/android/systemui/recent/RecentAppFxActivity;->NUM_PANEL:I
then just below that is
Code:
  const/16 v0, 0x10
change to
Code:
const/16 v0, 0x[COLOR="Red"]ff[/COLOR]

then search for
.method private refreshRecentTasksList(Ljava/util/ArrayList;)V
and the next instance of
Code:
  const/16 v5, 0x8
change to
Code:
const/16 v5, 0x[COLOR="red"]ff[/COLOR]

####newly added to fix dissappearing panels####

then search for
invoke-virtual {v3, v4, v5, v7}, Lcom/android/systemui/recent/RecentAppFxActivity$FxListViewAdapter;->bindListView(Lcom/htc/fusion/fx/controls/FxListView;II)V

just above this is

Code:
const/16 v5, 0x8

change to

Code:
const/16 v5, 0x[COLOR="Red"]ff[/COLOR]

navigate to com\android\systemui\recent\RecentTaskLoader.smali

in the .method static constructor section search for

Code:
const/4 v0, 0x6

change to

Code:
const/16 v0, 0xff

then search for

Code:
const/16 v0, 0x14

change to

Code:
const/16 v0, 0xff

And thats it Enjoy!

Fixed >>>>Bugs: scrolling quickly will make panels dissappear, im looking into a fix for this
 
Last edited:

bpcivicsi

Senior Member
Oct 23, 2011
89
17
Sorry for the noob question.. but what do you mean by "decompile"? I see the systemui.apk in root explorer and have tried to edit it, but can't seem to find those lines.. :confused:

Sent from my EVO using Tapatalk 2
 

bog3nator

Senior Member
Dec 23, 2008
1,806
375
41
Lubbock
i think i found a bug, if you have 16 apps shown and scroll through them to fast and them back to the front of the list, the first 8 apps wont show a preview. atleast that is how it was shown on my phone lol ( a few times)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    With Zeppelinrox tearing up the multitasking scene around these parts lately I thought this would be a cool compliment to his mod. Plus it only work if you are using his modified services.jar. Heres his thread just a note: I used ff which should be a whole lot more than 16 but but there is a limit in android of 16 which im sure can be upped aswell i just havent looked yet.

    mikeyxda brought it to my attention that a few of the edits weren't needed to complete this mod. So thanks mikey for making this even easier!

    New zeppelinrox edits added make this mod unlimited panels!!!

    Devs, Chefs, Rom Builders, Weekend warriors, whoever fell free to use.

    First decompile SystemUI.apk
    Navigate to com\android\systemui\recent\FxRecentTasksLoader.smali

    search for

    Code:
        const/16 v1, 0x10
    
        const/16 v2, 0x20

    change to

    Code:
        const/16 v1, 0xff
    
        const/16 v2, 0xff

    search for

    Code:
    .field private static final DISPLAY_TASKS:I = 0x8

    change to

    Code:
    .field private static final DISPLAY_TASKS:I = 0x[COLOR="red"]ff[/COLOR]

    then just below is

    Code:
    .field private static final DISPLAY_TASKS:I = 0x10

    change to
    Code:
    .field private static final DISPLAY_TASKS:I = 0x[COLOR="red"]ff[/COLOR]

    then search for
    search for .method getRecentTasks()Ljava/util/ArrayList;

    the next instance of
    Code:
    const/16 v0, 0x8
    change to
    Code:
    const/16 v0, 0x[COLOR="red"]ff[/COLOR]

    Navigate to
    com\android\systemui\recent\RecentAppFxActivity.smali

    search for

    iput-object v2, p0, Lcom/android/systemui/recent/RecentAppFxActivity;->mContext:Landroid/content/Context;

    just below this is
    Code:
    const/16 v0, 0x8
    change to
    Code:
    const/16 v0, 0x[COLOR="red"]ff[/COLOR]

    just below that is
    iput v0, p0, Lcom/android/systemui/recent/RecentAppFxActivity;->NUM_PANEL:I
    then just below that is
    Code:
    const/16 v0, 0x10
    change to
    Code:
    const/16 v0, 0x[COLOR="red"]ff[/COLOR]

    then search for
    .method private refreshRecentTasksList(Ljava/util/ArrayList;)V
    and the next instance of
    Code:
    const/16 v5, 0x8
    change to
    Code:
    const/16 v5, 0x[COLOR="red"]ff[/COLOR]

    this is probably not necessary
    navigate to com\android\systemui\recent\RecentAppFxActivityTablet.smali

    search for

    iput-object v2, p0, Lcom/android/systemui/recent/RecentAppFxActivity;->mContext:Landroid/content/Context;

    just below this is
    Code:
    const/16 v0, 0x8
    change to
    Code:
    const/16 v0, 0x[COLOR="red"]ff[/COLOR]

    just below that is
    iput v0, p0, Lcom/android/systemui/recent/RecentAppFxActivity;->NUM_PANEL:I
    then just below that is
    Code:
      const/16 v0, 0x10
    change to
    Code:
    const/16 v0, 0x[COLOR="Red"]ff[/COLOR]

    then search for
    .method private refreshRecentTasksList(Ljava/util/ArrayList;)V
    and the next instance of
    Code:
      const/16 v5, 0x8
    change to
    Code:
    const/16 v5, 0x[COLOR="red"]ff[/COLOR]

    ####newly added to fix dissappearing panels####

    then search for
    invoke-virtual {v3, v4, v5, v7}, Lcom/android/systemui/recent/RecentAppFxActivity$FxListViewAdapter;->bindListView(Lcom/htc/fusion/fx/controls/FxListView;II)V

    just above this is

    Code:
    const/16 v5, 0x8

    change to

    Code:
    const/16 v5, 0x[COLOR="Red"]ff[/COLOR]

    navigate to com\android\systemui\recent\RecentTaskLoader.smali

    in the .method static constructor section search for

    Code:
    const/4 v0, 0x6

    change to

    Code:
    const/16 v0, 0xff

    then search for

    Code:
    const/16 v0, 0x14

    change to

    Code:
    const/16 v0, 0xff

    And thats it Enjoy!

    Fixed >>>>Bugs: scrolling quickly will make panels dissappear, im looking into a fix for this
    5
    Good stuff, Steal!

    Mike
    4
    Cool... I tried like crazy to find where that bugger was :)
    3
    I finally got a chance to poke into those files so... wanna try something?

    In FxRecentTasksLoader.smali, find these 2 lines:
    Code:
        const/16 v1, 0x10
    
        const/16 v2, 0x20
    Change to what you like... 0xff I think lol

    But I think the next 2 will have a major impact...

    In RecentTasksLoader.smali, in the .method static constructor section you will find:
    const/4 v0, 0x6

    Change to:
    const/16 v0, 0xff

    (Make sure you change the const/4 to const/16)

    Also find:
    const/16 v0, 0x14

    Change to:
    const/16 v0, 0xff
    3
    added this to op and should fix the dissapearing panels

    ####newly added to fix dissappearing panels####

    then search for
    invoke-virtual {v3, v4, v5, v7}, Lcom/android/systemui/recent/RecentAppFxActivity$FxListViewAdapter;->bindListView(Lcom/htc/fusion/fx/controls/FxListView;II)V

    just above this is

    Code:
    const/16 v5, 0x8

    change to

    Code:
    const/16 v5, 0x[COLOR="Red"]ff[/COLOR]

    Thanks mikeyxda for helping out with the fix and confirming. I think this mod is complete now unlimited panels and no dissappearing act! Enjoy.