yashsingh1/xdaforums huggingface dataset:
[Android Themes] korabeca:
Thank you mate !! :)
[Android Themes] hell_lock:
Hey i am trying to complile framework-res.apk after editing style.xml and adding 2 png's but I always get an error. I have used both apktool and apk manager
[Android Themes] xavierjohn22:
Try mine
[Android Themes] eerie_silence:
Hey guys, i need help.

im try port some graphics and needs replace png to 9.png image .How android understand .9.png? Where is in framework xml describe .9 images? I read many posts and guides, but all of them teach how draw .9 image.

Or i need use eclipse for this?

Sorry for my english pls.
[Android Themes] mckr32:
awesome guide mate

thanks
[Android Themes] Gunthermic:
Tryign to understand what your askign sir. .9.png's simply put are images that android knows it can adjust the size and placement of text/image on top of. During compiling process apktool compiles the .9.png.

if you have Android SDk loaded there is a batch file called Draw9bat(i think that is the name) this allows you to edit and place the .9 lines. .9 lines are on the outside edges of image and can be the only thing on the outside line of the image..

I hope that helps some..
[Android Themes] rootlinux:
Thanks
[Android Themes] life:
Here is something you can add to the OP, dfuse06 did a little dropdown notification mod for sense 1, you welcome to check it out here:

dfuse06's thread

he also included a video of him changing the clock via an tweak app in Tommy tomatoe's rom

youtube link
[Android Themes] Jomota7:
Beutifull

I like your post, nice job great job. Thanks for help my :-D.

Have a god day!
[Android Themes] kamiskull:
Thank you!
[Android Themes] droidxpert:
sir i decompiled framework-res.apk and i have modded the pngs in drawable ldpi folder.but when i am trying to recompile it it shows errors in every png i modded..i modded using photoshop cs6...please help
[Android Themes] Ticklefish:
What errors are you getting?
[Android Themes] Mazer.one:
If you mod *.9.png files you have to decompile this files before edit, personally i use the tool "9patchPngSuite" by kakomalo .
[Android Themes] buckhunter:
You can also open .9s in a new layer do the edits then flatten and save.
[Android Themes] Mazer.one:
I didn't know that, thanks !
[Android Themes] droidxpert:
sir,after flattening am getting a white background with every png.How to solve this one?
[Android Themes] buckhunter:
Ok sorry you have to select the image without boarders / cut/paste that into a new layer then do the edits from there
[Android Themes] droidxpert:
should i duplicate the layer and proceed and then flatten it?
[Android Themes] buckhunter:
Pm sent
[Android Themes] dude1986:
nice guide... THX
[Android Themes] felixjet:
anyone know a guide for go launcher themes? :( i dont know how to make them, but i wish

ty
[Android Themes] kaero1983:
Thank :D
[Android Themes] flastnoles11:
http://www.goforandroid.com/GDTEn/soft.aspx?softid=21&nav=2
[Android Themes] droidxpert:
sir,

when i am decompiling SystemUI.apk am getting some diff logs such as

C:\>cmd

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\>apktool d SystemUI.apk

I: Baksmaling...

testI: Loading resource table...

I: Loaded.

I: Loading resource table from file: C:\Users\user\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

W: Cant find 9patch chunk in file: "drawable-ldpi/status_bar_close_on.9.png". Re

naming it to *.png.

W: Cant find 9patch chunk in file: "drawable-ldpi/btn_default_small_pressed.9.pn

g". Renaming it to *.png.

W: Cant find 9patch chunk in file: "drawable-ldpi/btn_default_small_normal.9.png

". Renaming it to *.png.

W: Cant find 9patch chunk in file: "drawable-ldpi/shade_header_background.9.png"

. Renaming it to *.png.

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

C:\>

and i cant do the compilation after modding some .9.png's are corrupted i think..(showing nothing)

plz help
[Android Themes] m1keyb:
It seems you're having problems with the 9patches...there are many different ways and this isn't the easiest but you won't have problems if you do this, works with gimp not tried with anything else

Decompile / open image with gimp

Layer/ - Duplicate layer

Select the bottom layer in the layer list and then

select/ - all

select/ shrink/ - 1 pixels

Edit/ - cut

You've now got a layer with your 9patches on.

Select the top layer and edit it *Important* - after editing

select/ - all

select/ shrink/ - 1 pixels

select/ - invert

Edit/ - cut

You've now got a layer with your image on and the 9patch area has been removed.

merge visible and save.

Like I said there are different ways and I just used that to try and explain a little...when you're editing the image you're changing the 1 pixel border in some way which is giving the 9patch error. It's important that with the 1 pixel border the black bits remain black (000000) if they were a slightly different shade due to editing you wouldn't notice...and the transparent bits must remain transparent.
[Android Themes] brenstar:
So I've gone through all of the battery Icon pngs in the systemUI apk of Newts one S rom.

Whenever I go to recompile it I instantly get an error:

2012-05-13 12:25:01 (498 KB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists.

A subdirectory or file place-apk-here-for-modding already exists.

A subdirectory or file place-ogg-here already exists.

A subdirectory or file place-apk-here-to-batch-optimize already exists.

A subdirectory or file place-apk-here-for-signing already exists.

java version "1.7.0_02"

Java(TM) SE Runtime Environment (build 1.7.0_02-b13)

Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Femputer\AppData\Local\Temp\APKTOOL7279533592437503379.tmp, -I, C:\Users\Femputer\apktool\framework\1.apk, -I, C:\Users\Femputer\apktool\framework\2.apk, -S, C:\Android-SDK\projects\SystemUI.apk\res, -M, C:\Android-SDK\projects\SystemUI.apk\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)

at brut.androlib.Androlib.buildResources(Androlib.java:248)

at brut.androlib.Androlib.build(Androlib.java:171)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:182)

