yashsingh1/xdaforums huggingface dataset:
[Android Themes] yaibakt:
thanks, but i dont know why i could not decompile the file hue.apk, even when i use above tool :( error always :( the weird thing is I can decompile other apk files.
[Android Themes] kroz:
hehe, that's what this thread is meant for, to help the starters... :)

i can only guide you using photoshop, that's what i'm used to,

"batch convert" is the ability of photoshop to convert all the images according to the command you want

here is one example of the process,

http://www.youtube.com/watch?v=bXJrMO5t0I0

this is just an example and not the exact step you will do

please let me know if you already have photoshop so i can continue writing the steps you may want to do

and regarding the color codes you want to change:

take a look at here and select whichever you want

http://www.december.com/html/spec/color4.html

and take not of its hexcode

then go to res/values folder

open colors.xml via Notepad++

hit Ctrl + H to find and replace specific word

find 9966cc and replace with the 6 digit hex code you have chosen in the link i gave you

hit replace all

save and exit

still in res/values folder

open drawables.xml and do the same

now your colors are all changed (aside from icon colors which can be done via image batch converting) :)
[Android Themes] AnaRelentless:
color

Alright :) I did it.

And yes I do have photoshop :)

Thanks for the fast reply and help :D
[Android Themes] kroz:
nice, now here is what you would do

using the youtube link tutorial i gave

http://www.youtube.com/watch?v=bXJrMO5t0I0

skip to this time 06:10

this is the approx time he opens an image and start making a new "actions" to record every changes you made

open preview.png in res/drawable folder

create a new action (as what you can see in the video), name it to whatever you like

open Hue/Saturation (Image > Adjustments > Hue/Saturation... or Ctrl + U)

select "Magentas" on the second dropdown box (it was "Master" by default when you open it)

you will noticed that you cursor now when you move to the image is the "Eyedropper Tool"

click on the purple part of the preview.png image

you can now adjust the Hue / Saturation and Lightness depends on the color you want it to be

click ok then save and exit

you can now stop the recording of the "actions" you create

now that you have your own "action" to adjust the existing purple color to your own color

remove the preview.png in that folder and put it aside at the moment in desktop for example

you can now start your batch color conversion (around 08:10 in the video)

file > automate > batch

select the "action" you create

under source, navigate to your folder

in my case its in

C:\APK-Multi-Tool\projects\HuePurple.apk\res

take note to select until the folder "res"

make sure to check "Include All Subfolders"

hit ok and batch conversion will start

you can either watch it out while converting or take a coffee break because it will take more than an hour (at least on my laptop)

when its finished, bring back the preview.png in res/drawable folder

now compile, sign and install

and enjoy ;)
[Android Themes] AnaRelentless:
Fantastic!!

I do get this msgs of "the command "hue/saturation" is not currently available" but i just pressed continue and it keeps going.

After this I believe I'm done and I can continue with the process of rebuilding the .apk and it should work, right?
[Android Themes] kroz:
yeah, after decompiling the apk, some images return to the grey mode instead of rgb thats why hue/saturation is not available

but you can just press continue like what you did, no problems with that
[Android Themes] AnaRelentless:
alright. I hope it goes well when I sign it.

one more thing. In case I want certain icons or widgets like the google bar to be normal (the default one) is this step?

remove themed launcher icons

delete these two folders

res/mipmap-hdpi

res/mipmap-xhdpi

I can't believe I got this done in one day (almost) Thanks for your help!
[Android Themes] kroz:
yeah, and its pretty easy to modify right :)

and regarding your question, that step will remove the entire themed launcher icons as you can see when you open your drawer

launcher widgets and some icons are located inside drawable-hdpi and drawable-xhdpi

what launcher are you using?
[Android Themes] AnaRelentless:
yeah it is actually. But one something is new you know how it is, always afraid of screwing up

I'm using Nova Laucher btw.
[Android Themes] kroz:
try deleting these pngs in drawable-xhdpi

nova_ic_home_search_google_jellybean.png

nova_ic_home_voice_search_jellybean.png

nova_ic_home_voice_search_medium_jellybean.png

nova_ic_qsb_search.png

nova_ic_qsb_voice.png

nova_search_frame.9.png

im not sure which is which but these images points to that widget

sometimes trial and error is needed... and patience... :)
[Android Themes] AnaRelentless:
I remove those. and i pressed 15 to compile and sign and install the apk in my phone but it didn't work. I have usb debugging checked.

an error occured :/

