yashsingh1/xdaforums huggingface dataset:
[Android Themes] ldrifta:
you are trying to decompile a framework-res.apk? read the log from apk decompilation tool you are using, most likely its the same thing we are talking about... a** load of png errors lol, see if you can find the original png files required for the specific framework, copy them into the apk then try to decompile & recompile...

other known issues are setting compression level and heap size (options 19 & 20 on 'apk manager')

set compression to 0 and heap size to 512mb (smallest size it will allow)

then decompile, recompile

---------- Post added at 03:31 PM ---------- Previous post was at 03:29 PM ----------

ooo you mean the 1 pixel border around the image? i use gimp for that..
[Android Themes] runwitme:
[Q]transparent dock and dock size

hey all .. im running TN Xplod rc1 rom .. im trying to make my dock transparent but im not sure how to do so .. ive used UOT but it has nothing on dock there .. also i want to resize the dock size .. how would i do so? .. if anyone of you themers or dev can point me in the right directions im willing to learn .. i just started reading about dsixda's Android Kitchen but havent seen anything bout dock in there also ..
[Android Themes] bintel:
this is very helpfully, thanks for the tutorial
[Android Themes] Anatomy82:
wow i agree this tutorial made it easy to understand!! Thanks!
[Android Themes] DaRk_dOg:
Hello everyone,

I need some help regarding some theme-chooser redirections. I've been trying to figure out (with several other respectful themers) how to redirect layout xml's of third party apps.

To be more specific, we have the ability to redirect public resources (framework) but when I try to redirect a layout xml from deskclock, I get several errors, regarding the ids.

Thanks in advance, D_d
[Android Themes] thesmashippy:
Do I need to be running a sense ROM to be able to run adw sense themes?

Sent from my HTC Droid Incredible using the XDA App
[Android Themes] theimpaler747:
No, you need to be using ADW though.
[Android Themes] thesmashippy:
So, say, I'm running Cyanogenmod 7.1, can I download a few themes that will run on the ADW Launcher and make Cyanogenmod look like Sense?
[Android Themes] s2d4:
thanks once again for this tutorial on how to theme :D

For the guys looks for themes, this thread is for learning how to theme, why not try doing it yourself?
[Android Themes] theimpaler747:
I know, it saves a ton of time, trust me :) let me know how it goes when you do it!

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] athanos:
I have to be honest and saythat I have not read through the entire posts here, but a great tool I use is HxD Hex Editor. There is no need to decompile, edit, and recompile xml files. Just make your hex edits and it's done.
[Android Themes] theimpaler747:
I think I linked that, but if you edit without decompiling, its binary not readable ;)

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] Noonski:
Was planning on doing the Lockscreen buttons in Black with A8A8A8 outline and a bit of glow anyway.

And I saw that The Ginger Bread left slider does have the text aligned correctly so I can compare what I did wrong the first time round (Don't mind me but I'm seeing this wrong by default in more Desire Roms)
[Android Themes] theimpaler747:
Cool, so the tip worked well? It should, I use that method, just making sure :D

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] theimpaler747:
Did you see my In Depth look at XMLs? Glad you like the guide by the way, sorry about dinner :p :D
[Android Themes] mejack03:
Yes i saw that post but i doesnt have detailed guide. May be for experts it should be okay for begineers it is not that much good.. i want to know all the android supported commands

Spoon Feed:

You can upload one theme here and explain about each and every folder,file,line

in that theme.apk would be extremely good for begineers. Would you do that?
[Android Themes] theimpaler747:
I guess if I have time, but I do link to a guide in the op that explains a lot of that ;)

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] user7618:
Allow me to translate that:

No. Look at the op and ask questions about stuff you are not sure about.

