yashsingh1/xdaforums huggingface dataset:
[Android Themes] coiledwire:
Hey roscoenr, I noticed your ss has that PITA "&" problems with decompiling keyboards. I haven't messed with flex, but on the GB keyboard, in the raw folder, there's about 5 xmls that should have a "\&" reference instead had "\&&" due to decompiling errors. Also the "<" symbol was all jacked too. It should of been "\<", but was "\&lt;" instead.

I don't know if a biggie for you. But if it is, try looking for the double "amp" in xmls to correct the appearance in the keyboard.
[Android Themes] roscoenr:
Thanks
[Android Themes] roscoenr:
can anyone tell me what is wrong with this. I keep getting this error on recompile.

--------------------------------------------------------------------------
|Sun 05/22/2011 -- 23:35:36.21|
--------------------------------------------------------------------------
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Roscoe\Desktop\apk_manager_4.9\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery_charge.xml:213: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Roscoe\AppData\Local\Temp\APKTOOL5751474688318640194.tmp, -x, -0, arsc, -S, C:\Users\Roscoe\Desktop\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, C:\Users\Roscoe\Desktop\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Roscoe\AppData\Local\Temp\APKTOOL5751474688318640194.tmp, -x, -0, arsc, -S, C:\Users\Roscoe\Desktop\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, C:\Users\Roscoe\Desktop\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more

here is my stat_sys_battery_charge.xml. I know it is a lot but I want to see it work. I have added the pngs to the correct folder and add to the public.xml.
[Android Themes] coiledwire:
I'm on my phone right now, but it looks like whatever is on stat xml, line 213, is wrong. I'd start checking the syntax there, having not seen your file yet.

Also, kind of a side note, I've had poor experiences with apk manager for anything other than image swapping; xmls, smali, and .9.png files got messed up by that script during decompile. If you are decompiling apk, I suggest using apktool 1.4.1 to avoid additional headaches. Just my opinion on this, but I'd definitely check around line 213 in that xml.

Sent on the go, from my evo.
[Android Themes] roscoenr:
I got it i forgot to close up about 10 lines starting with 212
[Android Themes] Gunthermic:
Whats the key to being able to decompile and compile apk like the HTCDialer? Wanting to change some of the xml's and png's.
[Android Themes] theimpaler747:
You need to use the advanced decompiling method with your framework and htc resources apk

Sent from a truly Epic phone on the XDA Premium app ;)
[Android Themes] RayToombs:
I have a questions -

Im I mising something from the above quote? I downloaded and installed when I run the script it says no adb. I have the android SDK downloaded and am sure that this is simple and I am missing something.
[Android Themes] theimpaler747:
That means your phone isn't connected. That's not essential, just hit any key and continue ;)
[Android Themes] RayToombs:
So if I have a theme zip on my pc that I want to change can I still do that? I have been doing a lot of reading and am having trouble. I assume I can take the framework-res.apk and use it with this program.

Thank you for the help so far xda is the only place I have gotten help or a reply.
[Android Themes] theimpaler747:
Right. Just make sure you have the dependent apks there (if there are any)
[Android Themes] RayToombs:
No dependent ones that I know of it's just a theme. When I drag and drop it flashes then nothing.
[Android Themes] theimpaler747:
You have to run the script and decompile it.
[Android Themes] RayToombs:
So I have o run the script decompile then drag and drop? Or decompile after I drag and drop? Sorry there is so much info I think I am confusing myself.
[Android Themes] theimpaler747:
You don't drag and drop anything really.... place in the place—apk-here-for-modding folder, select as your current project, and decompile :)
[Android Themes] RayToombs:
So there is one of my problems I don't have those folders. Let me read again. It said it would create when I ran but never showed.
[Android Themes] theimpaler747:
Did you extract the zip? Should be in the apkmanager4.9 folder.
[Android Themes] RayToombs:
I did I will redownload and do again
[Android Themes] RayToombs:
Thank you theimpaler747 I redownloaded and got the folders I needed. I extracted and now I am optimizing images.
[Android Themes] RayToombs:
So I got this all worked out and I want to make sure that I dont mess this up.