at brut.apktool.Main.main(Main.java:67)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Femputer\AppData\Local\Temp\APKTOOL7279533592437503379.tmp, -I, C:\Users\Femputer\apktool\framework\1.apk, -I, C:\Users\Femputer\apktool\framework\2.apk, -S, C:\Android-SDK\projects\SystemUI.apk\res, -M, C:\Android-SDK\projects\SystemUI.apk\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:87)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)

... 6 more

Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified

at java.lang.ProcessBuilder.start(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at brut.util.OS.exec(OS.java:78)

... 7 more

Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified

at java.lang.ProcessImpl.create(Native Method)

at java.lang.ProcessImpl.<init>(Unknown Source)

at java.lang.ProcessImpl.start(Unknown Source)

... 11 more

Now I've read though it a dozen times and can't really figure out what I should even be looking for in the log.

Thanks for the Help.
[Android Themes] PieceKeepr:
Here's a noob themer question that I can't find an answer to. I have a theme (system theme, not a bunch of app icons) I like a lot but would like to have the same theme in a different color. Is there a way to change the color of the assorted png files as a group or do I have to edit each file individually? Since there are over 1000 items in drawable-hdpi I really don't want to try it one item at a time. Given, not all files would get modified but a lot would.
[Android Themes] MountainKing7:
Wow...thanks for this post. New here. Hope I can contribute more later. Cheers
[Android Themes] buckhunter:
Try Faststone
[Android Themes] PieceKeepr:
I'll check it out. Thanks
[Android Themes] PieceKeepr:
The resizer or the viewer? They both say they have color tools but the resizer has a batch mode.
[Android Themes] iepurasu_poznas:
thanks
[Android Themes] KBizzle:
Ok, I know I'm late to the party but I have a few questions. If the answers are in this thread, just tell me that and I'll search when I get to a pc. I just started extensively theming stock ics. So here are my questions.

Index - 1 layer images.

I am only wanting to change the color. Currently I am using gimp but I have CS5 as well, I just prefer the selection tools in gimp, it's what I'm used to. Typically with these images I go to image>mode and change it to rgb. Then using colorize, I adjust the HSL. While this seems to work, I'm afraid it may cause problems down the road.

Any help is appreciated.
[Android Themes] joeylproctor:
Wow.

I knew themeing wasn't the easiest process in the world, but wow! I spent about an hour reading some of the guide and gave up. I'll leave it to the masters. New found respect and appreciation for the devs I've loaded from. Thanks to all of you who do us this service!:D
[Android Themes] vlatinlove:
Here is a link with tons of tutorials on themeing specifically for EVO 3D Sense but there is all sorts of tutorials in this thread that can benefit other devices, or modifying apks.

themeing guide

Hope this helps someone and sorry if it has been posted before.
[Android Themes] gurnishdhillon:
Galaxy Note ?

Guys , I have a quick one to ask you .

Is Galaxy note a HDPI or XHDPI?

Also , If u were creating an app to work solely on the Note, what folders would be present in ur res diectory?

/drawable.......?

/values......?

layout...?

Thanks in advance for any suggestions....
[Android Themes] gurnishdhillon:
Anyone? ??
[Android Themes] zelendel:
Well as I was gonna post a question I guess I can play a little give and take. The Note uses images from both folders. Main one is XHDPI but it also uses ones from HDPI. Found out in working on a port of the theme I am working on.

Now For my question. Anyone know where I could find the layout for this image? It is using a divider and I need to redirect it to a diff image. Not sure why it uses a list divider instead of a vert divider.
[Android Themes] SXUsr:
Never given me any issues changing the image to rgb and using it as is. I often wonder why they bother using index images in the first place.
[Android Themes] Jumba:
8-bit (indexed) pngs are usually a lot smaller than 32-bit. Apply a theme with a lot of unoptimised images and you will see slow-downs. To avoid this, it's always good practice to run your pngs through e.g. PNGOptimizer before release. It will often shave a few MBs off the final file size.
[Android Themes] m1keyb:
I think it's select_dialog & select_dialog_holo
[Android Themes] PieceKeepr:
I ran a bunch of png files through this optimizer and they are half, of less, the original file size but they are not indexed. Is the optimizer supposed to index them or is that a seperate process?

I used this one ... PngOptimizer
[Android Themes] Jumba:
It doesn't appear to index them... I thought it did at first. It just optimizes them in other ways I guess.

Beware, don't feed it .9.png files. If you're going to do this, do it before compiling them.
[Android Themes] theimpaler747:
No problem! Let me know if you have any questions or need some guidance along the way
[Android Themes] dgwood12:
I read the stuff in the guide about .9 pngs but am confused.

It says:

Unless you are trying to change the size of images or anything, you really don’t need to mess with the headaches of making your own .9 files, which is where I give my tip:

Download the source code from either Cyanogen’s github or from the Android source itself.

Android Source - https://android.git.kernel.org/

Cyanogen’s github - http://github.com/cyanogen

So unless I'm actually changing the size of the.9 pngs I don't need to mess with guides? So if I am just changing the colors I can just save over the existing and re compile and I'm good? Also, I'm not sure what the links are to download. Would the framework-res.apk pulled from my phone be the same thing as those? Anyone that could clarify for me? Thanks!

Sent from my Droid Incredible
[Android Themes] theimpaler747:
That is correct, if all you are changing is style, use the helpful hint in my guide ;) Also, the file you get from your phone is going to be the same as the one in the zip from your rom, yes :D
[Android Themes] dgwood12:
Ok. So I found your tip. Sorry for all the questions. I don't think I am doing things right because I don't see the guides when editing the files to change the colors. What I do is pull my framework-res.apk via root explorer to my SD card. I place that in the folder for modding or whatever its called with the apk tool. I open the script file, select option 22 to select the framework file. Now I select option 1 to decompile for image editing. Now when I open a .9.png in PhotoShop I should see guides? If so I am not. What am I doing wrong? Thanks for all your help.