-----

Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
[Android Themes] juicegraphic:
Nice post.. You do it so well ;)
[Android Themes] theimpaler747:
Thanks man, glad you like it :)
[Android Themes] dgwood12:
This thread gets better and better every day. Thanks so much!
[Android Themes] theimpaler747:
No problem, glad it's becoming a nice tool :) Feel free to ask me any questions you may have!
[Android Themes] dgwood12:
Any chance of adding info about working with .9.png's? I have seen some forums but still am confused about the guides a bit. I think it would be a good addition if you knew a good video or tutorial for these...:)
[Android Themes] theimpaler747:
Ok, did you see my helpful hint in the apk tool tutorial? That's the easiest way :D

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] todd3835:
Sorry if this is a newbish question. I'm looking to start theming a little bit. I'm wondering where I might find the volume slider. I'm guessing it's in an xml as opposed to an image. Any help would be appreciated.
[Android Themes] theimpaler747:
Yes it is, progress_indeterminate.xml I think is one to change as is progress_horizontal.xml and a few other "progress" ones :)
[Android Themes] todd3835:
I'm trying to look at some other themes to see how it's done, and I'm just not seeing these xml's anywhere. I did see them in on theme, and this is the inside of the file:

  0   ¬  \   0 D R d ~  è ì    0 D  i d  r a d i u s
s t a r t C o l o r  e n d C o l o r  a n g l e  c e n t e r Y
c e n t e r C o l o r  a n d r o i d * h t t p : / / s c h e m a s . a n d r o i d . c o m / a p k / r e s / a n d r o i d
l a y e r - l i s t  i t e m  s h a p e  c o r n e r s  g r a d i e n t  c l i p € $ Ð ¨ž*£
    ÿÿÿÿ   $  ÿÿÿÿÿÿÿÿ
   8  ÿÿÿÿÿÿÿÿ
    ÿÿÿÿ   $  ÿÿÿÿÿÿÿÿ    8  ÿÿÿÿÿÿÿÿ
     ÿÿÿÿ     ÿÿÿÿÿÿÿÿ
 ˆ  ÿÿÿÿÿÿÿÿ      ÿÿÿÿ qqqÿ  ÿÿÿÿ qqqÿ  ÿÿÿÿ  ‡C  ÿÿÿÿ  ?  ÿÿÿÿ qqqÿ   ÿÿÿÿÿÿÿÿ    ÿÿÿÿÿÿÿÿ  	ÿÿÿÿÿÿÿÿ
 8
ÿÿÿÿÿÿÿÿ
    ÿÿÿÿ   $
ÿÿÿÿÿÿÿÿ    $ ÿÿÿÿÿÿÿÿ    8
ÿÿÿÿÿÿÿÿ
     ÿÿÿÿ   
ÿÿÿÿÿÿÿÿ
 ˆ  ÿÿÿÿÿÿÿÿ      ÿÿÿÿ Ì™ €  ÿÿÿÿ Ì™ *  ÿÿÿÿ  ‡C  ÿÿÿÿ  ?  ÿÿÿÿ Ì™ €   ÿÿÿÿÿÿÿÿ    ÿÿÿÿÿÿÿÿ    ÿÿÿÿÿÿÿÿ    ÿÿÿÿÿÿÿÿ
 8  ÿÿÿÿÿÿÿÿ
    ÿÿÿÿ 
 $  ÿÿÿÿÿÿÿÿ    $  ÿÿÿÿÿÿÿÿ    8  ÿÿÿÿÿÿÿÿ
     ÿÿÿÿ     ÿÿÿÿÿÿÿÿ
 ˆ  ÿÿÿÿÿÿÿÿ      ÿÿÿÿ Ì™ ÿ  ÿÿÿÿ Ì™ ÿ  ÿÿÿÿ  ‡C  ÿÿÿÿ  ?  ÿÿÿÿ Ì™ ÿ   ÿÿÿÿÿÿÿÿ    ÿÿÿÿÿÿÿÿ    ÿÿÿÿÿÿÿÿ    ÿÿÿÿÿÿÿÿ
   ÿÿÿÿÿÿÿÿ
   ÿÿÿÿ 