could I be missing something?
[Android Themes] kroz:
what was the error you got?
[Android Themes] AnaRelentless:
it says it hasn't been decompiled? I kept the window open all the time
[Android Themes] kroz:
can you post screenshot of the error in the window and attached APK-Multi-Tool.log that you can find in APK-Multi_tool folder
[Android Themes] godmode1970:
[MENTION=3185139]kroz[/MENTION]

For the beginning I want to change the smiley icons from SMS/MMS.

Can u please advice me how to start. I think u don't touch them in your themes, so I can't replace just some images,

And is it possible that u supply an empty skelett template for a theme where we can add images or entries in xml, just to add

items one after the other.
[Android Themes] AnaRelentless:
Hey! It worked. I forgot to replace that file in Apk multitool i guess.

I checked the theme but some icons are off. the edges look pixelated. I guess that in the process of the color changing the ones that didn't have the color suffered somekind of modification.

Maybe I have do it again keeping the ones without coloring separeted with the ones I do need to color and then put them in the folder all together

Thanks very much. I'll do that and see how it goes.
[Android Themes] kroz:
yeah, i removed it before because of the conflicts in my other theme SimpleSoft where the bubbles and smileys are in both colors

that's why,

but im planning to add it back on next release

smileys on talk are included in Hue already so i think you can use that in the meantime

since gtalk and mms emo icons have the same original file names

you can just redirect mms smiley's to the existing gtalk smiley's in Hue

insert these lines in your com_android_mms.xml

(i grab these codes from com_google_android_talk.xml)

<item name="drawable/emo_im_angel">@drawable/talk_emo_im_angel</item>
<item name="drawable/emo_im_cool">@drawable/talk_emo_im_cool</item>
<item name="drawable/emo_im_crying">@drawable/talk_emo_im_crying</item>
<item name="drawable/emo_im_embarrassed">@drawable/talk_emo_im_embarrassed</item>
<item name="drawable/emo_im_foot_in_mouth">@drawable/talk_emo_im_foot_in_mouth</item>
<item name="drawable/emo_im_happy">@drawable/talk_emo_im_happy</item>
<item name="drawable/emo_im_heart">@drawable/talk_emo_im_heart</item>
<item name="drawable/emo_im_kissing">@drawable/talk_emo_im_kissing</item>
<item name="drawable/emo_im_laughing">@drawable/talk_emo_im_laughing</item>
<item name="drawable/emo_im_lips_are_sealed">@drawable/talk_emo_im_lips_are_sealed</item>
<item name="drawable/emo_im_mad">@drawable/talk_emo_im_mad</item>
<item name="drawable/emo_im_money_mouth">@drawable/talk_emo_im_money_mouth</item>
<item name="drawable/emo_im_pokerface">@drawable/talk_emo_im_pokerface</item>
<item name="drawable/emo_im_sad">@drawable/talk_emo_im_sad</item>
<item name="drawable/emo_im_smirk">@drawable/talk_emo_im_smirk</item>
<item name="drawable/emo_im_surprised">@drawable/talk_emo_im_surprised</item>
<item name="drawable/emo_im_tongue_sticking_out">@drawable/talk_emo_im_tongue_sticking_out</item>
<item name="drawable/emo_im_undecided">@drawable/talk_emo_im_undecided</item>
<item name="drawable/emo_im_winking">@drawable/talk_emo_im_winking</item>
<item name="drawable/emo_im_wtf">@drawable/talk_emo_im_wtf</item>
<item name="drawable/emo_im_yelling">@drawable/talk_emo_im_yelling</item>

and regarding template, you can find some here (just scroll down in that post)

http://xdaforums.com/showpost.php?p=29468468&postcount=4

if you followed the steps earlier, including the eyedropper tool, you are safe in color converting

because it will only changed existing purple colors from the images

it will not touch those pngs without the purple color you have just selected using the eyedropper tool

did you reboot after the installation? its needed sometimes for theme to applied fully

and don't worry, at least now you managed to successfully modified my theme using the guide in OP

this is just your start... :)
[Android Themes] iyunusp:
hi kroz, sorry for noob question. i got this error messege when i compile your theme (see the attachment screenshot below).

(I use vituous ten studio to edit your theme)

sorry for my bad english
[Android Themes] AnaRelentless:
hey so i noticed it also happened in purple ones. It changes the color but distorsions the image. I noticed it's as soon as I open the image with photoshop (it doesn't happen with paint for example). so after the coloring is done and I apply the theme it loses that smothness.

I have no clue with this happens. Like i said the image looks like that when I open it with photoshop.

I guess it makes sense why some of the non colored ones had the same "effect".

In the left is the original image opened with paint, on the right with photoshop... without coloring or retouching.