Sent from my Droid Incredible
[Android Themes] theimpaler747:
Actually I think it should be option 9 for decompiling..... Perhaps that's why
[Android Themes] dgwood12:
Ok. I'm not around my computer right now but ill try that when I am. So if I understanding correctly when I use option 9 I should see the guides when editing?

Sent from my Droid Incredible
[Android Themes] theimpaler747:
Correct, you will have an image with the .9png borders around it. Edit the image, leave the borders alone and recompile :)
[Android Themes] dgwood12:
Amazing! Thank you so much! Now with this method I don't need to run them through eclipse right? I just re compile? This saves SO much time!

Sent from my Droid Incredible
[Android Themes] theimpaler747:
Exactly :) that's what makes it so nice

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] mejack03:
What is op? :eek:
[Android Themes] dgwood12:
Original post (the first post of the thread)

Sent from my Droid Incredible
[Android Themes] theimpaler747:
Original post ;)

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] Noonski:
Okay, so i went ahead and edited a .9.png file in the folder.

First time round i painted the black dots manually (fail got error compiling with .9.png files)

I then used original .9.png file and cut out the part within the guide and then pasted the new one in place and saved.

Succes.

So I can't just go in and redraw the patches.

Unless you have a trick for that to? (IAW it's not just pure black being written to file?)
[Android Themes] theimpaler747:
First of all, glad you got it, and second of all, if you want to change the sized of the border, you'll have to do that with draw9patch and eclipse ;) the decompile edit trick is only good for changing the image color/style :) (at least that's my knowlegde, maybe someone else knows something)

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] Noonski:
It still saves a lot of time.

