A simple guide to theme your android roms
Whats this??We are going to theme apps. You can choose your own app.
Requirements
1.Any text editing software. I prefer notepad++
2.Any tool that can recompile and decompile
3.A site for hex color codes. Use this
InstructionsDecompile the apk you wish to edit.
Go to /res/values/colors.xml
There you see the name I.e the color is for which part
At last of the sentence you will see color codes in hex form
Don't change the first three (I.e. #xx)
Now go to the site i gave link of for color codes
Choose your color and copy the hex code
Now go colors.xml and search what you want to change and replace the hex code you copied from the old one
Like this way you can theme any apps like dialer,contacts,framework,systemui,etc
Note:- You can change the first two digits of code but thats for transparency so I prefer dont touch it
Isn't it very simple??
Please hit thanks if I helped you
XDA:DevDB Information
Theming Your ROM, Theme for the Android General
Contributors
Devam03
Version Information
Status: Testing
Created 2015-02-09
Last Updated 2015-02-09
Related
So I've found myself re-installing the Syndicate ROM several times in the last few days. Been fooling with things a lot, getting edumacated. My question is, I would like to include the Syndicate theme add-on (with battery %) in the ROM to begin with. In other words, I don't want to have to flash the stock Syndicate ROM, and then have to flash the theme separately.
I unzipped both the stock ROM and the theme and it seems to me all I would have to do for this to work is just write over the applicable stock ROM files with the ones from the add-on theme, re-zip the files, put on SD card, etc.
Would this work?
Also, if I wanted to remove say the ES File Explorer from the stock ROM and maybe replace the YouTube app with 1.6.19 and then re-zip, etc. Would that work as well?
this is reposted from jairomeo in nexus forums but this helped get me started:
[THEME] The Ultimate Android Themeing Guide - Updated 4/26
Since we know information for creating themes is spread out all over the place and sometimes hard to follow and understand, I have started compiling a guide using the information spread throughout XDA and other forums. Hopefully this can become a Sticky
I've sent this out to a few new themers and such and they have found the parts that are complete very helpful.
Initially I wanted to wait until it was complete before posting it anywhere, but I've hit a wall on being able to put my thoughts together. I am kind of busy and stressed out with work, therefore I am putting up this way users can review and other themers and maybe start compiling some of the missing information. I also hope for non themers to give feedback or post questions and ideas can be added and maybe get my creative juices flowing again.
The guide is a collaboration of information from many themers/users. I am making sure to provide credit for all individuals writings. I am writing it in word, but posted it in Google Docs to all can view.
If you are going to link to this, please link back to this thread and not the document, this way we can keep the conversation in one spot and work together as a community, to have a document that isn't tool and utility based, but one that teaches people how to edit themselves, and teach with potential of finding more things we can control.
I will update the copy on Google Docs until it's completion.
Link to the guide:
The Ultimate Themeing Guide
Soon additions (red have been added):
Add smail edit for Gmail LED by brtioso http://forum.xda-developers.com/show...00#post6165700
Add a section on signing update.zip files
Suggestion from Stericson, include the write up explaining the detail of the xml's and what 0800001C means.
Add link for AXMLPrinter GUI http://android.modaco.com/content/t-.../#entry1217176 as recommended by deanesn
Add information from MontAlbert on un'odexing,
Add information to be able to theme market apps from http://forum.xda-developers.com/showthread.php?t=503007
Add zipalign information
Add 08 00 00 1D code and xml from amac25, time to start researching where else this is and what it does
Create a reference table listing the stock apps, and the xml's known to edit inside
Look at http://spreadsheets.google.com/pub?k...3ci5_oxwQ4mGrg and see what needs to be modified/added and add to the document
Add Ted417's tip on editing indexed images, would have helped me if he told me this a long time ago, stingy bastard
Possibly add Ted's signing tool http://alldroid.org/threads/16103-Se...ghlight=Ted417
Add in some of the information from http://forum.xda-developers.com/show...04#post3385304
Add Beyond Compare as a software tool to get started with (recommended by bgill)
Add http://markcarson.com/markcarson/ColorCalc.html or another site that does color conversion codes
I'll add to the to do as things come in. If you want to ask questions or faster feedback, follow me on Twitter.
Since Google Docs screwed up some formatting, I am also putting the current copy in PDF on my site
The document in not complete so PLEASE don't distribute yet or put in other places. Wait until it's finished. I don't want copies floating around everywhere, if I see that, I will pull the PDF
http://www.jbthemes.com/AndroidTheme...ng Guide.pdf
Click to expand...
Click to collapse
Hi all,
I've been theming a little but figured it'd be better to compile from source (something to do with custom layout xmls). I'm quite new to ROM compiling so I have a question for the ROM builder here: what is the way to go for modifying/adepting CM?
I can "fork" it and use the structure and build files from the original and just replacing/editing the files in those directories. But a more elegant way would be to add the modifications in a seperate vendor overlay and use that instead (with the DEVICE/PRODUCT_PACKAGE_OVERLAYS). That way I can keep the original files and keep the modifications in a seperate directory. I've been experimenting with that a little, but with no succes so far. So I'm not even sure it can be done.
Thoughts, opinions?
krispijn_s said:
Hi all,
I've been theming a little but figured it'd be better to compile from source (something to do with custom layout xmls). I'm quite new to ROM compiling so I have a question for the ROM builder here: what is the way to go for modifying/adepting CM?
I can "fork" it and use the structure and build files from the original and just replacing/editing the files in those directories. But a more elegant way would be to add the modifications in a seperate vendor overlay and use that instead (with the DEVICE/PRODUCT_PACKAGE_OVERLAYS). That way I can keep the original files and keep the modifications in a seperate directory. I've been experimenting with that a little, but with no succes so far. So I'm not even sure it can be done.
Thoughts, opinions?
Click to expand...
Click to collapse
The way I did it on Floyo is the following:
I forked the android_vendor_cyanogen repository, and then add this line to the products/common.mk:
Code:
# Common CM overlay
[B]+#PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/floyo[/B]
PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/common
Then all my floyo specific theming goes under overlay/floyo in the same repository. You can see my initial commit for this here - unfortunately its not just theming stuff there....
To build the CM untouched theme for floyo, I (almost) only comment the above line and rebuild. In my case, I have also changed some default colors in the code itself, under the framework/base package and the CMParts package. To build the CM theme I undo these changes as well and then rebuild.
One final note, if your building just one ROM with one theme, you should not have any problems with this. If your thinking of using this to build the framework-res.apk only, and possibly other files your theming, and then pushing only them to a CM6 based ROM, from my experience you'll run into all kinds of sh**.
The way I make the CM theme today, is I do the above changes (comment the above line and undo my default colors code in the code of the framework and CMParts). Then do a completely clean build (remove the entire out directory first). Finally I do a full recursive diff of the entire ROM against the entire regular floyo ROM and package only those files which changed under system/framework/ and system/app/. Basically, I am releasing 2 different ROMs, just to save bandwidth I only package the diffs.
Hope this helps.
Exactly what I wanted to know.. thanks man!
krispijn_s said:
Hi all,
I've been theming a little but figured it'd be better to compile from source (something to do with custom layout xmls). I'm quite new to ROM compiling so I have a question for the ROM builder here: what is the way to go for modifying/adepting CM?
I can "fork" it and use the structure and build files from the original and just replacing/editing the files in those directories. But a more elegant way would be to add the modifications in a seperate vendor overlay and use that instead (with the DEVICE/PRODUCT_PACKAGE_OVERLAYS). That way I can keep the original files and keep the modifications in a seperate directory. I've been experimenting with that a little, but with no succes so far. So I'm not even sure it can be done.
Thoughts, opinions?
Click to expand...
Click to collapse
If you want just to change xmls - i think apktool is more simple way to do this .
hawst said:
If you want just to change xmls - i think apktool is more simple way to do this .
Click to expand...
Click to collapse
True, but I want to do more than that eventually... also compiling is fun and it gives me a better understanding of Android
Hey everyone!
I've been building the latest 2.1 for Flame/ZTE Open C and I can't get the fonts to render correctly:
(clickable)
I do have Fira Sans installed on my machine (OSX), are there any extra steps that I need to take during config or build?
Any info is appreciated! Thanks!
I'm not allowed to post links as I do not have enough posts here, but if you go to the Developer Phone Guide on MDN for the Flame about halfway down the page you will set "Flame Font Fix". You should find a link to a download and script to run that will add some new fonts and hopefully fix your issue as it did for me.
Gaya fonts
FinallyI found the way to port all Sony Xperia Movie themes to Cm12.1.1Theme is nearly done you can see new changes in title bar
Hello guys I ported all Xperia themes…
I made all current themes already so you can use it directly by installing them
This Port enable the Xperia theming features to Cyanogen Mod Builds
It has ability to theme framework part and Xperia home launcher
so you will love it..
My Port will helps to Xperia theme developers to port their Xperia themes to Cyanogen Builds So , Theme Developers also can sell their themes for Cyanogen Builds
Guide to manually port new themes
Theme is in two types
1) Old Xperia themes ( Those releases with jellybean or kitkat )
2) New Xperia themes ( Those releases with Lollipop )
To identify themes Old/New
Old Themes has these image files in drawable-xxhdpi
HTML:
semc_btn_check_off_holo_dark_indicator.png
semc_btn_check_off_holo_light_indicator.png
semc_btn_check_on_disabled_holo_dark_indicator.png
semc_btn_check_on_disabled_holo_light_indicator.png
semc_btn_check_on_enabled_holo_dark_indicator.png
semc_btn_check_on_enabled_holo_light_indicator.png
semc_btn_check_on_holo_dark_indicator.png
semc_btn_check_on_holo_light_indicator.png
semc_btn_radio_off_holo_dark_indicator.png
semc_btn_radio_off_holo_light_indicator.png
semc_btn_radio_on_disabled_holo_dark_indicator.png
semc_btn_radio_on_disabled_holo_light_indicator.png
semc_btn_radio_on_enabled_holo_dark_indicator.png
semc_btn_radio_on_enabled_holo_light_indicator.png
semc_btn_radio_on_holo_dark_indicator.png
semc_btn_radio_on_holo_light_indicator.png
New Themes has these image files in drawable-xxhdpi
HTML:
semc_list_activated_holo_dark.9.png
semc_list_activated_holo_light.9.png
semc_list_focused_holo_dark.9.png
semc_list_focused_holo_light.9.png
semc_list_normal_holo_dark.jpg
semc_list_normal_holo_light.jpg
semc_list_pressed_holo_dark.9.png
semc_list_pressed_holo_light.9.png
semc_list_selector_disabled_holo_dark.9.png
semc_list_selector_disabled_holo_light.9.png
semc_progress_bg_holo_dark.9.png
semc_progress_bg_holo_light.9.png
semc_progress_primary_holo_dark.9.png
semc_progress_primary_holo_light.9.png
semc_progress_secondary_holo_dark.9.png
semc_progress_secondary_holo_light.9.png
semc_rate_star_big_on_holo_dark.png
GETING DUMP
Just get original Xperia theme
Open [Old/New]theme.apk with 7Zip or any zip extaractor
And extract it and go to “assets” folder and get android.zip, com.sonyericsson.home.zip and com.sonyericsson.uxp.zip
Then rename all those .zip to .apk
And then decompile (ALL) them by apktool or any android decompiler
PORT FRAMEWORK PART
Go to (decompiled) android.apk > res
And copy “drawable-xxhdpi” folder to mytheme.apk > assets > overlays > android > res folder
(So your path will become mytheme.apk > assets > overlays > android > res > drawable-xxhdpi)
PORT HOME LAUNCHER PART
Go to (decompiled) com.sonyericsson.home.apk
And copy “res” folder to mytheme.apk > assets > overlays > com.sonyericsson.home folder
(So your path will become mytheme.apk > assets > overlays > com.sonyericsson.home > res)
PORT COLOR PART OF THEME
Go to (decompiled) com.sonyericsson.home.apk > res > values
Open colors.xml (You will find the lines like this)
HTML:
<color name="somc_theme_accent_color_dark">#ffbd8c01</color>
<color name="somc_theme_accent_color_light">#ffbd8c01</color>
<color name="somc_accent_color_neutral">#ffbd8c01</color>
Replace the color code with your theme Color code
Now open folder mytheme.apk > assets > overlays > android > res > values
Open colors.xml
<color name="somc_color_accent_dark">#CODE OF SOMC_THEME_ACCENT_COLOR_DARKsss</color>
<color name="somc_color_accent_light">#CODE OF SOMC_THEME_ACCENT_COLOR_LIGHT </color>
<color name="somc_color_dark_primary_dark">#CODE OF SOMC_ACCENT_COLOR_NEUTRAL </color>
<color name="somc_color_primary_dark">#CODE OF SOMC_ACCENT_COLOR_NEUTRAL </color>
<color name="somc_color_dark_primary_light">#CODE OF SOMC_ACCENT_COLOR_NEUTRAL </color>
<color name="somc_color_primary_light">#CODE OF SOMC_ACCENT_COLOR_NEUTRAL </color>
Replace code like this (After done it look like this)
HTML:
<color name="somc_color_accent_dark">#ffbd8c01</color>
<color name="somc_color_accent_light">#ffbd8c01</color>
<color name="somc_color_dark_primary_dark">#ffbd8c01</color>
<color name="somc_color_primary_dark">#ffbd8c01</color>
<color name="somc_color_dark_primary_light">#ffbd8c01</color>
<color name="somc_color_primary_light">#ffbd8c01</color>
NOTE:
In some theme drawable-xxhdpi images name like xxxxxx_am.9.png
So rename those images like xxxxxx.9.png
(In short remove “_am” part of image name)
Do not skip replace image files that is in my [Old/New]theme.apk but not in your created theme.apk
Example
If one image like semc_list_pressed_holo_light.9.png is in my theme but not any image with that name in your theme will crash your theme on installation of apk ...
Good Luck
Guys sorry for delay, Please wait just little
I'm Damn too sure , If you are Xperia movie theme lover
You are gone a love my work
i have explained it before 3-4 months
You can look this page:good:
http://forum.xda-developers.com/crossdevice-dev/sony/guide-how-to-add-xperia-stuffs-to-cm12-t3026474
Thanks for your work.
Yahh, Bro. But New Lollipop Themes are different . . .
And theming Framework with CM12.1.1 is really different , To theme Framework we need proper Style.XML that took resources from Real themes Drawables
And to theme com.sonyericssion.home I used that Method you send in reply
I made template thats only need to replace Drawable folder
I tried that with above old xperia themes but it won't works mean , New Lollipop themes are different then old ones
My theme template not support those themes you have shown in Pics
I heard @Ambor have ported old themes
Time to take guidance from @Ambor
Nice bro. good work @gamzekal
Bro. I cant just Can't theme "alert dialog" Can you provide me guide to theme that ?
Alert Dialog
You mean like this?
yes
wolfmannight said:
I made template thats only need to replace Drawable folder
I tried that with above old xperia themes but it won't works mean , New Lollipop themes are different then old ones
My theme template not support those themes you have shown in Pics
I heard @Ambor have ported old themes
Time to take guidance from @Ambor
Nice bro. good work @gamzekal
Bro. I cant just Can't theme "alert dialog" Can you provide me guide to theme that ?
Click to expand...
Click to collapse
Yes i have ported themes from KK to CM11 But it only worked on my framework.
As far as the port of themes Lollipop matter is quite simple because between CM12 and Stock rom does not have a large difference.
when it comes to port themes with KK or CM11 to Cm12
it is quite difficult because you have to know very well these systems.
and it is very very time consuming
Ambor said:
Yes i have ported themes from KK to CM11 But it only worked on my framework.
As far as the port of themes Lollipop matter is quite simple because between CM12 and Stock rom does not have a large difference.
when it comes to port themes with KK or CM11 to Cm12
it is quite difficult because you have to know very well these systems.
and it is very very time consuming
Click to expand...
Click to collapse
yahh really time consuming , I'm working on it around a 2 week
And finally its done . . . . .
I'm Creating my PayPal account . . .
If you really like my work , So you can offer me a cup of coffee
Cup of coffee really need while you are working late night
wolfmannight said:
yahh really time consuming , I'm working on it around a 2 week
And finally its done . . . . .
Click to expand...
Click to collapse
Realy cool my Friend
Good luck off course
hey any one know
how to theme this tabs ?
which code of styles.xml relate with these tabs
Finally I Done It ...
To see my works Go on First Page
@gamzekal and @Ambor I finally done it , Is it legal to use paid themes drawables to port for CM ?
wolfmannight said:
@gamzekal and @Ambor I finally done it , Is it legal to use paid themes drawables to port for CM ?
Click to expand...
Click to collapse
I think it is legal.
Custom ROM Image in Settings.apk
Featured in Cosmic v2, I was searching for this for a long time, I happened to ask for help to some people, but, it didn't work out.
I knew the code to be added, but I was adding it in wrong file, then i figured it out and mod was complete
I looked back and remembered that Sniper Killer suggested me to try custom layout and smali editing. I knew, it was nothing to do with smalis, duh. Just a simple ImageView Tag it was. But the Custom Layout thing was true.
Guide
1. Download the SettingsSource.zip
2. Decompile your Settings.apk
3. Extract contents of SettingsSource.zip to respective folders in Settings.apk
4. Open /res/xml/device_info_settings.xml
You'll see several <Preference android:title tags
Add this just a line above the first Preference tag:
Code:
<PreferenceCategory android:layout="@layout/areebisawesome" android:key="blah" android:title="" />
Finally, it will look like this.
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:layout="@layout/areebisawesome" android:key="blah" android:title="" />
<Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
Save the file
5. Now,go to /res/drawable/
There, you'll see cosmic.png Change it to any png of size 320x200 You can change this size description in /res/layout/areebisawesome.xml
6. Recompile the apk
7. Enjoy
And if you want a method for changing the image on clicking, my buddy abhi922 has found a very easy to follow way for that :
And if you want a method for changing the image on clicking, my buddy abhi922 has found a very easy to follow way for that :
http://forum.xda-developers.com/show...1&postcount=36
XDA:DevDB Information
[GUIDE][MOD]Adding custom ROM image in Settings.apk, Device Specific App for all devices (see above for details)
Contributors
AdvaitT17, iamareebjamal
Version Information
Status: Beta
Current Stable Version: 1.0
Stable Release Date: 2015-12-23
Current Beta Version: 1.0
Beta Release Date: 2015-12-23
Created 2015-12-23
Last Updated 2015-12-23
Guys this is guide for "ANY DEVICE"
If this post is useful.....pls hit thx button..
AdvaitT17 said:
If this post is useful.....pls hit thx button..
Click to expand...
Click to collapse
The SettingsSource.zip download link would be helpful.
Double check your link to post about clicking image to change. It brings up a blank page.
Sorry sir the link which I have posted is not incorrect but it is mixed with other lines that's why it show about.blank in browser
Regards,
AdvaitT17
AdvaitT17 said:
Sorry sir the link which I have posted is not incorrect but it is mixed with other lines that's why it show about.blank in browser
Regards,
AdvaitT17
Click to expand...
Click to collapse
Where is the link? I cant find it.
*quoted by mistake
Here is the SettingsSource.zip http://www.mediafire.com/download/lkybr2ijle6qryc/SettingsSource.zip