So obviously this isn't doing me any good. It's not even really readable......
[Android Themes] Calimero1205:
Thanks for this great guide! Will start to try it now.
[Android Themes] bldon:
how can one manipulate the dialpad to make it look like wp7 dialpad?
[Android Themes] Troska:
Excelente guide, thanks
[Android Themes] SXUsr:
I'm trying to add the slim sliders (like in the screenshot above) to CM7 but having errors with compiling. I've added code to progress_horizontal...

<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background" android:drawable="@drawable/frameworks_res_progress_bg_holo_light" />
<item android:id="@id/secondaryProgress">
<scale android:drawable="@drawable/frameworks_res_progress_secondary_holo_light" android:scaleWidth="100%" />
</item>
<item android:id="@id/progress">
<scale android:drawable="@drawable/frameworks_res_progress_primary_holo_light" android:scaleWidth="100%" />
</item>
</layer-list>

...and progress_indeterminate_horizontal...

<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="200" android:drawable="@drawable/frameworks_res_progressbar_indeterminate_holo1" />
<item android:duration="200" android:drawable="@drawable/frameworks_res_progressbar_indeterminate_holo2" />
<item android:duration="200" android:drawable="@drawable/frameworks_res_progressbar_indeterminate_holo3" />
<item android:duration="200" android:drawable="@drawable/frameworks_res_progressbar_indeterminate_holo4" />
<item android:duration="200" android:drawable="@drawable/frameworks_res_progressbar_indeterminate_holo5" />
<item android:duration="200" android:drawable="@drawable/frameworks_res_progressbar_indeterminate_holo6" />
<item android:duration="200" android:drawable="@drawable/frameworks_res_progressbar_indeterminate_holo7" />
<item android:duration="200" android:drawable="@drawable/frameworks_res_progressbar_indeterminate_holo8" />
</animation-list>

...along with the images, I've had issues compiling but as I'm not now I'm assuming the code is correct in some way, but when I push to the phone instead of the images I'd like to use it's using two battery_low_battery images as the background and stat_sys_battery_1 as the bar which obviously looks ridiculous. Any help or a point in the right direction, like is it just progress_horizontal or progress_indeterminate_horizontal that needs to be edited?, would be much appreciated.
[Android Themes] ronhoover88:
@XperienceD

You will have to add those values in values/public.xml as well in case you add more images/pngs
[Android Themes] ldrifta:
just change the png files, i forget exactly where the dialer images are located but use your brain... it either in contacts, dialer, framework or something related...

---------- Post added at 01:28 PM ---------- Previous post was at 01:24 PM ----------

im not sure exactly what you are trying to do, but from what i read... sounds like your making your own custom battery images and want them on your devfice/rom?

simple as opening your framework-res.apk with 7zip, replace old battery png's with new (make sure you size them correctly and name them correctly, same names as old files) than push apk to device/rom and boom!!

i may have read your post wrong though... lol sorry if i did

---------- Post added at 01:32 PM ---------- Previous post was at 01:28 PM ----------

what exactly do you mean by dock? like the launcher? should be as simple as editing the png file for the selected dock and just add transparency via gimp or photoshop or something..
[Android Themes] SXUsr:
Thanks for that! I'll report back when, and if I sort it, or not lol. :)
[Android Themes] SXUsr:
Got another error now...

...here is the code I just copy and pasted in...

...I've tried googling for info on how to create/link an I.D but haven't found anything, any ideas?
[Android Themes] SXUsr:
Finally managed it with this post :)...
[Android Themes] kurtfloyd:
Looks like it's not a easy way to make a beautiful theme,I will try on. thank you
[Android Themes] SXUsr:
Depends how far you want to take it, when I first started I just replaced/edited pngs and came up with a few decent themes but then when you want to start changing text colours etc then it becomes a little more difficult, but if your prepared to put the time in and persist it pays off.
[Android Themes] Jumba:
Here's a question for the MIUI devs (if any visit this topic)...

