[Android Themes] Adi Aisiteru Reborn:
STEP -2

Decompile the newly Recompiled APK again

Next go to

res/values/public.xml

open it with Notepad++

leave it, but keep it open

- SystemUI.apk/smali/com/android/systemui/recent/RecentsPanelView.smali

add the red line

# instance fields
[COLOR="Red"].field private mActiveMemory:J[/COLOR]

.field private mAnimateIconOfFirstTask:Z

[COLOR="Red"].field private mCachedMemory:J[/COLOR]

.field private mFitThumbnailToXY:Z

[COLOR="Red"].field mFreeMemText:Landroid/widget/TextView;[/COLOR]

[COLOR="Red"].field private mFreeMemory:J[/COLOR]

.field private mGoogleButton:Landroid/widget/ImageButton;

.field private mHighEndGfx:Z

.field private mItemToAnimateInWhenWindowAnimationIsFinished:Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;

.field private mListAdapter:Lcom/android/systemui/recent/RecentsPanelView$TaskDescriptionAdapter;

[COLOR="Red"].field mMemInfoReader:Lcom/android/internal/util/MemInfoReader;[/COLOR]

.field private mPopup:Landroid/widget/PopupMenu;

[COLOR="Red"].field mRamText:Landroid/widget/TextView;[/COLOR]

[COLOR="Red"].field private mRamUsageBar:Lcom/android/systemui/recent/LinearColorBar;[/COLOR]

.field private mRecentItemLayoutId:I

.field private mRecentTaskDescriptions:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",
"<",
"Lcom/android/systemui/recent/TaskDescription;",
">;"
}
.end annotation
.end field

.field private mRecentTasksLoader:Lcom/android/systemui/recent/RecentTasksLoader;

.field private mRecentsClearAllButton:Landroid/widget/ImageButton;

.field private mRecentsContainer:Landroid/view/ViewGroup;

.field private mRecentsNoApps:Landroid/view/View;

.field private mRecentsScrim:Landroid/view/View;

.field private mShowing:Z

.field private mStatusBarTouchProxy:Lcom/android/systemui/recent/StatusBarTouchProxy;

.field private mTaskManagerButton:Landroid/widget/ImageButton;

.field private mThumbnailWidth:I

[COLOR="Red"].field private mTotalMemory:J[/COLOR]

[COLOR="Red"].field mUsedMemText:Landroid/widget/TextView;[/COLOR]

.field private mWaitingForWindowAnimation:Z

.field private mWaitingToShow:Z

.field private mWindowAnimationStartTime:J

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 3
.parameter "context"
.parameter "attrs"
.parameter "defStyle"

.prologue
const/4 v2, 0x0

.line 260
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

[COLOR="Red"]new-instance v1, Lcom/android/internal/util/MemInfoReader;

invoke-direct {v1}, Lcom/android/internal/util/MemInfoReader;-><init>()V

iput-object v1, p0, Lcom/android/systemui/recent/RecentsPanelView;->mMemInfoReader:Lcom/android/internal/util/MemInfoReader;[/COLOR]

.line 261
invoke-virtual {p0}, Lcom/android/systemui/recent/RecentsPanelView;->updateValuesFromResources()V

