yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] dully79:
Image locations and names.

Editing the two following apk's will dramatically change the appearance of your device.

Where to find icons and their names-

system/app/SystemUI.apk/res/drawable-hdpi:

​

Status bar background:

The status bar is controlled by a png oddly named "statusbar_background.9.png".

Notification background:

This is notification blind or curtain as some people call it. This is controlled by "status_bar_background.png".

Quick settings/toggles:

These are underneath the status bar when you pull down the notification panel and go by the name of "quick_panel_icon_***_png".

Connection icons:

All of the connection icons from 3g, WIFI, GPS and signal strength also live in SystemUI and go by the names of "stat_sys_***.png".

"Clear" button:

This sits on your provider bar when you have notifications. This goes by the name of "btn_default_small_***.9.png".

system/framework/framework-res.apk/res/drawable-hdpi:

​

Buttons:

The buttons that appear throughout the system are controlled by 2 sets of png's named "btn_default_***.9.png" and "btn_default_small_***.9.png".

Menu's:

The menus are controlled by images that contain the name "menu_***.9.png".

Menu icons:

The icons that sit on your menu background are conveniently named "ic_menu_***.png".

(Beware that some apps use their own ic_menu icons!!)

Pop-ups:

These are the little windows that "pop-up" and display information and the background when you are choosing your widgets. These are cleverly named "popup_***.9.png".

Battery:

The battery icons are under the name "stat_sys_battery_***.png".

TIP: Anything that appears in your status bar will start with the name "stat_"

Be careful when editing .9.png's, these

will

cause force closes and boot loops if not edited properly. You have been warned!!!
[Galaxy S II Themes and Apps] Phone_Guru:
In SystemUI.apk I changed the .png files called tw_quick_panel_icon etc but there was no change in the icons.
[Galaxy S II Themes and Apps] dully79:
No change to what icons???

You need to tell me add much info as possible. At this moment in time I have yet to perfect the power of telepathy.
[Galaxy S II Themes and Apps] Phone_Guru:
Obviously, the quick panel icons as directed in the previous post.
[Galaxy S II Themes and Apps] dully79:
The previous post doesn't mention "tw_quick_panel"
[Galaxy S II Themes and Apps] Phone_Guru:
there are no quick_panel_icon files in systemUI of the ROM I'm using, only tw_quick_panel_icons
[Galaxy S II Themes and Apps] dully79:
What rom is that?

Does it have jkay mod?

The easiest thing is just extract your apk and look through to match up the icons.

Or you could remove the "tw_" from the image and try that.

Every rom I've used the quick panel icons have been controlled by "quick_panel_png"
[Galaxy S II Themes and Apps] billab0n6:
Hie dully!

Just a quick question, how do u theme the icons in app drawer? I'm using GO launcher ex by the way...

Is it possible?
[Galaxy S II Themes and Apps] billab0n6:
Oh and sorry dully, I had to ask...

Izzit any hassle to theme the Facebook app to a transparant background?
[Galaxy S II Themes and Apps] sukhjit_bhullar:
Thanks for the guide
[Galaxy S II Themes and Apps] dully79:
Use the go launcher theme factory to create your own theme.

No, just change the widget background to your own image.

There is a button that says thanks for you.
[Galaxy S II Themes and Apps] billab0n6:
Hiya dully..

I mean theme the app of Facebook, not just the widget... e.g. transparant market
[Galaxy S II Themes and Apps] dully79:
You need to edit the smali and xmls inside the apk, there might be one hanging around xda
[Galaxy S II Themes and Apps] Phone_Guru:
If you're trying to theme a ROM with the Lidroid MOD the icons for the quick toggles are located in system/framework/lidroid-res.apk/res/drawable-hdpi

---------- Post added at 06:17 PM ---------- Previous post was at 05:40 PM ----------

Where would I find the image(s) for the tab backgrounds on the top of the phone app and the line underneath?
[Galaxy S II Themes and Apps] dully79:
Cheers, that's good to know as I've never used lidroid.

The tabs have "tab" in the name, they are scattered about the place.

Some in framework-res, some in twframework-res, some in Contacts.

If your on a tw rom them they're in twframework called "tw_tab" if I remember correctly.
[Galaxy S II Themes and Apps] Phone_Guru:
I found some images with tab in the name in twframework-res.apk but changing them has not helped. I have managed to make the bar at the top red as seen by turning the phone horizontally but the tabs cover them in blue in portrait mode.