Any idea?

thanks for the help
[Android Themes] titanic_fanatic:
Check out my application called android batch image converter. It deals with this issue.

When you compile apk's, the graphics are sometimes "optimized" and when you decompile these to change them, they are still "optimized" and look like your screenshot above. If you use my app, it will batch convert them into an un-optimized version. Then you should be able to make the necessary changes and recompile ;)

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

EDIT:

I should mention that this should be done as soon as you decompile the apk... before you convert (change hue)
[Android Themes] AnaRelentless:
Thanks for the info. I did had an issue with the program. I selected the directory (where the res folder is located) and nothing happened.

I begun the process but nothing happened at all. Waited like 10 mins to see if the was some kind of progress but no.

Am I missing something?
[Android Themes] kroz:
to be honest i never experienced these un-optimized images since i start themeing

so i'm not familiar with it

[MENTION=4859152]titanic_fanatic[/MENTION] do you have any idea why it happening on others?

because every apk i decompile, i am having the images as it is

is it computer specs related or java version? i really don't have any idea

and luckily you have that tool, :)
[Android Themes] titanic_fanatic:
I will start looking into this right away. Thanks for the feedback.

I'm really not sure to be honest. I've never been able to open them properly with psp x4, Photoshop cs5 or gimp. When I first ran into the issue, I ended up using the android asset studio online to convert a graphic at a time using the icon generator.

I then realized that the draw 9 patch tool fixes the issue, but it's still one at a time and it adds the 1px border and extension to graphics that are not 9 patch so I set out to fix it and studied the code for the draw 9 patch tool. I don't know what java does in the background, but the tool simply opens the graphic just like you would any other graphic in Java code. I used this concept and open each graphic and save it.that's all there is to that.

I'm assuming that the "optimizing" may have something to do with the vm (dalvik) there intended to be displayed with, which even though it's not java, all the apps are really just java applications which I think is why "java" can read these graphics perfectly on every system regardless of setup.
[Android Themes] godmode1970:
Will the following steps work, when I want to change only SMS smiley icons and want to keep the rest stock like it came with rootbox:

- Decompiling

- Add the above lines to "com_android_mms.xml"

- Remove all other entries from "com_android_mms.xml"

- Remove all entries in public.xml beside the ones which points to "com_android_mms.xml"

- Remove all images in /res/... beside the smiley icons located in "/res/drawable-hdpi" which will be redirected from com_android_mms.xml"

- Remove all other XML files from /res/...

- Compile and sign apk
[Android Themes] kroz:
sorry but i don't have experience using that tool mate,

and i can't read the error message,

it will work but take note of these (i never tested these steps but give it a try)

remove res/anim and res/color and res/mipmap-*** folders

remove all drawables-*** folder in res/ aside from res/drawable and res/drawable-hdpi

in res/drawable don't remove preview.png, icon.png and wallpaper.png and you can delete the rest

in res/drawable-hdpi delete everything except smileys

remove all xml in res/xml folder aside from mms (delete the lines except the smiley redirections)

remove public.xml, dimens.xml, drawables.xml and colors.xml in res/values

remove contents of styles.xml but retain

<resources>
<style name="Hue" parent="@android:style/Theme" />
</resources>

but why not just use flashable zip using VRTheme to morph the smileys if you want stock theme? :)
[Android Themes] godmode1970:
Well that could be also another possibility.I am new to this.

But I will google for it and give it a try too if it's not to difficult.

Thanks again kroz.
[Android Themes] AnaRelentless:
Well guys I just signed and installed the theme and so far so good. I'll probably find some details to fix but I was able to get it done thanks to you of course.

Thumbs up for this post! Thanks for the fast feedback and work :D
[Android Themes] nihS:
i am very sure this will get me forward in theming. thx for this Guide :)

Gesendet von meinem GT-I9001 mit Tapatalk 2
[Android Themes] mao511:
This guide is awesome, Thank you!! I changed the system_stat_sys_wifi_signals but I can't seem to find the wifi in and out arrows so I can change them also. Please help
[Android Themes] kroz:
that indicators are not part of my themes,

do you have already your own modified icons ready?
[Android Themes] mao511:
Thanks for the response, yes I do
[Android Themes] kroz:
that's xhdpi icons right? check if the dimension is 39 x 36 px

add a prefix (system_) on each icon

so it looks like these

system_stat_sys_signal_in.png

system_stat_sys_signal_inout.png

system_stat_sys_signal_out.png

system_stat_sys_wifi_in.png

system_stat_sys_wifi_inout.png