.line 263
sget-object v1, Lcom/android/systemui/R$styleable;->RecentsPanelView:[I

invoke-virtual {p1, p2, v1, p3, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

move-result-object v0

.method static synthetic access$1102(Lcom/android/systemui/recent/RecentsPanelView;Landroid/widget/PopupMenu;)Landroid/widget/PopupMenu;
.locals 0
.parameter "x0"
.parameter "x1"

.prologue
.line 73
iput-object p1, p0, Lcom/android/systemui/recent/RecentsPanelView;->mPopup:Landroid/widget/PopupMenu;

return-object p1
.end method

[COLOR="Red"].method static synthetic access$11400(Lcom/android/systemui/recent/RecentsPanelView;)Landroid/content/Context;
.locals 1
.parameter "x0"

.prologue
.line 85
iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;

return-object v0
.end method[/COLOR]

.method static synthetic access$177777700(Lcom/android/systemui/recent/RecentsPanelView;)V
.locals 0
.parameter "x0"

.prologue
.line 75
invoke-direct {p0}, Lcom/android/systemui/recent/RecentsPanelView;->AsteroidClearAllRecentApps()V

return-void
.end method

.method static synthetic access$200(Lcom/android/systemui/recent/RecentsPanelView;)Lcom/android/systemui/recent/RecentTasksLoader;

.method private pointInside(IILandroid/view/View;)Z
.locals 5
.parameter "x"
.parameter "y"
.parameter "v"

.prologue
.line 282
invoke-virtual {p3}, Landroid/view/View;->getLeft()I

move-result v1

.line 283
.local v1, l:I
invoke-virtual {p3}, Landroid/view/View;->getRight()I

move-result v2

.line 284
.local v2, r:I
invoke-virtual {p3}, Landroid/view/View;->getTop()I

move-result v3

.line 285
.local v3, t:I
invoke-virtual {p3}, Landroid/view/View;->getBottom()I

move-result v0

.line 286
.local v0, b:I
if-lt p1, v1, :cond_0

if-ge p1, v2, :cond_0

if-lt p2, v3, :cond_0

if-ge p2, v0, :cond_0

const/4 v4, 0x1

:goto_0
return v4

:cond_0
const/4 v4, 0x0

goto :goto_0
.end method

[COLOR="Red"].method private static readLine(Ljava/lang/String;I)Ljava/lang/String;
.locals 4
.parameter "filename"
.parameter "line"
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation

.prologue
.line 1190
new-instance v1, Ljava/io/BufferedReader;

new-instance v2, Ljava/io/FileReader;

invoke-direct {v2, p0}, Ljava/io/FileReader;-><init>(Ljava/lang/String;)V

const/16 v3, 0x100

invoke-direct {v1, v2, v3}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V

.line 1192
.local v1, reader:Ljava/io/BufferedReader;
const/4 v0, 0x1

.local v0, i:I
:goto_0
if-ge v0, p1, :cond_0

.line 1193
:try_start_0
invoke-virtual {v1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

.line 1192
add-int/lit8 v0, v0, 0x1

goto :goto_0

.line 1195
:cond_0
invoke-virtual {v1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0

move-result-object v2

.line 1197
invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V

return-object v2

:catchall_0
move-exception v2

invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V

throw v2
.end method[/COLOR]

.method private refreshRecentTasksList(Ljava/util/ArrayList;Z)V
.locals 1
.parameter
.parameter "firstScreenful"
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList",
"<",
"Lcom/android/systemui/recent/TaskDescription;",
">;Z)V"
}
.end annotation

.prologue
.line 646
.local p1, recentTasksList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/android/systemui/recent/TaskDescription;>;"
iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRecentTaskDescriptions:Ljava/util/ArrayList;

if-nez v0, :cond_0

iget-object v0, p1, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->iconView:Landroid/widget/ImageView;

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

.line 515
:cond_1
return-void
.end method

[COLOR="Red"].method private updateMemoryInfo()V
.locals 7

.prologue
const/4 v6, 0x3

const-wide/16 v0, 0x0

:try_start_0
const-string v2, "/proc/meminfo"

const/4 v3, 0x1

invoke-static {v2, v3}, Lcom/android/systemui/recent/RecentsPanelView;->readLine(Ljava/lang/String;I)Ljava/lang/String;

move-result-object v2

if-eqz v2, :cond_0

const-string v3, "\\s+"

invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v2

array-length v3, v2

if-ne v3, v6, :cond_0

const/4 v3, 0x1

aget-object v2, v2, v3

invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

move-result-wide v2

const-wide/16 v4, 0x400

div-long v0, v2, v4
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3

:cond_0
:goto_0
iput-wide v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mTotalMemory:J

:try_start_1
const-string v2, "/proc/meminfo"

const/4 v3, 0x2

invoke-static {v2, v3}, Lcom/android/systemui/recent/RecentsPanelView;->readLine(Ljava/lang/String;I)Ljava/lang/String;

move-result-object v2

if-eqz v2, :cond_1

const-string v3, "\\s+"

invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v2

array-length v3, v2

if-ne v3, v6, :cond_1

const/4 v3, 0x1

aget-object v2, v2, v3

invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

move-result-wide v2

const-wide/16 v4, 0x400

div-long v0, v2, v4
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2

:cond_1
:goto_1
iput-wide v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mFreeMemory:J

:try_start_2
const-string v2, "/proc/meminfo"

const/4 v3, 0x6

invoke-static {v2, v3}, Lcom/android/systemui/recent/RecentsPanelView;->readLine(Ljava/lang/String;I)Ljava/lang/String;

move-result-object v2

if-eqz v2, :cond_2

const-string v3, "\\s+"

invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v2

array-length v3, v2

if-ne v3, v6, :cond_2

const/4 v3, 0x1

aget-object v2, v2, v3

invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

move-result-wide v2

const-wide/16 v4, 0x400

div-long v0, v2, v4
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1

:cond_2
:goto_2
iput-wide v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mActiveMemory:J

:try_start_3
const-string v2, "/proc/meminfo"

const/4 v3, 0x4

invoke-static {v2, v3}, Lcom/android/systemui/recent/RecentsPanelView;->readLine(Ljava/lang/String;I)Ljava/lang/String;

move-result-object v2

if-eqz v2, :cond_3

const-string v3, "\\s+"

invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v2

array-length v3, v2

if-ne v3, v6, :cond_3

const/4 v3, 0x1

aget-object v2, v2, v3

invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

move-result-wide v2

const-wide/16 v4, 0x400

div-long v0, v2, v4
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

:cond_3
:goto_3
iput-wide v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mCachedMemory:J

return-void

:catch_0
move-exception v2

goto :goto_3

:catch_1
move-exception v2

goto :goto_2

:catch_2
move-exception v2

goto :goto_1

:catch_3
move-exception v2

goto :goto_0
.end method

.method private updateRamBar()V
.locals 15

.prologue
const-wide/16 v1, 0x0

const/4 v10, 0x1

const/4 v9, 0x0

const v0, [COLOR="Blue"]0x7f08012f[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/systemui/recent/RecentsPanelView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Lcom/android/systemui/recent/LinearColorBar;

iput-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRamUsageBar:Lcom/android/systemui/recent/LinearColorBar;

iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v3, "recents_ram_bar_mode"

invoke-static {v0, v3, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v3

if-eqz v3, :cond_1

iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRamUsageBar:Lcom/android/systemui/recent/LinearColorBar;

if-eqz v0, :cond_1

new-instance v4, Landroid/util/DisplayMetrics;

invoke-direct {v4}, Landroid/util/DisplayMetrics;-><init>()V

iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;

const-string v5, "window"

invoke-virtual {v0, v5}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v0

check-cast v0, Landroid/view/WindowManager;

invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

move-result-object v0

invoke-virtual {v0, v4}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

iget v0, v4, Landroid/util/DisplayMetrics;->density:F

iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRamUsageBar:Lcom/android/systemui/recent/LinearColorBar;

invoke-virtual {v0, v9}, Lcom/android/systemui/recent/LinearColorBar;->setVisibility(I)V

invoke-direct {p0}, Lcom/android/systemui/recent/RecentsPanelView;->updateMemoryInfo()V

packed-switch v3, :pswitch_data_0

move-wide v3, v1

:goto_0
const v0, [COLOR="Blue"]0x7f080130[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/systemui/recent/RecentsPanelView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

iput-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mUsedMemText:Landroid/widget/TextView;

const v0, [COLOR="Blue"]0x7f080132[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/systemui/recent/RecentsPanelView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

iput-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mFreeMemText:Landroid/widget/TextView;

const v0, [COLOR="Blue"]0x7f080131[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/systemui/recent/RecentsPanelView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

iput-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRamText:Landroid/widget/TextView;

iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mUsedMemText:Landroid/widget/TextView;

invoke-virtual {p0}, Lcom/android/systemui/recent/RecentsPanelView;->getResources()Landroid/content/res/Resources;

move-result-object v5

const v6, [COLOR="Blue"]0x7f0b00f7[/COLOR]

new-array v7, v10, [Ljava/lang/Object;

new-instance v8, Ljava/lang/StringBuilder;

invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

invoke-virtual {v8, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

move-result-object v3

const-string v4, " MB"

invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v3

invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v3

aput-object v3, v7, v9

invoke-virtual {v5, v6, v7}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

move-result-object v3

invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mFreeMemText:Landroid/widget/TextView;

invoke-virtual {p0}, Lcom/android/systemui/recent/RecentsPanelView;->getResources()Landroid/content/res/Resources;

move-result-object v3

const v4, [COLOR="Blue"]0x7f0b00f6[/COLOR]

new-array v5, v10, [Ljava/lang/Object;

new-instance v6, Ljava/lang/StringBuilder;

invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

invoke-virtual {v6, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

move-result-object v1

const-string v2, " MB"

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v1

invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v1

aput-object v1, v5, v9

invoke-virtual {v3, v4, v5}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

move-result-object v1

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRamText:Landroid/widget/TextView;

invoke-virtual {p0}, Lcom/android/systemui/recent/RecentsPanelView;->getResources()Landroid/content/res/Resources;

move-result-object v1

const v2, [COLOR="Blue"]0x7f0b00f5[/COLOR]

invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object v1

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

iget-wide v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mTotalMemory:J

long-to-float v0, v0

iget-wide v1, p0, Lcom/android/systemui/recent/RecentsPanelView;->mTotalMemory:J

iget-wide v3, p0, Lcom/android/systemui/recent/RecentsPanelView;->mFreeMemory:J

sub-long/2addr v1, v3

iget-wide v3, p0, Lcom/android/systemui/recent/RecentsPanelView;->mCachedMemory:J

sub-long/2addr v1, v3

iget-wide v3, p0, Lcom/android/systemui/recent/RecentsPanelView;->mActiveMemory:J

sub-long/2addr v1, v3

long-to-float v1, v1

div-float/2addr v1, v0

iget-wide v2, p0, Lcom/android/systemui/recent/RecentsPanelView;->mActiveMemory:J

long-to-float v2, v2

div-float/2addr v2, v0

iget-wide v3, p0, Lcom/android/systemui/recent/RecentsPanelView;->mCachedMemory:J

long-to-float v3, v3

div-float v0, v3, v0

iget-object v3, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRamUsageBar:Lcom/android/systemui/recent/LinearColorBar;

invoke-virtual {v3, v1, v0, v2}, Lcom/android/systemui/recent/LinearColorBar;->setRatios(FFF)V

iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRamUsageBar:Lcom/android/systemui/recent/LinearColorBar;

new-instance v1, Lcom/android/systemui/recent/RecentsPanelView$AsteroidRunningServices;

invoke-direct {v1, p0}, Lcom/android/systemui/recent/RecentsPanelView$AsteroidRunningServices;-><init>(Lcom/android/systemui/recent/RecentsPanelView;)V

invoke-virtual {v0, v1}, Lcom/android/systemui/recent/LinearColorBar;->setOnClickListener(Landroid/view/View$OnClickListener;)V

:cond_0
:goto_1
return-void

:pswitch_0
iget-wide v2, p0, Lcom/android/systemui/recent/RecentsPanelView;->mActiveMemory:J

iget-wide v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mTotalMemory:J

iget-wide v4, p0, Lcom/android/systemui/recent/RecentsPanelView;->mActiveMemory:J

sub-long/2addr v0, v4

move-wide v11, v0

move-wide v13, v2

move-wide v3, v13

move-wide v1, v11

goto/16 :goto_0

:pswitch_1
iget-wide v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mActiveMemory:J

iget-wide v2, p0, Lcom/android/systemui/recent/RecentsPanelView;->mCachedMemory:J

add-long/2addr v2, v0

iget-wide v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mTotalMemory:J

iget-wide v4, p0, Lcom/android/systemui/recent/RecentsPanelView;->mActiveMemory:J

sub-long/2addr v0, v4

iget-wide v4, p0, Lcom/android/systemui/recent/RecentsPanelView;->mCachedMemory:J

sub-long/2addr v0, v4

move-wide v11, v0

move-wide v13, v2

move-wide v3, v13

move-wide v1, v11

goto/16 :goto_0

:pswitch_2
iget-wide v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mTotalMemory:J

iget-wide v2, p0, Lcom/android/systemui/recent/RecentsPanelView;->mFreeMemory:J

sub-long v2, v0, v2

iget-wide v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mFreeMemory:J

move-wide v11, v0

move-wide v13, v2

move-wide v3, v13

move-wide v1, v11

goto/16 :goto_0

:cond_1
iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRamUsageBar:Lcom/android/systemui/recent/LinearColorBar;

if-eqz v0, :cond_0

iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRamUsageBar:Lcom/android/systemui/recent/LinearColorBar;

const/16 v1, 0x8

invoke-virtual {v0, v1}, Lcom/android/systemui/recent/LinearColorBar;->setVisibility(I)V

goto :goto_1

nop

:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
:pswitch_2
.end packed-switch
.end method[/COLOR]

.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
.locals 5
.parameter "h"
.parameter "thumbnail"
.parameter "show"
.parameter "anim"

Change this IDS with the value you got in your own public.xml