I have put together an icon pack and most of the icons apply correctly when the pack is loaded - except for a handful of apps that still show their original icons. I have double-checked that the process names are correct and the strange thing is, when viewing the apps in a task manager (e.g. Quick System Info Pro) I can see the new icons.

So, any ideas why the new icons aren't showing properly in the launcher?

The apps in question are GPS Status, Simple Calendar Widget, VLC Media Player, Flash Player, Burn the Rope and Cut the Rope.

Thanks.
[Android Themes] xavierjohn22:
Use the package name not process names

com.blah.blah
[Android Themes] Jumba:
Thanks for your reply, but I believe I am using the package names (as listed under \data\app) ... unless I'm doing something wrong. It's unusual that only certain apps don't work.

EDIT: Solved, thanks vukandric!
[Android Themes] hulkhaugen:
Cool. I haven't read trough the entire post, just read something in the first post. I would love to replace the the statusbaricons on my LG Optimus Black (Android 2.2 Froyo), they look kind of childish. If i did a backup of my current rom, replaced some of the .png's and saved the archive, would that do? What i'm asking is if my phone would reject the modified rom, and if i would have to do a procedure to "approve" the rom first.

Also, if it is as simple as i imagine, is there a source where i can download the original android statusbar icons, or other nice icons?

EDIT: Seems like the icons are stored in both drawable-hdpi and drawable-mdpi, both need to be replaced? What's the difference?

EDIT2: Seems like mdpi is default and hdpi is LG's artwork...
[Android Themes] theimpaler747:
What's your screen size? Most likely if you have a phone within the last year, it's HDPI. Phone's like the old HTC Hero were MDPI, but I'm not sure about LG.
[Android Themes] hulkhaugen:
It's a Optimus Black, 480x800 i believe. Back to my question, is it just to replace those files? Maybe it's easier to use MetaMorph instead of backing up and installing the modified backup...?
[Android Themes] theimpaler747:
Metamorph is not easy for frameworks, as there is a size and image limit. Just replace the files with 7zip
[Android Themes] bengals1975:
Check out the UOT Kitchen. Tons of ways to customize there (status bar and status bar icons included). It will create a flashable zip for you. Easy peasy. Here's a thread with a tutorial.

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

Sent from my CM7 Incredible
[Android Themes] s2d4:
this thread is about how to do it yourself, like learning......
[Android Themes] ronhoover88:
Anyone know how to change the text in the power menu from black to white?

What XML do i need to edit?
[Android Themes] bengals1975:
I can certainly understand that! I resorted to UOT After I spent a lot of time trying to figure out the 1% battery mod.

Sent from my CM7 Incredible
[Android Themes] theimpaler747:
Nothing wrong with that. If you do that though, it's always good to look back and see how UOT did it so you'll learn as well :)
[Android Themes] hulkhaugen:
Just made a backup of my current rom, replaced a lot of the .PNGs in the /system/framework/framework-res.apk/res/drawable-hdpi folder using 7-Zip, and tried to restore that backup. As i suspected, Colockwork mod ROM Manager aborted due to MD5 mismatch. How to avoid such problem? Is there any possibility to ignore that check?

Also this, but i don't think it's related:
[Android Themes] theimpaler747:
You need to push or flash your modified framework, you can't insert it into a nandroid.
[Android Themes] bengals1975:
Here's what I do.

open your modified framework-res.apk with 7zip and delete "cert.rsa", "cert.sf", and "manifiest.mf"

then sign your modified framework-res.apk. I use AndroidSigner. you can get it here. This will rebuild the files you just deleted for the new apk.

then build an update.zip file. I've attached a sample .zip for a structure for you. you simply put your newly signed framework-res.apk in the framework folder in the zip (I use 7zip for all this. If you create a new zip make sure the compression level is set to "store").

Then sign your update.zip file with androidsigner as well, copy to your SD card and flash it from recovery!