Haven't checked the results in Rom yet.

But as I mentioned I see a lot of frameworks for Desire that either have the lock buttons with wrong colours or the text for the left slider only showing up very late to the left.

So I'm hoping the GB framework i got these sliders from fix that.

Otherwise the fault is in an XMl file :( not my thing yet.
[Android Themes] bioan:
I tried to theme Settings.apk. I've decompiled it succesfully but all the images are with .pro extension. What can I do ? I have also opened a thread here: http://xdaforums.com/showthread.php?t=933579
[Android Themes] theimpaler747:
It's most likely a .9png is the image is off, if the color is off it's probably a XML ;) I can help you with those if it is :)

Are you on windows? What are you using to decompile? They should be .png in drawable
[Android Themes] bioan:
Yes I am on Windows 7. I also have Ubuntu if needed. I have decompiled it with APK Manager 4.9.
[Android Themes] theimpaler747:
Can you post the apk you're using and I'll try to duplicate the results to tell you how to fix that
[Android Themes] bioan:
Sure. You can find it here: http://xdaforums.com/showpost.php?p=11027678&postcount=7
[Android Themes] DoubleTurtle:
Thanks a lot :D Bookmarked.
[Android Themes] rajendrakumardbg:
Useful guide thanx
[Android Themes] drashish36:
Decompiling an app goes fine

But get this error while compiling

Ashishs-MacBook-Pro:~ ashishmohan$ apktool d /Users/ashishmohan/Desktop/SystemUI.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: /Users/ashishmohan/apktool/framework/1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

Ashishs-MacBook-Pro:~ ashishmohan$ apktool b

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:142)

at brut.androlib.Androlib.build(Androlib.java:159)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:182)

at brut.apktool.Main.main(Main.java:67)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:138)

Any ideas??
[Android Themes] dully79:
It's telling you that you don't have the apktool.yml file inside the decompiled folder, you'll have to try decompiling again.
[Android Themes] SibawayhDroid:
Thanks for All .. I hop my time give me chance !
[Android Themes] allaboutarif:
this what i looking for....
[Android Themes] blend.:
Apologies if this has been asked/answered already, but are there any alternative IDE's we can use besides Eclipse?

I'm just starting to learn how to theme (for CM9 specifically) and have prior experience with Eclipsed-based IDE's at work but find them extremely buggy and generally unpleasant to use (Java).
[Android Themes] Jumba:
Have you tried AIDE on your mobile?
[Android Themes] pa.pn2:
i had the same **** like you

search xda for an modified apkmanager

works for me with that...
[Android Themes] DJ_MuTeD:
Nice guide, let me try it :)
[Android Themes] fortemcee:
guys have to say this community is the best place to learn lots of stuffs about android or any other smart or dumb phones. i am crossing my finger your guide teaches me to theme. :)
[Android Themes] Smokem_I:
It did a great job of teaching me as I'm now a Recognized Themer ;). Of course if you can't find what you need here Google is your friend. Almost everything you need can be found here though well besides time and patience lol.
[Android Themes] cwhitney24:
...lots of time and patience lmao

"I am the Bacon Pope"
[Android Themes] xda55:
Awesome!
[Android Themes] Jumba:
So how does one become a Recognized Themer?
[Android Themes] anthonycr:
And a mod noticing your awesome at themes.
[Android Themes] Jumba:
I've been doing this for a while and I don't think my themes are too bad. ;) lol

Does a top 20 MIUI theme and 600 000 downloads count? :p
[Android Themes] elelinux:
HOWTO compile a theme