I extracted the APK, optimized the images and made the changes that I wanted - so now how do I get the APK back the way I need it and put it into the zip file I took it from? I understand that I should not sign it I made that mistake before and had to SBF, do I need to do an adb push??

Thank you for the help ahead of time
[Android Themes] cderekw:
Pretty good thread.
[Android Themes] theimpaler747:
Glad you got it.

You need to compile the apk now

Glad you like it :)
[Android Themes] RayToombs:
Sweet thank you then I can uplaod
[Android Themes] RayToombs:
So if I wanted to pull out files to make a theme for the new update to. 596 I want to make sure I pull out the files to make my own zip. Thank you
[Android Themes] Granite1:
Hey Impaler, love your work! I'm just getting into themeing, and a little overwhelmed. I've been reading the UTG in the op, and I have all of the tools. Question I have is, should I start with a theme update file or start with a full ROM?

I have all of Kings roms and a pile of the official themes to work from. Also I pm'd King about a month ago and he gave me the green light to theme his stuff.
[Android Themes] theimpaler747:
Here's what I'd recommend: start with the rom, use the apps and the frameworks from the rom, and then when you're done, release it as a theme in an update zip :)
[Android Themes] RayToombs:
Not sure if you are interested but maybe we can work together to learn. I too have juststarted and have got some programming knowledge. Let me know, I have also been working with a few great themes that have given me tips as well as theimpaler.
[Android Themes] Granite1:
I'm down! Gonna get the images broke down with tha gimp into pngs then go from there. PM me if you want to collaborate! :)

Thanks Impaler, if I hit any road bumps I know where to turn. :D
[Android Themes] theimpaler747:
Yup, let me know if you need anything :)
[Android Themes] RayToombs:
I have a quick questions, I have made all the changes to the PNG files and want to test it out and get it back on the phone. I went to compile and asked if they are sytem apk's I said yes followed the steps and now I have two apk's with the same name that say "unsigned" is this correct or should they be signed??

I also read over the update zip packer and will be attempting that soon.

Thank you
[Android Themes] theimpaler747:
Are they system apps?
[Android Themes] roscoenr:
System apps say unsigned because they keep there signature because it is required fire other apps using them. Just delete"unsigned"and push to phone.
[Android Themes] RayToombs:
They are the framework-res and systemui
[Android Themes] theimpaler747:
Then delete the unsigned and push to system/app :)

Sent from a truly Epic phone on the XDA Premium app ;)
[Android Themes] RayToombs:
So once i push, i should be able to create a zip using the tool provided in the OP.

Thank you for all the help
[Android Themes] theimpaler747:
Pushing it applies the app, you don't need a zip after that.
[Android Themes] RayToombs:
This is where I am lost on that, I do not have the phone plugged in to the PC and was planning on flashing via clockwork. I want to be able to do that so I can share it with others.

Also I did not pull the file I dragged it and dropped the file to use as a project, can I just drag and drop it back??
[Android Themes] theimpaler747:
Not sure what you mean, just use the apk that apk manager spit out at you.
[Android Themes] RayToombs:
I pulled the framework-res out of the rom, made all the changes that I wanted to make to it. followed the steps to get the framework-res completed using the apk manager.

What I want to do it not put it back in the rom all together and create a update zip for the theme.

Does that help
[Android Themes] theimpaler747:
Yeah, just take the update zip for another theme, change the meta-inf update scripts as needed, and replace everything with your stuff :)
[Android Themes] RayToombs:
Change the meta-inf??????? did not read anything about changing that part.

