[Android Themes] Ambor:
*********RXS DEV TEAM Presents*********

Hello

We'll show you how to edit almost all applications Xperia, so to work with stock engine CM11 Theme

I'll show you how to change Xperia Theme accent color:

-somc_theme_accent_color_light

-somc_theme_accent_color_dark

-somc_accent_color_neutral

-semc_theme_accent_color

To stock CM11 theme engine colors:

-holo_blue_light

-holo_blue_dark

This Guide is for experienced themers !!!!

What we need:

-Apktool

-Notepad++

-Any file manager

-Xperia app running on your device With CM11 Rom

I use an application running on my ARC on LegacyXperia Cm11 build 906

Linki:

Z2 Home and widget: Z2 Home and Widget

Creadits RXS DEV TEAM

Here we go:

Decompile Z2 Home and Widget working on your Cm11

HOME.apk

-Find smili file : ThemeUtils.smali

smali\com\sonymobile\home\runtimeskinning\

-Open with Notepad++

Find this lines:

.line 36
.local v3, "themeColor":I
const-string v4, "somc_theme_accent_color_dark"

const-string v5, "color"

const-string v6, "com.sonyericsson.uxp"

invoke-virtual {v2, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v0

.line 38
.local v0, "colorId":I
if-nez v0, :cond_0

.line 40
const-string v4, "semc_theme_accent_color"

const-string v5, "color"

const-string v6, "com.sonyericsson.uxp"

invoke-virtual {v2, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v0

Change Code:

"somc_theme_accent_color_dark" to this "holo_blue_dark"

"semc_theme_accent_color" to this "holo_blue_dark"

"com.sonyericsson.uxp" to this "android"

SAVE FILE

CLOCK WIDGET

-Find file : Utils.smali

smali\com\sonyericsson\advancedwidget\clock\

-Open with Notepad++

-Find this lines:

.line 66
const-string v4, "somc_accent_color_neutral"

const-string v5, "color"

const-string v6, "com.sonyericsson.uxp"

invoke-virtual {p0, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v4

const-string v4, "somc_theme_accent_color_light"

const-string v5, "color"

const-string v6, "com.sonyericsson.uxp"

invoke-virtual {p0, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v4

Change Code:

"somc_accent_color_neutral" to this "holo_blue_light"

"somc_theme_accent_color_light" to this "holo_blue_light"

"com.sonyericsson.uxp" to this "android"

SAVE FILE

MUSIC WIDGET

Find file : Util.smali

smali\com\sonymobile\advancedwidget\util\

-Open with Notepad++

Find this lines:

.line 72
const-string v4, "somc_accent_color_neutral"

const-string v5, "color"

const-string v6, "com.sonyericsson.uxp"

invoke-virtual {p0, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v4

.line 78
const-string v4, "somc_theme_accent_color_light"

const-string v5, "color"

const-string v6, "com.sonyericsson.uxp"

invoke-virtual {p0, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v4

Change Code:

"somc_accent_color_neutral" to this "holo_blue_light"

"somc_theme_accent_color_light" to this "holo_blue_light"

"com.sonyericsson.uxp" to this "android"

SAVE FILE

TOP Contact WIDGET

Find file : TopContactsUtils.smali

smali\com\sonymobile\advancedwidget\topcontacts\

-Open with Notepad++

Find this lines:

.line 262
const-string v4, "somc_accent_color_neutral"

const-string v5, "color"

const-string v6, "com.sonyericsson.uxp"

invoke-virtual {p0, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v4

.line 268
const-string v4, "somc_theme_accent_color_light"

const-string v5, "color"

const-string v6, "com.sonyericsson.uxp"

invoke-virtual {p0, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v4

Change Code:

"somc_accent_color_neutral" to this "holo_blue_light"

"somc_theme_accent_color_light" to this "holo_blue_light"

"com.sonyericsson.uxp" to this "android"

SAVE FILE

World Clock WIDGET

Find file : ColorizeUtils.smali

\smali\com\sonymobile\advancedwidget\util\

-Open with Notepad++

Find this lines:

line 53
const-string v4, "somc_accent_color_neutral"

const-string v5, "color"

const-string v6, "com.sonyericsson.uxp"

invoke-virtual {p0, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v4

.line 59
const-string v4, "somc_theme_accent_color_light"

const-string v5, "color"

const-string v6, "com.sonyericsson.uxp"

invoke-virtual {p0, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v4

Change Code:

"somc_accent_color_neutral" to this "holo_blue_light"

"somc_theme_accent_color_light" to this "holo_blue_light"

"com.sonyericsson.uxp" to this "android"

SAVE FILE

RECOMPILE ALL APPS

Copy applications in the right places and Done

You now have the Xperia apps changing accent color According holo_blue_light and holo_blue_dark

Of course, not all app can thus modify. Sometimes a person making the Port of APP to CM11 can delete these lines in smili files

The color codes and packages can be in different places, depending on the device and Rom

You should then find these lines in the files smili

const-string v4, "holo_blue_light" This line represents the value in the file color.xml

const-string v5, "color"

const-string v6, "android" This value is the name of the package that contains the file color.xml

"android" is the name of the package framework-res.apk

More Apps Soon Greetings RXS DEV TEAM

BEFORE:

AFTER: