[Xperia Arc Themes and Apps] gamzekal:
How to port Xperia Themes To cm11

Hi everyone

Many peoples have asked to me about porting xperia themes to cm11

I have decided to make a guide for it

Info About Ambor Theme Engine

http://xdaforums.com/showthread.php?t=2766508

Lets start

Steps

1)Download any theme from xperia themes.

2)Decompile it via any Apk Multi Tool

3)After decompiling

Go to xperia theme.apk/res/assests

You will see some zip files.

For example

android.zip

com.android.systemui.zip

com.sonyericsson.home.zip

com.sonyericsson.uxp.zip

....

Change last name of all files from .zip to .apk

Ex: old :android.zip

new:android.apk

4)Decompile all apk that you have changed them.(step 3)

5)Now download any theme from my thread.

http://xdaforums.com/crossdevice-dev/sony/ambor-theme-engine-themes-collections-t2824696

6)Decompile it(step5)

7)Again return to step4

Go to xxx.apk/res/drawable-xxhdpi for all themes

Now you musst be carefull.

compare all of them with drawable-xxhdpi of my theme.

all name musst be same.

Tipp

Easy Compare

for example

go to my theme.apk/res/xml/android.xml

open it

and look at drawable line by line

8)Go to com.sonyericsson.uxp.apk/res/values/colors.xml

open it

you will see some code lines

somc_theme_accent_color_dark

somc_theme_accent_color_light

somc_accent_color_neutral

for example

<color name="somc_theme_accent_color_dark">#ff82c7e1</color>
<color name="somc_theme_accent_color_light">#ff2b5c6a</color>
<color name="somc_accent_color_neutral">#ff82c7e1</color>

This codes are color of theme

copy #ff82c7e1

Go to my theme.apk/res/values/colors.xml/

you will see different lines.Dont worry.

for example

<color name="somc_color_dark">#ff205971</color>
<color name="somc_color_light">#ff205971</color>
<color name="somc_color_light_off">#ff205971</color>

Paste all colors (#ff82c7e1,#ff2b5c6a) to my theme

it musst be show like this after this step

<color name="somc_color_dark">#ff82c7e1</color>
<color name="somc_color_light">#ff2b5c6a</color>
<color name="somc_color_light_off">#ff82c7e1</color>

9)Make the same for all another colors

Tipps about some colors

go to my theme.apk/res/xml/com.xxx.xxx

open it

for example

com_sonyericsson_soundenhancement.xml

open it

you will see this colors lines

<item name="color/scalebar_line_color">@color/scalebar_line_color</item>
<item name="color/scalebar_center_line_color">@color/scalebar_center_line_color</item>
<item name="color/surround_preset_name_color">@color/surround_preset_name_color</item>
<item name="color/surround_preset_summary_color">@color/surround_preset_summary_color</item>

10)After than go to my theme.apk/res/values/colors.xml

you will see like this

<color name="scalebar_line_color">#ffff6265</color>
<color name="scalebar_center_line_color">#ffff6265</color>
<color name="surround_preset_name_color">#ffff6265</color>
<color name="surround_preset_summary_color">#ffff6265</color>
<color name="somc_accent_color_neutral">#ffff6265</color>

This color code #ffff6265 is my theme color.Look at "somc_color_light"

11)At last you musst edit other pngs in drawable hdpi and xxhdpi according to your theme color

How to edit png files?

Look at this thread

[YOUTUBE]watch?v=d3Q1Z4wc3gc[/YOUTUBE]

That´s it.

You have ported Xperia Theme.

12)Dont forget that the name of theme

For this

Go to my theme.apk/res/values/strings.xml

Change the app name

13)Last step

go to mytheme.apk/res/androidmanifest.xml

Find package

ex:com.gamzekal.themename.apk

change it what do you want

14)Compile your new theme.apk

Credits

Of course @ Ambor