I have put together a small howto compile a theme, it can be found here in the first post http://xdaforums.com/showthread.php?t=1655946 if anyone is interested
[Android Themes] Davidlemmings:
Thanks for this guide!!
[Android Themes] Smokem_I:
You must apply to become a Recognized Themer. If they agree you will get your status changed :D

Here's a link and good luck!

http://xdaforums.com/showthread.php?t=1646309
[Android Themes] geenyous:
I am very new to themeing and also going down the villain theming road, i.e. I place the themed pngs in the respective folder (xdhpi mostly) and let the villaintheme process do the de- and recompiling magic.

I also mainly try to replace the crappy sense stuff with AOSP ICS stuff an since I would like to to work on different sense 4.0 ROMs, I won't de- and recompile whole apks as this will lead to incompatabilites.

Now for the first time I actually did not merely replace an icon with another one, but themed one myself. My goal is to make the unlock button fit the cyan/black ICS theme.

I don't know what I am doing wrong, afa can see, the two pngs are identical or are they not? The result however is as attached, too small and ugly corners (nevermind the fragments around the "OK", that actually looks good on the phone).

Can somebody please help me or guide me in the right directon so I can learn what I am doing wrong?

I uploaded the files for you, the green one is the original and the blue one is the themed one.

Thanks!

EDIT: Forget the above, I found the Draw 9-patch tool, am playing around with it atm...
[Android Themes] geenyous:
Ok, it didn't work, now I have black lines around the png as if I had drawn them, thought that they would only indicate where the png shall get stretched :confused:

Sent from my de-sensed AOSP ICS modded HTC One X
[Android Themes] Smokem_I:
Alright if you want to edit 9s then you have to decompile the apk first. Once decompiled you can edit anything to your liking. Then once you are finished you compile and all the "black lines" disappear and change into the code android needs to stretch them appropriately. There are several ways to decompile... Search to find the one that works best for you ;) 9s can be tricky but if you figure them out they are great!
[Android Themes] Jumba:
Awesome, thanks.

I reckon you need to do a bit more research on how to create and compile 9-patch png's. ;) There are lots of guides around. See if you can find an app called ultimatex 9-patch compiler.
[Android Themes] geenyous:
Found another guide, will read on. :o

Thanks for the tips, especially the app tip!

Sent from my de-sensed AOSP ICS modded HTC One X
[Android Themes] foxrivertrekker:
Hello,

I am trying to change the battery icon in the notification bar for my atrix running miui 2.6.22.

I am using 7zip and opening the buuf theme mtz, going into the framework.res and dropping the new stat_sys_battery files into the drawable-hdpi folder.

I then close the 7zip, and it says it updated it.

I then put the changed mtz file on my phone and open it with file manager and apply the theme, but it does not have the changed battery icon.

In fact i cannot find the actual png files to match what the current battery icon looks like in the buuf theme. Are those the png files i need to change to change the icon??

Thanks!
[Android Themes] Jumba:
Take a look in...

miuisystemui.apk /res/raw
[Android Themes] foxrivertrekker:
is that in the rom or in the theme file??

cant find it.
[Android Themes] Jumba:
Okay, look for com.android.systemui in the theme file.
[Android Themes] hell_lock:
Anyone knows how to add animations or special effects in the status bar??
[Android Themes] shiro100:
Do someone know how to theme call incoming screen in MIUI? I mean the screen that will show if phone has ringing and caller id is shown on it. How i can theme that screen?

thx
[Android Themes] Jumba:
It should all be in...

com.android.contacts

But things may have changed a bit in MIUIv4.
[Android Themes] PieceKeepr:
I'm trying to modify a CM7 theme and I want to add an icon for incoming calls to the theme. Currently when a call comes in and you are using the holo ring style lockscreen the icon that is used for the incoming call is located in framework-res.apk. The problem is that when you change themes the icon does not change, so you might have an ICS blue theme with a Gingerbread green incoming call.

I have changed the color of the icon and put it back in framework-res but I don't really want to flash a framework zip every time I change themes. Can the png be placed in the theme apk itself and incoming calls redirected to the icon located in the theme? If so how would I do it? I contacted the dev that made the theme originally but he wasn't sure.