In an slightly related themeing note do you know how to change the colour of the afterscroll glow? I want to make it red but I assume I need to edit an XML file which I do not know how to do.
[Galaxy S II Themes and Apps] dully79:
When I first tried theming the top dialer tabs, I only got them changed when I edited twframework.

On my rom the overscroll glow is controlled by

" overscroll_edge.png"

" overscroll_glow.png"

In framework-res.
[Galaxy S II Themes and Apps] Phone_Guru:
Found them. Only problem is that some of the PNG's that I extract from my ROMS using 7zip don't open using Greenfish. There is no rhyme or reason. I can open them in paint and re-save them but then they don't display correctly when edited.

Can you make your two files red and PM me?
[Galaxy S II Themes and Apps] billab0n6:
Hi dully, its me again..

I would just like to check with u...

As u said in your thread about the empty template... If I dun have the file in framework folder which is SystemUi.apk, how do I create an empty SystemUi.apk file or is a folder just fine?
[Galaxy S II Themes and Apps] shockwaverider:
This happens a lot to me too, try Gimp, it's never given me any trouble.

And a question for dully - I've noticed when I've looked inside some apk's, instead of the progress_horizontal.xml containing a set of gradients, it calls up 3 9.png's. I tried to do the same thing in framework-res, but then the 9.png's have disappeared after recompiling. Do you know if this is doable and I'm just too thick to do it, or will it just not work? Thanks in advance, and thanks for putting up this thread!
[Galaxy S II Themes and Apps] dully79:
You've encountered a slag of a png.

Index pngs are a nightmare, you'll have to open it in gimp and convert it to rgb.

There is an online photo editor that I can't remember off the top of my head, if I can get at my PC tomorrow I'll post a link.
[Galaxy S II Themes and Apps] dully79:
The only progress pngs I've encountered are

" progressbar_indeterminate1,2,3 and 4.png" in framework-res

These show when preparing for an action, eg just before a download.

To be able to add images and use them in any apk you need to create ids for them in values/Id.xml

You will be able to edit progresses_horizontal to change from colors to images and vice versa, you just need the correct code.

What exactly have you done?
[Galaxy S II Themes and Apps] shockwaverider:
These definitely aren't the progress_indeterminate_*.png's, they're named the same as the 3 gradients that would normally be in progress_horizontal.xml.

So yeah, I didn't know I needed to add something in id.xml, I'll give that a go tomorrow. All I did was to pull the 9.png's from the drawable-hdpi of a themed market app that I use into my framework-res (w/o extracting) and edited the progress_horizontal.xml to match. Any advice on what to add/edit in id.xml, or anywhere else? If/when this works, I'll have a go at making my own icons for it, which will be my introduction to creating 9.png's…
[Galaxy S II Themes and Apps] dully79:
What are these pngs named?
[Galaxy S II Themes and Apps] shockwaverider:
I'm not at my pc so I can't tell you for sure. Something like progress_background/primary/secondary. Like I said, I think they were named corresponding to the labels of the gradients they replaced in progress_horizontal.xml. I decided to look after I noticed that some apk's have much more polished-looking progress bars than can be had just from a simple gradient.
[Galaxy S II Themes and Apps] dully79:
The best person to speak to would be Pendo, he added custom progress bars to his transparent markets.
[Galaxy S II Themes and Apps] shockwaverider:
Thanks, I'll ask him!
[Galaxy S II Themes and Apps] Phone_Guru:
I made some progress. I managed to make the tab selection colour red but it covers almost the whole tab instead of being a thin line at the bottom. There is still a thin blue line under the red also.

Good Night
[Galaxy S II Themes and Apps] billab0n6:
so dully... =(
[Galaxy S II Themes and Apps] Phone_Guru:
You just make an empty folder called SystemUI.apk Remember it's case-sensitive.
[Galaxy S II Themes and Apps] shockwaverider:
Systemui.apk isn't in framework folder, it's in apps folder: system/apps/systemui.apk
[Galaxy S II Themes and Apps] dully79:
That's probably due to that image being a .9.png, if you've pulled it and edited it without editing the 9 patch border then that's your problem.

Or

You've used the wrong image dimensions.

Sorry mate I must have missed your post. I've been inundated with countless PMS lately, plus I've been trying put the finishing touches to the new house and keep the girlfriend happy.

If your using 7zip just navigate into the system/app/ folder within the empty template zip, then right click and add new folder named "SystemUI.apk"

Thanks for your support.:)