But you are telling me to just take another theme and replace the framework and system apk's with mine.
[Android Themes] theimpaler747:
Yes, and delete anything from theres and change the meta-inf.
[Android Themes] silverxbv2:
This is an excellent thread you have going here. Thanks.
[Android Themes] theimpaler747:
Not a problem! :D
[Android Themes] joshv06:
Thanks a lot for this guied!
[Android Themes] RayToombs:
I was unsure how to change the meta-inf so i took time to follow the guide on how to uzs the zip packer. Do you have advise on where to get info on changing the meta-inf????
[Android Themes] RayToombs:
Install failed that didn't work. Guess i am trying this your method theimpaler747
[Android Themes] meepz:
I have a question regarding which 'other' theme to just take and modify. I originally tried to use the Templatebread theme but it is lacking a few files that I would like to have modified. Are there any themes we can pull from CM7 or something that has everything that we need to edit?

Or a better question is: I have the HTC Incredible, what theme would 'you' recommend I base my theme off of if I want to make one for CM7?
[Android Themes] RayToombs:
you should be able to use the framework -res and other information right from the rom you are running.
[Android Themes] meepz:
What I did was adb pull framework-res.apk then used apktool to decompile it. This framework-res.apk was taken from the latest CM7 build. When I opened the Android-Manifest.xml it is 100% different from that of Templatebread. I want to go by this approach because all of the images that I need are in this but I just don't know how to read the one from the ROM.

To put it into comparison the one from Templatebread is only 9 lines of code where the one from the CM7 framework-res is a solid 278 lines. And the CM7 manifest doesnt reference any of the things that the Templatebread manifest refers to (what the actual code is doing)
[Android Themes] silverxbv2:
So I have an odd ball question. It's a little of topic so bare with me. If I want to change an image that is a 9PNG to a PNG can i simply rename it?

http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
[Android Themes] Yorzua:
Theming

If you allow me a little advice here as i was few months before in your same place ( starting a theme for CM7 ) ...

It would be much more interesting for you to start from a blank zip as you will learn from your mistakes _ and your theme will be not just a modded copy from another theme, but fully yours.

If you need advices, this thread is excellent for that and people here are just awesome helping others. My little cent will be to start from stock apks of the rom you want to theme : in this case CM7 if i am right.

I made simple tutos for apk manager and smali/baksmali, for lockscreen background too and modded power menu as well.

You could take a theme.zip and just keep META-INF and modify "updater-script" located in \META-INF\com\google\android\ depending on what you want to do with your theme.

for example _ here it is mine for my Theme Oceanis :

ui_print(" Welcome to Yorzua's Theme ");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
package_extract_dir("framework", "/system/framework");
package_extract_dir("app", "/system/app");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Applying Yorzua fonts");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fonts", "/system/fonts");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Applying Yorzua bootanimation");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
ui_print("All Done, Enjoy it!");

• Start always step by step _ slowly but surely

• start by framework-res.apk and then SystemUI.apk

• if done, you made the most dificult ( xml / smali files ) as all the rest is theming

png and 9.png except some apk like Contacts.apk ( needs to work on xml's for transparency )

Hope it helps you :rolleyes:
[Android Themes] RayToombs:
This does help thank you. I will be making some changes tonight to mine and we will see what happens.

One other question, is it preferred to change the png and 9.png files for the moto-res and blur-res for a theme?
[Android Themes] silverxbv2:
A little more detail on this. The is an image in my Rosie.apk that is a 9PNG. It is a static full screen image. I believe it is home_screen.9.png. It only comes up when I try to save a scene, but the popup window only shows up as a line. So i can't see the contents of the window. My thought is to either redraw the patch around the entire image or just make it a PNG. So would renaming it to home_screen.PNG work for this?

Edit. Solved

http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
[Android Themes] thadroidz:
very helpful when I was learning...

thanks postmortem...
[Android Themes] meepz:
@Yorzua Thanks that helps clear things up
[Android Themes] Yorzua:
thanks

My pleasure, buddy

If i can help out as this and other threads helped me, it is just a normal return ;)
[Android Themes] RayToombs:
OK I tried my theme it showed installed but went into bootloop. Anyone who can look at my zip???
[Android Themes] RayToombs:
I know I have asked a lot of questions but could use help if anyone is willing.
[Android Themes] roscoenr:
for what device
[Android Themes] RayToombs:
It is a droidx
[Android Themes] roscoenr:
Sorry can't be of much help there
[Android Themes] jordan23945bulls:
is there a guide on how to make themes for theme chooser? .apks. cm7
[Android Themes] 3rdstring:
You can try this
[Android Themes] ronhoover88:
After editing xml files my phone goes into bootloop please help
[Android Themes] dully79:
Does anyone know how to solve the following menu bug?