system_stat_sys_wifi_out.png

put those icons in res/drawable-xhdpi

now open com_android_systemui.xml in res/xml

insert these lines

<item name="drawable/stat_sys_signal_in">@drawable/system_stat_sys_signal_in</item>
<item name="drawable/stat_sys_signal_inout">@drawable/system_stat_sys_signal_inout</item>
<item name="drawable/stat_sys_signal_out">@drawable/system_stat_sys_signal_out</item>

<item name="drawable/stat_sys_wifi_in">@drawable/system_stat_sys_wifi_in</item>
<item name="drawable/stat_sys_wifi_inout">@drawable/system_stat_sys_wifi_inout</item>
<item name="drawable/stat_sys_wifi_out">@drawable/system_stat_sys_wifi_out</item>

insert them after

<item name="drawable/nav_bar_bg">@drawable/nav_bar_bg</item>

compile - sign - and install
[Android Themes] yaibakt:
today i try again to:

- delete play store out of the themed apps list.

- make notification background pure black.

i did these steps:

- decompile hue_2.9.apk (did rename to hue.apk): successful.

- delete the file "com_android_vending.xml" in res/xml folder.

- change the line in "com_android_systemui.xml in res/xml"

from

to

- recompile, error (log below) :(

do i miss something?
[Android Themes] titanic_fanatic:
in /res/xml/redirections.xml, remove the following line and recompile ;)

<package-redirections android:name="com.android.vending" android:resource="@xml/com_android_vending" android:minSdkVersion="7"/>
[Android Themes] yaibakt:
i dont have that file in res/xml/ :(
[Android Themes] kroz:
res/values

delete public.xml

i forgot to note this one in OP to remove it,
[Android Themes] titanic_fanatic:
Hey [MENTION=3185139]kroz[/MENTION], if removing the play store from being themed, should he not also remove the line in the redirections.xml corresponding with the play store xml file?
[Android Themes] kroz:
im not using redirections.xml,

i don't but since start that i learned themeing via theme chooser i never had that in any of my themes.apk
[Android Themes] titanic_fanatic:
What file is defined in your android_manifest.xml as the redirections. xml
[Android Themes] yaibakt:
Awesome. Finally recompile and install successfully. Thanks a lot.

Sent from my Samsung Galaxy SII.
[Android Themes] kroz:
here is my manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest android:hasCode="false" android:versionCode="31" android:versionName="2.9" android:installLocation="internalOnly" package="ph.kroz.theme.Hue"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:pluto="http://www.w3.org/2001/pluto.html">
<application android:label="@string/theme_name" android:icon="@drawable/icon">
<activity android:label="@string/theme_name" android:name="com.tmobile.theme.Foo" />
</application>
<theme pluto:themeId="Hue" pluto:styleId="@style/Hue" pluto:name="@string/theme_name" pluto:preview="@drawable/preview" pluto:author="@string/author" pluto:copyright="@string/copyright" pluto:wallpaperImage="@drawable/wallpaper" pluto:styleName="@string/style_appearance_name" />
</manifest>
[Android Themes] leo2589:
Thanks for this perfect guide.. Clear and direct.. I will try to change framework background how you suggest me in your Hue theme thread.. It looks like simple to do..

Thanks a lot Kroz :thumbup:

Sent from Tapatalked JB GT~i91x10²​

​
[Android Themes] kroz:
yep, just follow the instructions and once your tools and requirements are all set up, it is so easy to change some parts, background in your case, :)
[Android Themes] mao511:
How would go about changing the email background or the headers? In the sunlight I can't tell which are read and unread emails.
[Android Themes] kroz:
res/drawable-xhdpi

email_list_read_holo.9.png

email_list_unread_holo.9.png

these are .9.pngs, preserve the black boarders on each icon to avoid compile errors
[Android Themes] leo2589:
If I would sign the apk theme without installing directly into in my phone using command 15 which command do I have to use to create the standalone apk in my apk multitool folder? :D

EDIT: Just open script batch and read.. :D

Just finished.. thanks Koz for this simply but useful guide

Sent from Tapatalked JB GT~i91x10²​

​
[Android Themes] kroz:
that's great, you can now enjoy modifying my theme to whatever you like it to be, :)
[Android Themes] JeraldPenus:
Trouble?

Kroz, how can I fix this? I can't compile the modded hue beta, even the 2,9. Is this a computer problem? Or the application itself? Thanks in advance.

There's a problem in public.xml. Some are not defined, some entry index is larger than symbols
[Android Themes] kroz:
delete public.xml before compiling again
[Android Themes] officiallyme:
did you use the framework-res.apk from rootbox?