**please note, the script is in edify format, if you have a newer recovery this is what it needs. If this doesn't work, this may be the problem**
[Android Themes] bengals1975:
Btw. The app folder in the zip is where you would put the systemUI.apk if you modified it. If you do you will need to add similar commands in the updater-script file for systemUI like what are there for framework-res.apk. I forgot to delete the app folder in the template I posted. If you don't mod systemUI just delete the app folder from the zip (or don't, it won't matter).

Sent from my CM7 Incredible
[Android Themes] BretskiSmith:
GLAD I found this thread. Big thread, have a couple of opinion questions/

I am running windows 7. do you find it is easier to make themes with windows or linux? I can run linux on my computer if there are more tools for linux and it will be easier or vice versa. If anyone can let me know before I start making downloads that would be appreciated. thanks so much again.
[Android Themes] roscoenr:
I have had good luck with windows
[Android Themes] bengals1975:
I have windows 7, never had a problem. I use 7zip to open apk's and whatnot (and zip files naturally) and gimp for image editing. I use notepad++ to edit scripts since windows notepad screws them up. All freeware and versatile. Also, like i mentioned above I use AndroidSigner to sign zips and apks. I also use a pretty sweet little app on the phone called zipthemer. You can make "theme" files and it can manipulate the apks (SystemUI, Framework-res, whatever) and build a flashable zip file for you. It also creates an flashable undo file if you wish. It's pretty sweet.

Now for what I don't know, one of the things I wanted to do when I looked into theming was the 1% battery mod so my battery indicator in the notification bar would be a segmented circle varying in color with battery charge and the battery percentage level in the center of the circle changing in 1% increments. I made the images but couldn't get the xml files to work out. I had the code to put in there all figured out from another xda thread (mattyg I think??) but the xml's in the apk's but the xml files SystemUI and Framework-res are encrypted or something. Couldn't figure it out. There may be a tool in linux that takes care of that since I know you do need linux to build the ROM. But as far as just manipulating images
[Android Themes] 3rdstring:
The XMLs in an apk are compiled. You need to decompile an apk (apktool or one of the multitude of front ends for apk tool), make the changes to the XML & then recompile.
[Android Themes] BretskiSmith:
Thanks for some feedback. I am looking into theming an entire rom, but I probably need to start with something easier right? like an apk, like messaging or something?

---------- Post added at 04:06 AM ---------- Previous post was at 04:06 AM ----------

and apktool is just a mac/windows app correct?

edit: mac/linux I meant
[Android Themes] bengals1975:
What can I use to recompile? Does apktool do that as well?
[Android Themes] tommytomatoe:
Apktool will decode and rebuild apks. It would be silly if it went one one. Hehe.

Apktool is a java tool. It works across all platforms due to it being java. Mac, windows, and linux.

An example apk workflow:

java -jar apktool.jar if framework-res.apk

java -jar apktool.jar d sample.apk sample

java -jar apktool.jar b sample sample-modded.apk

In a real life experience:

Use the supplied wrapper for apktool.jar so you can replace "java -jar apktool.jar" with "apktool".

apktool if framework-res.apk

apktool d Launcher2.apk Launcher2

Make edits.

apktool b Launcher2 Launcher2-modded.apk

Obviously the final apk can named something other than "sample-modded.apk".

all you need is a lovely signature.
[Android Themes] theimpaler747:
Windows and even Mac works well for me with theming.
[Android Themes] BretskiSmith:
The guide in the OP says to use eclipse. is that separate from java? apktool works if Im using eclipse?
[Android Themes] theimpaler747:
Eclipse is for building apps. Apk tool is for modifying already made ones.
[Android Themes] BretskiSmith:
In the guide it says "Color Change jar http://xdaforums.com/showthread.php?t=535630&highlight=colorChange

a. This no longer works for some ROMs so we will need smali and baksmali"