"The writable" borders on menu_background.9.png and menu_background_fill_parent_width.9.png have been left blank to enable full write across the image but i get the result in the attached image.

I've tried different combination's of the writable borders and different sized ic_menu images but i cant seem to fix it.:(
[Android Themes] silverxbv2:
Have any of you ever heard of icons shrinking after changing the text color in framework? It only seems to be in apps like xda and es file explorer. Also in the manage apps screen. The icons across the top of the screen.
[Android Themes] ronhoover88:
Please help how do you change text colors
[Android Themes] Madala_ZA:
[Request] Customization Tips and Tricks for Rosie.apk

Is there a guide on customizing Rosie.apk ?

I mean, I'm looking for expert tips, tricks, to-do's, to avoids, and anything in general that will assist with Rosie.apk customizations and mods.
[Android Themes] silverxbv2:
What are you trying to do?

http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
[Android Themes] Madala_ZA:
Hi, I want to customise Rosie to be horizontal and semi-transparent.

So, here's the main questions I have (for Desire HD phone):

What are the png files I need to edit|change within Rosie.apk? (I use Photoshop)

What XML file(s) must I edit to make the scroller horizontal? (instead of curved). And what are the exact edits within the XML file(s) that I need to do?

How do I remove the padding that sits under the phone icon (middle), the appdrawer (left) and personalize icon (right) of Rosie?

What XML file(s) do I need to edit to change Rosie's transparency levels? And what are the exact edits?

I've really searched XDA and Google before posting this. I can't find anything specific and I've spent hours comparing different Rosie's, trying changes and adb pushing to my /system/app on my phone but I just can't figure it out man! So any help would be MUCH appreciated ;)
[Android Themes] theimpaler747:
Simply copying it will most likely not work

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] theimpaler747:
Yeah, that's what I was thinking :)

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] dully79:
+1

.9's are straight forward enough, a lot of people have teething problems with apk tool/manager.
[Android Themes] theimpaler747:
Cool, already started the guide for it as a matter of fact :)
[Android Themes] Noonski:
Paint.Net is also a good and free ware Picture editor.

I like Fireworks for it's better PNG compression methods and options.
[Android Themes] theimpaler747:
Added to OP :D
[Android Themes] theimpaler747:
Added a look at apktool on the mac, I'll be adding more for windows here in an hour :)
[Android Themes] sesgv13:
Help please

I've always wanted an inverted gmail app

Like black background with white letters I ask around and nobody seems to have an answer

If you can help me with achieving this I would appreciate it
[Android Themes] theimpaler747:
Probably going to have to change the androidmanifest.xml theme to dark and the text to inverted

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] cappysw10:
From Captivate Themes and apps:

[MOD] Inverted Black Gmail -Updated Added CWM Zip & Screens
[Android Themes] theimpaler747:
That works too, unless he wanted to make it himself ;)

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] cappysw10:
Figured they could use the .apk to see the differences from the original. That's what I'm doing, it's a great way to learn. ;)
[Android Themes] mskip:
Thread Stickied :)

Mark.
[Android Themes] theimpaler747:
Thank you sir :)

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] theimpaler747:
Yup, that works too, did you see where you'll need to make the edit? I posted a few pages back I think :D

Sent from a truly Epic phone and a transparent XDA app ;)
[Android Themes] cappysw10:
Yep, and thanks for the OP. Very helpful!
[Android Themes] theimpaler747:
No problem, happy to help out when I can but also I'm glad I can enable people to start theming on their own :)
[Android Themes] theimpaler747:
Added a helpful hint to the apktool guide on .9png edits ;)
[Android Themes] mejack03:
@theimpaler747

Great start, Thanks for that :)

After reading this theread i started to thinking of creating theme all the time

missed my dinner yesterday and my mom scolded me (u r responsible for that) lol

and i am looking for some detailed guide about XML

if u could provide all the XML commands which we use in android would be better to play around with XML.
[Android Themes] Noonski:
Was wondering about that, but hadn't tried it yet.

This is going to save me loads of time, no more Drawpatch tool and Eclipse.

Life Saver.
[Android Themes] case0:
Need help...

I'm trying to do my first theme but I'm stuck at the first hurdle.. I've come up against various problems but managed to sort them all but now I'm stuck at the last!

I wanted to start off with just a simple edit, to practice the process and everything before I spend ages working on the whole theme, but it's not exactly working :(

I've read various guides and I'm confident I've followed all steps carefully but I must be missing something. I've decompiled the original framework-res.apk, then put my own images in for the battery icon, and changed sys_stat_battery.xml. I've then recompiled and then replaced resources.asrc and the res folder in the original apk.

After pushing the apk to /system/framework everything FC's, the status bar and any app that I try and launch. If I put it in an update.zip and flash it then it never gets past the first logo before the boot animation.

I have no idea how to work out what I've done wrong. Can anyone help? :(

edit - Solved. I had to leave in the unused battery icons instead of deleting them. (thanks C0mpu13rFr34k) :)
[Android Themes] RayToombs:
Did you use the 9.png files? Replacing the old? If so I learned that they need to be compiled. You can not just change the color and put them back. I am new at this also but look up xultimate-d9pc.exe

Sent from my DROIDX
[Android Themes] Madala_ZA:
Is there a guide for the m10 editor? I'm loading the default file from fusion.apk to mod Rosie on Sense rom. But once I decompile inside m10 editor then I don't know what to do next. Has anyone worked on the m10 editor who can help?
[Android Themes] coiledwire:
I use the command line to work on these files. But on the editor, you basically put the m10 in the editor, check the box for decompiling png, decompile, edit what you want from the folder it creates (usually the same path as the original m10), and then recompile.

That should be all that's necessary. Oh, and the decompiled pngs are upside-down, and this method is not lossless; so don't decompile the pngs more than absolutely necessary. Just an FYI.

Sent on the go, from my evo.
[Android Themes] Madala_ZA:
Ok, thanks. Got that sorted. Tip for anyone reading this: remember to tick "decode images" that's what I was missing ;)

So, do I edit image files in an image editor, like Photoshop? And then save them as png and change name to original file and overwrite? Is this right?

And, how to recompile once the .m10 file is decompiled?

Sorry for the questions, but I'm sure they'll help quite a few peeps along the way..
[Android Themes] coiledwire:
I've just edited the original and saved it, but your way should work too. From what I've heard, you shouldnt remove a png completely or change its size.

Again, I've used the command line to execute these actions. I assume you can just select the recompile option and it would repack that m10 file. You might want to move the original m10 out of the same location, as I'm not sure if it will overwrite it.

Sent on the go, from my evo.
[Android Themes] Madala_ZA:
Ok, thanks again :)

So, since my last post I figured out that you can right-click the image from within the editor and select "show in explorer". You can then open it in Photoshop, Gimp etc. and edit it directly in the image editor. Then simple save and it will save over the original png. Done and dusted. Pretty simple once you know how.

To recompile, I see there is a save button. I was looking for "recompile" so missed it. But it's right there on the start page. Seems like I'm all good for now.

Nice1 for your help here :D certainly much appreciated.
[Android Themes] coiledwire:
@quantumtraveler,

No problem. Not sure how much help I was since it seems like you managed to figure it out on your own. But I'm glad to hear to got it going. :)

Sent on the go, from my evo.
[Android Themes] ronhoover88:
Please help!! After editing xmls and recompile i get an unsigned apk what do i do with it...its file size is smaller than the original apk...

Note: when i use the unsigned apk my phone goes to bootloop...

Any help would be appreciated!!