i triwd installing it and got error messages.

removed and will reinstall everything, from java to apk multitool to android sdk, bit just so i know, which framework are you using?
[Android Themes] kroz:
im using cm10.1 framework i guess :)
[Android Themes] MrDSL:
I looked through here..Kroz did you find where to edit the colors pa roms change the signals bars to?
[Android Themes] kroz:
you mean the color codes that controls their per app colors?

i don't know where, but i think these were coded in java

i just make necessary icons that can handle per app color

i set 33% (or 25%, i can't remember) transparency to the backgrounds of inactive signal bars

so if ever they use per app color that will overlayed the icons, it will still be recognized
[Android Themes] officiallyme:
from the current nightly?
[Android Themes] MrDSL:
Hmmm seems like a silly feature..well looks like ill be ignoring it cause it would ruin my signal icons.
[Android Themes] officiallyme:
would you mind posting your frameworks-res.apk?

i can't seem to install the one from rhe current nightly in virtuous ten studios.

and in apktool i installed it manually but decompiling the systemui.apk fails.

will post a log when i'm at home again
[Android Themes] kroz:
wait you are decompiling systemui.apk of rootbox?

i think you can't decompile that because of slim roms qualifier that dark rootbox is using
[Android Themes] paul_zm:
thx very much.
[Android Themes] officiallyme:
yes, systemui.apk from rootbox.

i wanted to decompile rootbox files. and in the past they all failed. even mms.apk.

i thought i might have found the solution here :(
[Android Themes] Rycon33:
Hi guys, kroz, I'm currently porting an existing theme(via XthemeEngine). I hope you don't mind if I ask a question here. If its not appropriate, tell me immediately and I'll delete this post.

My q is, what's the name of that background bar behind the "Time in state" text?

Tapatalked from my bricked TX
[Android Themes] Primokorn:
I've modified an existing apk theme and everything works well.

For information here is an easy solution to modify many .9.png files with Photoshop in 5 minutes :D http://www.youtube.com/watch?v=bXJrMO5t0I0

Now I'd like to integrate new themed apps in my theme and change the lockscreen icon (to unlock the phone). Any help would be very appreciated :)

Moreover I want to obtain the same rendering as Kroz's Crystal theme for the notifications. Actually I have the same as his Asul theme so I'm wondering which .9.png files I have to modify...
[Android Themes] kroz:
you can't decompile them, every app themed in dark rb is affected

framework, systemui, mms, email, keyboard, contacts, phone, gallery, calendar

you can only modify them by building from source,

no luck using apktool, and other tools, they said in one of their commits that you will be needing modified aapt.exe

try

list_section_divider_holo_dark

in framework

you can't theme lockscreen via theme chooser, use separate flashable zip to morph

i can't remember the exact file name for the notification boarder, im away from my pc

i'll let you know when i saw my files
[Android Themes] Rycon33:
thanks, yup i saw the changes in settings header title, but on the app it never changed, so i guess it's on the app itself so i won't bother it
[Android Themes] officiallyme:
and they probably never released a working aapt.exe?
[Android Themes] yaibakt:
Hi kroz,

I want to change the wifi and signal icons. Now with hue 2.9 on slimbean rom, my screen is pic1. I want those wifi and signal icons as in pic2: active part is blue, inactive part is grey. How should i edit your theme? Thanks.

Brought to you by Samsung Galaxy SII using Tapatalk.
[Android Themes] leo2589:
It's written at the end of the third post

http://xdaforums.com/showthread.php?p=40719168

;)

Sent from Tapatalked JB GT~i91x10²​

​
[Android Themes] yaibakt:
Sorry i forgot to mention that i already did as post3, but the icons didnt show as i want in pic2.

Brought to you by Samsung Galaxy SII using Tapatalk.
[Android Themes] kroz:
decompile both Hue 2.8 and 2.9

you can grab the icons in 2.8 (signal icons in 2nd pic) and replace your icons in 2.9

they have the same file names, look in res/drawable-xhdpi (file names start with system_stat_sys_signal_* and system_stat_sys_wifi_signal_*)

compile back, sign and install
[Android Themes] yaibakt:
awesome :good:
[Android Themes] ChikiBujia:
Hi kroz!!!

I would like to change the font color for apex in your pink hue theme.

I decompiled the apk, but i can't find an xml with the code. Do you know by any chance where i could do it? I want to make it pink :D :p

Thank you sooo much!!!!! :D

Sent from my SAMSUNG-SGH-I717 using Xparent Pink Tapatalk 2