And lol at the tags at the bottom of the page.:D
[Galaxy S II Themes and Apps] Phone_Guru:
It's an example. He wanted to know how to create an empty apk or whether a folder was good enough. He used the example of SystemUI.apk so I told him that he only needed to create a folder called the same as the apk he wanted to edit. I'm sure he's smart enough to know where files are located if he want to edit them.

---------- Post added at 03:09 PM ---------- Previous post was at 02:55 PM ----------

I didn't change the dimensions of any files that I edited. Could you explain a bit about the .9 patch or point me to a good, easy to follow guide?
[Galaxy S II Themes and Apps] billab0n6:
Yeah I know where the files are, its coz i'm juz confused whether it should be an apk file or just create a folder named SystemUi.apk...

Thanks for answering my question dully and phone guru... Most kind!
[Galaxy S II Themes and Apps] billab0n6:
Sorry mate I must have missed your post. I've been inundated with countless PMS lately, plus I've been trying put the finishing touches to the new house and keep the girlfriend happy.

If your using 7zip just navigate into the system/app/ folder within the empty template zip, then right click and add new folder named "SystemUI.apk"

Thanks for your support.:)

And lol at the tags at the bottom of the page.:D[/QUOTE]

Anyway dully! Hope everything is good with your gf and your house! Best wishes bro!
[Galaxy S II Themes and Apps] billab0n6:
Can Swype keyboard be themed?
[Galaxy S II Themes and Apps] dully79:
Yes mate, any apk can be themed.

Before you ask I haven't themed the new version of Swype so I don't know if it's changed.
[Galaxy S II Themes and Apps] dully79:
Here you go mate:

http://pixlr.com/editor/

Simply open your indexed image and save.

It's that easy.:)
[Galaxy S II Themes and Apps] dully79:
The skinny on .9's

What are are .9.png's and how do i edit them??

.9's are very simple to use, it's when they are created incorrectly they become a pain in the arse.

.9.pngs use a 1 pixel BLACK (000000) border to determine its characteristics and how it behaves.

The green borders (top and left) controls which part of the image is stretched.

The red borders (bottom and right) controls where the text is displayed on the image if applicable.

The image below shows you how the borders contol a .9.png:

I used green and red for display purposes!!.

WHENEVER EDITING .9.PNG'S ALWAYS ENSURE THE BORDERS ARE NOT COMPRIMISED AND MUST BE A SOLID BLACK, RGB CODE= 000000

You can use a graphics editor to create these borders but i prefer to use "draw9patch.bat" tool which comes with android sdk. draw9 lets you preview what your stretched image will look like.

TIP: If your image has rounded corners avoid adding pixels around them like the image above. This will prevent the png from being stretched and looking like a turd!:)

When do i edit the 9patch border??:confused:

If you decompile an apk and make edits to a .9.png please check that your borders are unaffected and remain black/000000.

If you create an image from scratch then expand the canvas 2x2 pixels (thats a 1 pixel border for each side) and draw your BLACK borders.

Or

Open it up with draw9 and add borders.

Hope this helps.:)
[Galaxy S II Themes and Apps] Vertumus:
Great thread mate :)

Bravo

Sent from Samsung Galaxy S II powered by ICE CREAM SANDWICH DOMINATION
[Galaxy S II Themes and Apps] dully79:
Cheers mate.;)

If it helps stop people from asking the same stupid questions over and over, and lets the devs/mods/themers get on with what they do best then im happy.

And hopefully this will help uncover some amazing new themers.

If it does i want 10% of all future theme earnings!!:p
[Galaxy S II Themes and Apps] TRusselo:
LOL i just wrote some quick instructions for a guy. should have read the xda portal sooner...might as well share it!

here is my winrar method:

(feel free to copy to |OP| as alternate method)

mod instructions... basic if you need more info. learn to search there are 4000 guides on how to change an app image.

you need to be rooted, have root level file manager and winrar on windows. if you arent running windows you should know better.

use root level file manager to go to 'system/app' or 'data/app' folder and copy your .apk to

sdcard

.

copy to

PC

right click .apk > open with... > choose program >

WinRar

look through folders inside APK and copy all

folders

with .PNG images to desktop (or work folder)

look through the images in the folders (change veiw to thumbnails) and find the

name of the image

you want to change and the

name of the folder

it was in.