so should I just not bother with "color change jar"? and just use smali and baksmali?
[Android Themes] mipf:
did anyone here tried theming Espier Launcher?
[Android Themes] hulkhaugen:
Would i have to include all the content of the original .apk, or can i have a framework-res.apk only containing the new files i want to apply?
[Android Themes] Ninolina:
Can somebody tell me what files should I change so that the black fields can become white or light gray and the text become black or dark grey...:) Here are my screenshots so that I will better explain what fields I am talking about...:)

Thanks in advance...:)
[Android Themes] bengals1975:
For the process I mentioned above you would need the entire apk. If you want to just use the changed files you can use metamorph or zipthemer. I prefer zipthemer as metamorph will tend to mess up any widgets you have. However you will need an entirely different .zip structure. I'm at work now, can't really help you with the details. However, here is a post I made where I themed my 3G and wifi icons. The attached files are in metamorph/zipthemer format. you can take a look at them and probably figure out how to build you own I think. If you need help let me know.

Theme Example with attachments in zipthemer/metamorph format
[Android Themes] 3rdstring:
The text controls are in framework-res. Decomplie & in /res/values/styles/xml locate & cahnge the following 2 styles.

"TextAppearance.Widget.IconMenu.Item"

<item name="android:textColor">?android:textColorPrimaryInverse</item>

"Theme.ExpandedMenu"

<item name="android:itemTextAppearance">?android:textAppearanceLargeInverse</item>

For the backgrounds you want menu_background.9.png & menu_background_fill_parent_width.9.png
[Android Themes] ronhoover88:
What do i make to change the color of text in pop up menus
[Android Themes] 3rdstring:
Sorry, never been able to find that one.
[Android Themes] hulkhaugen:
Thanks for being so helpful. I tried to replace a few files in my framework-res.apk, and delete the "cert.rsa", "cert.sf", and "manifiest.mf". I've downloaded PPCGeeks APK & Zip Signer, but here comes a problem. I drag and drop my apk in here, but when i click the Sign button, i get a errormessage saying something like "System can't find given file", seems like a Windows error message since it is written in Norwegian. I do have Java 6 Update 29 and MS .NET Framework 4, three different versions of it...

EDIT: I got it: Step 1 and step 2. Works in Win7x64 ;)

EDIT2: OMG, there's always something. I rebooted into recovery, and tried to apply the update.zip, but i got the message e:can't open /sdcard/update.zip, so i mounted the sdcard from recovery, and renamed the file (it was still update-signed.zip). I also browsed trough the menus and "accidentally" hit the Fix Permissions command. Dunno what may have caused it, but now i get this message: e:error in /sdcard/update.zip. I did rename framework-res-signed.apk to framwork-res.apk before i put it inside the update.zip file. Anyone?

EDIT3: Well i tried some more, but still no go. I started from scratch, but i keep getting the e:error in /sdcard/update.zip message. So i opened updater-scrip in notepad, and found some references to BusyBox. I downloaded that from the market, and when i opened it, i got prompted about which version i wanted to install, so i checked 1.19.3 and taped install. I gave it superuser permission, bu the following message pops up:

Wow, lots of probabilities in that equation, lol. Could this be related to my binaryfile su which won't update?
[Android Themes] bengals1975:
Ouch. OK, lets start with a simple question to see where we're starting from. Which zip example are you using? Maybe you can post your update.zip file for me to take a look at?
[Android Themes] hulkhaugen:
I used the update-template.zip that you uploaded in this thread on page #100...
[Android Themes] bengals1975:
What recovery and version are you running? It's possible you'll need to use an "update-script" not an "updater-script" (amend vs edify)

Also, make sure you aren't using windows notepad to edit/save the script file. It will mess it up. I use notepad++. It's free and pretty cool.

So did you get AndroidSigner to work? Sounds like you did but I wasn't sure. Also, the name of the update.zip file isn't really important. You can call it whatever you want. (but the framework-res.apk has to be called exactly that)