[Android Themes] Rycon33:
guys, i need help on understanding the code in my PhoneStatusBar.smali, I'm using a Sony phone btw and it has it's own color accent themes

basically, I want my clock(in the notification header) to bypass the colorization part set by sony accent theme, below is the particular method where the colorization part is happening(I think):

I knew this is the method responsible for it because it has the ID code for my clock_expanded(0x7f0c0044).

Can anybody tell me if it is as easy as removing some lines there to bypass the colorization?(I only know a bit of C but 0 knowledge in Java smali codes)

Thanks in advance guys:)

.method private makeExpandedVisible(Z)V
.locals 5
.parameter

.prologue
const/4 v4, 0x1

.line 1302
iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedVisible:Z

if-eqz v0, :cond_0

.line 1347
:goto_0
return-void

.line 1306
:cond_0
iput-boolean v4, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedVisible:Z

.line 1307
iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mPile:Lcom/android/systemui/statusbar/policy/NotificationRowLayout;

invoke-virtual {v0, v4}, Lcom/android/systemui/statusbar/policy/NotificationRowLayout;->setLayoutTransitionsEnabled(Z)V

.line 1308
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNavigationBarView:Lcom/android/systemui/statusbar/phone/NavigationBarView;

if-eqz v0, :cond_1

.line 1309
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNavigationBarView:Lcom/android/systemui/statusbar/phone/NavigationBarView;

invoke-virtual {v0, v4}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->setSlippery(Z)V

.line 1311
:cond_1
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->updateCarrierLabelVisibility(Z)V

.line 1313
const/16 v0, -0x2710

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->updateExpandedViewPos(I)V

.line 1316
iget-object v0, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v0

const-string v1, "[COLOR="Blue"][B][I]semc_theme_accent_color[/I][/B][/COLOR]"

const-string v2, "color"

const-string v3, "[COLOR="Blue"][I][B]com.sonyericsson.uxp[/B][/I][/COLOR]"

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

move-result v1

.line 1318
if-eqz v1, :cond_2

.line 1320
:try_start_0
iget-object v0, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v0

invoke-virtual {v0, v1}, Landroid/content/res/Resources;->[COLOR="Blue"][I][B]getColor[/B][/I][/COLOR](I)I

move-result v2

.line 1321
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v3, [COLOR="Red"][B][I]0x7f0c0044[/I][/B][/COLOR]

invoke-virtual {v0, v3}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

.line 1323
invoke-virtual {v0, v2}, Landroid/widget/TextView;->[COLOR="Blue"][I][B]setTextColor[/B][/I][/COLOR](I)V
:try_end_0
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

.line 1333
:cond_2
:goto_1
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

invoke-virtual {v0}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

move-result-object v0

check-cast v0, Landroid/view/WindowManager$LayoutParams;

.line 1334
iget v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

and-int/lit8 v1, v1, -0x9

iput v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

.line 1335
iget v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

const/high16 v2, 0x2

or-int/2addr v1, v2

iput v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

.line 1336
const/4 v1, -0x1

iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

.line 1337
invoke-static {}, Landroid/view/WindowManagerImpl;->getDefault()Landroid/view/WindowManagerImpl;

move-result-object v1

.line 1338
iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

invoke-interface {v1, v2, v0}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

.line 1342
if-eqz p1, :cond_3

.line 1343
iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mHandler:Lcom/android/systemui/statusbar/BaseStatusBar$H;

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStartRevealAnimation:Ljava/lang/Runnable;

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/BaseStatusBar$H;->post(Ljava/lang/Runnable;)Z

.line 1346
:cond_3
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->visibilityChanged(Z)V

goto :goto_0

.line 1324
:catch_0
move-exception v0

.line 1325
const-string v0, "PhoneStatusBar"

new-instance v2, Ljava/lang/StringBuilder;

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

const-string v3, "Can not find color resource "

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

move-result-object v2

invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

move-result-object v1

invoke-virtual {v2, v1}, 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

invoke-static {v0, v1}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

goto :goto_1

.line 1326
:catch_1
move-exception v0

.line 1327
const-string v0, "PhoneStatusBar"

const-string v1, "Can not colorize the clock"

invoke-static {v0, v1}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

goto :goto_1
.end method