Go get, or create your custom image, and name it that name. **Close to original shape/size. **shape sometimes more important than size, use judgement comparing the image you found and how it ends up looking on-screen on phone. android will stretch/shrink/expand to what it wants.

Use winRar to open the .APK again and naviage to the place where your image goes and drop the new one into that folder.

A window with options will come up and select Compression Profile : STORE

Click ok

Close winrar.

Copy .apk to SDcard

Use root file manager to rename original .apk to .apk.bak (backup)

Then copy your modded .apk to folder.

Andriod OS apps usually require Reboot (pull battery), some user apps dont.

if you get force closes, delete file and restore your .bak to .apk

DONT MESS WITH ANY IMAGE ENDING IN

.9

.PNG only regular .pngs

for more on .9.pngs... search google.. what is ....
[Galaxy S II Themes and Apps] esk02k:
Well done for making front page dully bro. Nice little thread you've got here. Hope your good.
[Galaxy S II Themes and Apps] dully79:
Thanks.

Haha, front page of the portal. Quite bizarre to see my name in lights.:)

Cheers for the winrar alternative, ilk link of in the OP.
[Galaxy S II Themes and Apps] lilott8:
This is awesome. Thank you.
[Galaxy S II Themes and Apps] m1keyb:
Great thread dude thanks :) *subscribed*
[Galaxy S II Themes and Apps] dully79:
Your both very welcome.:)

It's they're anything anyone would like me to make a guide for?
[Galaxy S II Themes and Apps] m1keyb:
There is but you would have to remove "basic" from the title ;) (still very much learning the basics but coming up against non basic problems :( )
[Galaxy S II Themes and Apps] dully79:
That's fine, I could add an extra post to the beginning with "advanced" title.

What's the beef??
[Galaxy S II Themes and Apps] victorwalter:
Is it possible to do transparent lockscreen to cm9?

Thanks

[]s

VW
[Galaxy S II Themes and Apps] dully79:
To be honest I haven't tried cm9 yet so I can't say.

Sorry.:(
[Galaxy S II Themes and Apps] manishdev:
Hi

I have a question

Question 1

I learned porting recently and since i am a i9100g user der are less themes so what i do is take i9100 themes (universal VR Themes) delete all the xmls and resource and all other files and just leave .png files and flash it. The porting in this way is a success but not full as for example i still see my Progress bar as stock green color.

Any clue how can i do this and port the complete theme?

I know i can always decompile framework-res apk and change the progressbar.xml (Read in a guide and tried it works) but is der a easier way for porting a complete A-Z of a theme?

Question 2

In universal VR Themes most of the .xmls are unreadable (i use notepadd++) any specifice reason why they are made like dis? Since if i use them the way dey are while porting along with pngs i get force close errors or bootloops.

Thanks for the help
[Galaxy S II Themes and Apps] dully79:
You've done the right thing, i wouldnt recommend using our xml's.

The best thing is ask the original themer what xml's/smali they have changed then replicate that using your base and add it to the theme.zip. Only they know what has been changed.

e.g

My Phone Candy has the progress_horizontal.xml in "system\framework\framework-res.apk\res\drawable"

If you replicate the values inside my xml onto YOUR xml then there should be no conflicts and you will get a blue progress bar.

To do this:

*get a copy of i9100 framework-res.apk,

*drop in the progress_horizontal.xml into res\drawable,

*rename it to "i9100_framework-res.apk" and decompile it,

*then if you decompile YOUR framework-res.apk you can compare the differences and copy across values.

*recompile, open up the NEW framework-re.apk,

*goto res/drawable and move the edited progress_horizontal.xml to your universal theme.zip to the corresponding folder

*flash and rebbot and you should see your new progression bar.

The reason they are unreadable is because they are compiled.

You need to decompile them using your prefered method to make them readable.

You should use the xml's from your base with the necessary theme changes otherwise it can cause the problems you describe.

It's unfortunate that the devices are almost identical and yet they have these silly problems.....

There should be one united base framework instead of all these seperate fragmented frameworks for different devices.:(

Hope this helps, dont be afraid to ask if you need anything.;)
[Galaxy S II Themes and Apps] manishdev:
Thanks for the answer, it was more clear than my question itself :)

This may be a little of the topic but i will still ask.

1)I can never decompile systemui correctly both with apk manager 4.9 and apkmulti tool. Can you suggest why this happnes or wat other tool must i use for this?

2)I decompile framework-res and just try to change the battery icons (all battery charge and use) by copying another themes battery icons to the one i want to change but when i go for compiling i get errors any reason why this happns? Since i am not adding any new pngs just changing them....

Thanks a lot :)
[Galaxy S II Themes and Apps] dully79:
1- You need to install the dependent framework:

framework-res.apk and twframework-res.apk.

Get apktool and type into your cmd window

apktool if LOCATION OF FRAMEWORK

eg.

apktool if C:\framework-res.apk

apktool if C:\twframework-res.apk

you can add tags also..

apktool if C:\twframework-res.apk touchwiz_framework

this will install it with the name "touchwiz_framework"

http://code.google.com/p/android-apktool/

2- If your just changing images you don't need to decompile, you can just open up the apk and drop the images in.
[Galaxy S II Themes and Apps] superdog404:
Hi dully79 - Is there a way to get this dialer in the sgs2 i777 http://xdaforums.com/showthread.php?t=949972 It was made for the Captivate so uses a "dialertabactivity" app?

Thank you

superdog404
[Galaxy S II Themes and Apps] dully79:
It looks like the contacts.apk has the same layout as the Contacts.apk on our dveices so it should be a straight forward porting of images.

Or you could try my dialer.

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

Sorry shameless plug.:D
[Galaxy S II Themes and Apps] superdog404:
ok dully79 - It installed and works on my at&t i777. I was a little afraid to break something but appears to work fine. Next question would be how to get color all the time not just on key press?

Thanks for the Great job in your training. I managed to get the battery changed with your instructions.
[Galaxy S II Themes and Apps] dully79:
The easiest way would be:

*Pull the images out of the zip into a folder,

*Duplicate the folder

*Rename the images

eg

"call_dial_btn01_normal.png"

would become

"call_dial_btn01_press.png"

*Put the newly named images back into the zip and flash.

Hope this helps.:)
[Galaxy S II Themes and Apps] mossination:
Hi I'm from the skyrocket forums and just wanted to say thank you for this amazing guide. I have a question. If I wanted to theme an app (by changings hex colors in xml) or change the color of a .9, I would decompile, do my changes and then compile and sign, correct?
[Galaxy S II Themes and Apps] dully79:
Thank you and your very welcome.:)

Your correct, although if it is a system apk you don't resign it.
[Galaxy S II Themes and Apps] mossination:
Thanks for the response. This is more apk multi tool related. I was having trouble decompiling an apk but then I read your guide for advanced decompiling and that fixed it. Now I'm having trouble compiling the apk back up.

It gives me the error: " Caused by: brut.common.BrutException: could not exec command [aapt, p, -F..."

I know its not a theme related question but was wondering if you or anyone else here had any ideas about it. I'm on Windows 7 btw and I've been trying to google the solutions with no luck.
[Galaxy S II Themes and Apps] dully79:
Post your log please.
[Galaxy S II Themes and Apps] mossination:
lic symbol drawable/winset_cancel_button_press declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Atiq\AppData\Local\Temp\AP
KTOOL7976256761332002964.tmp, -I, C:\Users\Atiq\apktool\framework\1.apk, -S, C:\
Android\android-sdk\projects\Camera.apk\res, -M, C:\Android\android-sdk\projects
\Camera.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\Atiq\AppData\Local\Temp\APKTOOL7976256761332002964.tmp, -I, C:\Users\Atiq\a
pktool\framework\1.apk, -S, C:\Android\android-sdk\projects\Camera.apk\res, -M,
C:\Android\android-sdk\projects\Camera.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Press any key to continue . . .

I copied and pasted what I thought was enough. If not just ask.
[Galaxy S II Themes and Apps] dully79:
Have you tried deleting your "Public.xml" from "res/values" and compiling?
[Galaxy S II Themes and Apps] mossination:
Just tried and it didn't work. Their is a file named "apktool.yml" that wasnt there before. Im new to this.
[Galaxy S II Themes and Apps] dully79:
When you decompile the "details" are stored in apktool.yml.

Lets go through what you have done so far:

*Have installed the framework-res.apk for the apk you are decompiling?

*Have installed the dependency framework (twframework-res.apk/com.htc.resources.apk) for the apk you are decompiling?

*What does the log say when you decompile, post the log.txt.
[Galaxy S II Themes and Apps] dully79:
Thats the log from compiling, post the log from decompiling. Attach it if you can, my pet hate is is big long error messages in threads, grrrrrr.;)