How to theme android - G1 Q&A, Help & Troubleshooting

I'm trying to theme android.
I know that I can extract the APK's and edit the images, but what do I do after that?
how do I pack them back into APK files?

Learn to use either metamorph or ninjamorph. Their both apps by stereicson that let you change every image from an apk from within the phone.

what I meant was how would I create my own theme.
I'm not trying to apply themes that were already made, I'm trying to create a new theme.
but I've found that ubuntu lets me edit the images without extracting the apk

swee08315 said:
what I meant was how would I create my own theme.
I'm not trying to apply themes that were already made, I'm trying to create a new theme.
but I've found that ubuntu lets me edit the images without extracting the apk
Click to expand...
Click to collapse
creating your own theme is very really easy. but it can be very time consuming depending on what you are trying to accomplish and edit.
After you edited your .png file (NOT .9.ping because that requires a much more advance and complicated method) simply sign the apk file, create the update-script to place in the /META-INF/com/google/android directory and then sign the update.zip file. You will need to use the search feature to lookup.
"update-script"
"signing tool"
Good luck

mejorguille said:
Learn to use either metamorph or ninjamorph. Their both apps by stereicson that let you change every image from an apk from within the phone.
Click to expand...
Click to collapse
I would suggest the metamorph as well instead of flashing. Flashing seems like it would just take too much time.
Also, Android Commander and Droid Explorer (maybe a few others) offer easy signing tools/transferring the apk without the need of any metamorph or flashing.

Thank you Binary100100
that's exactly what I needed
and also to r3s-rt:
I need to create an update .zip for this task.

swee08315 said:
Thank you Binary100100
that's exactly what I needed
and also to r3s-rt:
I need to create an update .zip for this task.
Click to expand...
Click to collapse
For ANY themeing, you don't need an update.zip. I'm just saying look into metamorph a bit; it really is easier than flashing and reflashing if it doesn't come out right. If updates are easier for you, though, go for it. =]

thanks again.
but where exactly would I look to modify the widgets?
specifically the music and clock widgets?

swee08315 said:
thanks again.
but where exactly would I look to modify the widgets?
specifically the music and clock widgets?
Click to expand...
Click to collapse
Music widget is in Music.apk. Clock widget is in DeskClock.apk.
Though metamorph is convenient, in my opinion it is a better tool to test parts of a theme. Learn how to sign update.zip files (with ubuntu it is as simple as a right click), there will be less errors this way (and you can theme the market,....).
p.s. Do learn metamorph also, it is great.

thanks, but where is the search widget?
and yes, I will learn

swee08315 said:
thanks, but where is the search widget?
and yes, I will learn
Click to expand...
Click to collapse
launcher.apk

creating a black softkey menu pop up with white text.
Hello everyone! I posted something like this and got no real answers. I'm not trying to create a full theme just edit what I already have. I'm trying to change the stock cyanogenmod softkey menu pop up. If gotten my images in place and got the background and icons the way I want them but I don't know which values XML file I need to edit in order to change the text color. Does anyone have any insight on which file I need in order to edit the menus text to white? Already decompiled the framework-res.apk.

Thanks
This is awesome, I'm just trying to get started with customizing android and theming seemed like the logical starting point. Thanks for the input guys/gals.

Related

[Q] Getting started on making themes.

Clicking the wiki just now gave me a 404 error and the sticky is a bit long and just a bit outdated in terms of the links.
What programs, apps, vids, etc do I need in order to make themes?
I have been flashing themes left and right and each have their goods and bads. The biggest bad is there doesn't seem to be a well done red theme which I would like to do. I have tried enamored but the notification icons kill it for me.
So again, are there any up to date tutorials on making themes? Thanks in advance for any help.
+1 to that
Sent from my Droid using Tapatalk
A quic and dirty how to
lovethyEVO said:
Clicking the wiki just now gave me a 404 error and the sticky is a bit long and just a bit outdated in terms of the links.
What programs, apps, vids, etc do I need in order to make themes?
I have been flashing themes left and right and each have their goods and bads. The biggest bad is there doesn't seem to be a well done red theme which I would like to do. I have tried enamored but the notification icons kill it for me.
So again, are there any up to date tutorials on making themes? Thanks in advance for any help.
Click to expand...
Click to collapse
shanesol said:
+1 to that
Sent from my Droid using Tapatalk
Click to expand...
Click to collapse
heres the How to
An apk is really just a zip file... apk stands for android package (if i remember correctly). So treat it like a standard zip file.
Youll need a pint program to make changes I use gimp its free so get it here
TIP: Your first theme should really just be a mixing and matching of other themes to get use to the process.
TIP: d/l and look at other themes and see what the have done, using the same process below you can port and mash themes. To see what is themed go to the res/drawable-xxx folders and sorte the png's in there to newest at the top and you'll see what they have changed.
TIP: system/app/xxx.apk are where most apps that are themed are contained in these apks you'll find a res folder and in there you have a bunch of folders. you really on need to look in the drawable-xxx ones mdpi, no-dpi, land and so forth. these pngs make up the apps look and feel changing them will theme the app.
You'll need apk manager this will allow you to sign zips which makes them flashable. get that here
Now get your favorite Rom and make a folder. In that folder make 2 folders one called packed the other called packed. Take your rom and unzip it in the unpacked folder. and then take the original zip and move it to the packed folder.
Next go into the unpacked folder and nav to system/framework.framework-res.apk (this holds the bulk of the android png that make up all the stuff most people change to make a theme) take this apk and unzip it in this folder and then make a copy of the apk and move the copy to the packed folder.
Now when you want to make a change to the framework-res.apk use the unpacked as a reference. us the packed as the change dir, you do this by opening but not unzipping the apk you want to change and just dragging the files you are replacing into the apk, this will replace them. You might want to make a a 3rd folder sorta of a master copy if you ever mess up the packed roms. Remember that in all three of the dirs created you want to keep the dir structure the way you extracted it from the rom and theme.
Now that you have an altered framework-res.apk you can just push it to system/framework folder (i think) and reboot and your changes are in. I never do this since flashable is easier to manage I make a flashable.
A flashable is like a rom but allot smaller, so d/l one of my themes and take the zip file and place in in a folder next to the packed and unpacked folder call it something like staging. now unzip apk manager into the top dir next to 4 other folders you just made.
Now my theme zip can be renamed to whatever you want, your going to use it as a place holder for signing flashable zips. go into the theme zip and delete ever thing in the system folder except the framework folder then go into the frame work folder and delete everything, if you have apps your theming just make the system/app.
Your flashable zip folder should only have a a meta-inf folder and a system folder, the system folder should only have a framework and or app folders. Now drag your altered framework-res.apk into the flashable zip system/framework folder you just cleaned out.
Ok now you have to sign it, copy that flashable zip to the place-apk-here-for-signing folder, this should have shown up when you unzipped apk manager into the folder the also contains unpacked and packed folders.
Now click on the script.bat and you'll see a bunch of option you can do option 16 to sign your zip. it takes a second or two and the date should get updated on the flashable.zip file in the place-apk-here-for-signing folder.
Now you have your new them ready to install. if your changing something else find the apk and replace framework-res.apk in these instruction and it works the same. note that most app reside in system/app so you next to take that into account.
Keep the questions reasonable and I'll answer then.
Thanks simmons. For the most part I have been doing the open apk without extracting and replacing png files. The one thing that I cant seem to get is changing the battery icon...it never sticks. Anyways, do the themes always have to be signed? I know amon 1.8 can flash unsigned zips but do the themes have to be signed always? I will be taking my laptop to work tonight to practice what you outlined. Thanks again.
EDIT: I noticed some themes have com.htc.resources.apk alongside framework res and some have services.jar. What are these for?
No they don't have to be signed but people will complain cause most people don't have the eng spl, it all so protects you from flashing bad stuff. If your only changing the standard 5 battery icons thus method always works.
The services.jar usually room specific and changes things like lock screen behavior mixes These with other roms will cause boot loops be careful.
Sent from my HERO200 using XDA App
Simmons thanks for answering so far.
My last question is to theme the entire phone is it basically the resources, framework, and services.jar files that need to be edited? I understand the apps would be themed themselves and then just included as part of the zip file right?
lovethyEVO said:
Simmons thanks for answering so far.
My last question is to theme the entire phone is it basically the resources, framework, and services.jar files that need to be edited? I understand the apps would be themed themselves and then just included as part of the zip file right?
Click to expand...
Click to collapse
well the service.jar is compiled and therefore can't necessarily be themed you can't hack it or mod it by decompling it or you can change it by compiling changes you made from source but for the sake of normal themes its not needed.
as for the resources I assume your referring to the resources.arsc which is basically a set of compiled xml files. In here it where you can change stuff like how many pngs are associated with the battery status icons (think of circle batter mod which has one icon per percentage instead of the 0 10 20 40 60 80 100 ? icons in the normal aosp rom) changing this can be done with the apk manage by decompiling the framework-res.zpk, making the change and compiling back. but I wouldn't recommend it to a beginner.
The problem with the above is you take the chance of the theme not be cross-rom compatible. For you normal theme all you need to change are the pngs in the res folder of the framework-apk, however somethings like the launcher or the dialer still reside in the app folder and have there own apk.
Oh and I have no question limit.
ASimmons said:
well the service.jar is compiled and therefore can't necessarily be themed you can't hack it or mod it by decompling it or you can change it by compiling changes you made from source but for the sake of normal themes its not needed.
as for the resources I assume your referring to the resources.arsc which is basically a set of compiled xml files. In here it where you can change stuff like how many pngs are associated with the battery status icons (think of circle batter mod which has one icon per percentage instead of the 0 10 20 40 60 80 100 ? icons in the normal aosp rom) changing this can be done with the apk manage by decompiling the framework-res.zpk, making the change and compiling back. but I wouldn't recommend it to a beginner.
The problem with the above is you take the chance of the theme not be cross-rom compatible. For you normal theme all you need to change are the pngs in the res folder of the framework-apk, however somethings like the launcher or the dialer still reside in the app folder and have there own apk.
Oh and I have no question limit.
Click to expand...
Click to collapse
Simmons, thank you very much. Every answer you give is clearing things up more and more for me. I have decompiled a frameworkres before when I was trying to get the circle batt mod onto the odex stock rom so I am not too unawares there. What I want to do is theme the colors on anything and everything along with making the transparent windows such as when you confirm actions and the transparent notification pull down. Are these really accomplished with simply changing the pngs or do I have to edit the xml files? If I must edit the xml files, are there key files to edit or would editing one xml affect another?
lovethyEVO said:
Simmons, thank you very much. Every answer you give is clearing things up more and more for me. I have decompiled a frameworkres before when I was trying to get the circle batt mod onto the odex stock rom so I am not too unawares there. What I want to do is theme the colors on anything and everything along with making the transparent windows such as when you confirm actions and the transparent notification pull down. Are these really accomplished with simply changing the pngs or do I have to edit the xml files? If I must edit the xml files, are there key files to edit or would editing one xml affect another?
Click to expand...
Click to collapse
The xml files really just hold names for the pngs. So for example the pngs for the battery have there names store in the xml (cant remember off hand which one of the decompiled xml from the resource.arsc.. strings??) file and then as the value value next to that filename for what percent to show that specific png at.
But 95% of your theming only involves changing the png files. So to have a clear notification back ground look in the framework-res.apk/res/drawable-mdpi/status_bar_background.png or you want to change the button to unlock your phone framework-res.apk/res/ic_jog_dial_unlock.png or to change the status bar framework-res.apk/res/statusbar_background.9.png
TIP: if you see a png with 9 in the name like xxxx.9.png its basically a stretchable png where the side that you want stechable has a one pixel wide line running the length of the png as a border this tells android that the png should stretch that side until it fills the screen.
9 patch explanation
So aside from editing the xmls for the battery percent everything is just replacong pngs? Thats awesome.
When it comes to apps like the internet browser for example, where would I find the apk? I'm assuming theming the apps is just like themeing the phone in that I just replace the .pngs right? Again your answers are very much appreciated and definitely making things seem easier. Thanks.
Hiya all.
I'm a noob at this too and I want to change the icons of some of the apps installed on my phone and theme a couple of widgets that am using. I have two questions:
1) In the system/app folder of the phone almost all the apps have a xxx.apk and a xxx.odex file. In order to change the png files in the apk does something need to be done with the odex file too?
2) Can I change the png files in the apk files in data/app the way you described above?
Sorry if the questions are noobish
From my Galaxy S loonie-phone
lovethyEVO said:
So aside from editing the xmls for the battery percent everything is just replacong pngs? Thats awesome.
When it comes to apps like the internet browser for example, where would I find the apk? I'm assuming theming the apps is just like themeing the phone in that I just replace the .pngs right? Again your answers are very much appreciated and definitely making things seem easier. Thanks.
Click to expand...
Click to collapse
To theme the browser you can alter the Browser.apk in the system/app and using the direction I posted it works the same way.
And if you make a theme pm me so I can check it out.
Fireloon said:
Hiya all.
I'm a noob at this too and I want to change the icons of some of the apps installed on my phone and theme a couple of widgets that am using. I have two questions:
1) In the system/app folder of the phone almost all the apps have a xxx.apk and a xxx.odex file. In order to change the png files in the apk does something need to be done with the odex file too?
2) Can I change the png files in the apk files in data/app the way you described above?
Sorry if the questions are noobish
From my Galaxy S loonie-phone
Click to expand...
Click to collapse
1. My theming expertise is more with AOSP roms but its my understanding that you should be able to theme a sense rom in the same way by de-odexing a rom. And yes any and all apps are themable if it has a png files in it you can unpack it alter the png's and put them back in the original apk, which overwrites the original png's and resign it and then flash or reinstall it.
2. Yes you can. any and all apks can be themed in the manner I described. for odexed roms search the forum for de-odexing techniques.
Thx for the answer. I'll search about deodexing
From my Galaxy S loonie-phone
Thanks for all the great tips I just got finished porting a theme thanks to all the help!
shanesol said:
Thanks for all the great tips I just got finished porting a theme thanks to all the help!
Click to expand...
Click to collapse
awesome pm some screenies or the op here I'd like to check it out.
ASimmons said:
awesome pm some screenies or the op here I'd like to check it out.
Click to expand...
Click to collapse
It's a simple black/white matte theme called Invertnito. It was made for Sapphire but I like CM too much to give it up lol
ASimmons said:
awesome pm some screenies or the op here I'd like to check it out.
Click to expand...
Click to collapse
Looking to have some sort of base by this weekend. I have just been mix/matching pngs I like from other themes as well as trying to make my own pngs and figuring out the transparency/borders effect. Taking my time but still want to come out with something for critique.
shanesol said:
It's a simple black/white matte theme called Invertnito. It was made for Sapphire but I like CM too much to give it up lol
Click to expand...
Click to collapse
Nice Job.
lovethyEVO said:
Looking to have some sort of base by this weekend. I have just been mix/matching pngs I like from other themes as well as trying to make my own pngs and figuring out the transparency/borders effect. Taking my time but still want to come out with something for critique.
Click to expand...
Click to collapse
Well I'm not much of a critiquer since most of the themeing stuff I've done doesn't go over so well around here (I dont like dark colors, black, dark blue blah blah) really its up to what you like, I made a couple of themes based on what I liked and left it at that. But I'll be glad to look at it and dont forget to make sure that if you use some elses stuff you give them there props in your ops and pm them a warning you going to use it, unless they specify different this is all you should need to do..
ASimmons said:
Nice Job.
Well I'm not much of a critiquer since most of the themeing stuff I've done doesn't go over so well around here (I dont like dark colors, black, dark blue blah blah) really its up to what you like, I made a couple of themes based on what I liked and left it at that. But I'll be glad to look at it and dont forget to make sure that if you use some elses stuff you give them there props in your ops and pm them a warning you going to use it, unless they specify different this is all you should need to do..
Click to expand...
Click to collapse
Definately making note of whose work I use. Though it's kind of hard because my favorite notification icons I have seen in two diff themes and neither one of them mention who was the artist for them. But still keeping at it. And like you I dont care about dark colors unless its used to contrast the main theme color. I'm working on a red theme and there will be some parts that will have a darkish background to help the red border colors and/or text pop more. In time though. Your first post here was definitely a great shove in the right direction.

[Q] How to mod framework-res.apk and twframework-res.apk

Hi guys,
Wondering if someone can give me some clear directions how to add battery icons (knowing that the resource IDs of the images are not stored in public.xml - it doesn't exist in samsung's framework-res.apk) and how can I change text colors (basically replace black with white and vice versa) and where should I change these values.
Thanks a lot!
Common themers, I know you know, you just don't wanna share
Joking I would really like to start themeing as well and these are the only 2 issues that I have at the moment.
icezar1 said:
Common themers, I know you know, you just don't wanna share
Joking I would really like to start themeing as well and these are the only 2 issues that I have at the moment.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=724778
Get apk manger.I'm trying to do this too.
Hm, I did, I de-compiled the apk but did not want to compile back. Probably the images are not Draw 9-patch-ed. However, I still need to find out how to change the text color...
icezar1 said:
Hm, I did, I de-compiled the apk but did not want to compile back. Probably the images are not Draw 9-patch-ed. However, I still need to find out how to change the text color...
Click to expand...
Click to collapse
find you find out before keep me updated, and i'll do the same.
icezar1 said:
Hi guys,
Wondering if someone can give me some clear directions how to add battery icons (knowing that the resource IDs of the images are not stored in public.xml - it doesn't exist in samsung's framework-res.apk) and how can I change text colors (basically replace black with white and vice versa) and where should I change these values.
Thanks a lot!
Click to expand...
Click to collapse
You can change the battery icons in the framework-res.apk [look in the res/drawable hdpi/stat_sys_battery_x.png
and to change the text color: I was trying to figure that one out last week....From what I figured out you need to modify:
res/layout/status_bar_latest_event_content.xml
Which is found in your framework-res.apk aswell....Decomplie-edit-recomplie....
Good luck
what program are you using to edit your xml's?
chaosjh said:
what program are you using to edit your xml's?
Click to expand...
Click to collapse
apk_manager_4.9 to decomplie-recomplie. Then use notepad to edit
i change icons and stuff in framework by just using 7zip. No need to decompile or sign, or any of that. Super easy. Not sure about changing text color, tho.
If your just wanting to do simple changes (no .xml edits)
You can use WinRar to open the framework-res.apk and find the *.png's you want to replace.
Then copy/paste the new images over the old ones inside of WinRar.
Close.. and install.
But thats for quick and dirty changes. For more intricate stuff - animations etc. that require *.xml edits - do what the above folks say
No way..
OK, just decompiled-added icons from other decompiled framework-recompiled, no xml edits-installed. Look is changed, battery icons now displaying fine but... force closes and restarts the shell in less than 20 secs...
yup try the winrar method - there is no decompiling.. just copies the images into the *.apk
And shouldn't have any FC's if you try that method.
avgjoegeek said:
If your just wanting to do simple changes (no .xml edits)
You can use WinRar to open the framework-res.apk and find the *.png's you want to replace.
Then copy/paste the new images over the old ones inside of WinRar.
Close.. and install.
But thats for quick and dirty changes. For more intricate stuff - animations etc. that require *.xml edits - do what the above folks say
Click to expand...
Click to collapse
Yeah i changed icon with winRar, and all kinds of crazy stuff happed. Loop boots,and Fc
Have you guys figured out the text color yet? If you haven't let me know what text you're trying to change and I'll write something up in a few hours when I get off work.
Sent from my SAMSUNG-SGH-I897 using XDA App
fritzgerald said:
Have you guys figured out the text color yet? If you haven't let me know what text you're trying to change and I'll write something up in a few hours when I get off work.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
i have tried for to days now to get these android faces icon for the battery.I've use winRar and it worked good for a few hours, but when i used cwm to backup my system on reboot it boot loop. I got apk manger and everytime I try to compile the apk there is a error.Oh changing the text color would be cool too!
dfuse06 said:
i have tried for to days now to get these android faces icon for the battery.I've use winRar and it worked good for a few hours, but when i used cwm to backup my system on reboot it boot loop. I got apk manger and everytime I try to compile the apk there is a error.Oh changing the text color would be cool too!
Click to expand...
Click to collapse
Shoot me a link to the icons you're trying to use. What ROM are you using(name & version). What text are you looking to change? There's not one global change to make all the text different I'll need to know what specifically you're trying to change.
I use the uot kitchen you get the icon on perception 7,but im on 8 now. I'm running perception 7 darknees 2.3 theme, and that is what i'm trying to get the icons on its the battery icon of the android smiley faces it is version j with white numbers. i'm going to look for a link for them.i have the framwork-res.apk with them in it.
When you recompile with APK Manager, a couple of things are very important to do:
1. Hit yes to "system app".
2. Hit yes to restoring the files:
-Open the "keep" folder and delete resources.arsc. Then delete anything you changed (if it's there).
3. Do NOT sign it.
It should work.
PuffinNugz said:
i change icons and stuff in framework by just using 7zip. No need to decompile or sign, or any of that. Super easy. Not sure about changing text color, tho.
Click to expand...
Click to collapse
Do you just individually edit each icon? Cause I can't find a way to copy in a folder. I'm pulling the icons from the 2.3 framework, but i just want to copy over the drawable folders for now.
TheEscapist said:
Do you just individually edit each icon? Cause I can't find a way to copy in a folder. I'm pulling the icons from the 2.3 framework, but i just want to copy over the drawable folders for now.
Click to expand...
Click to collapse
I just dragged the images from a particular themes framework and dropped them to the new one all within 7zip.

[GUIDE] Want to learn how to theme?

I'm asked all the time how to theme; what's the best way, the best tools, etc. Well, I'm going to compile the best resources that I think will get you up and theming. It's a process, and you'll need to have time and devotion, but these tools and tips will help
A general guide (MOD Info: The document seems to have been removed and there is no possibility to recover it)
This is the best guide that I know of out there for theming; it is comprehensive, and if you use it, you should give a big thanks to the makers of it.
Apktool or apk manager
I find both of these to be great; I have apk manager (windows and linux) on my pc, and apktool (windows, mac, and linux) on my mac. APK manager will likely be best for beginners due to its simplistic and user friendly UI, and it offers some more features then apktool, like zipaligning, optimizing, etc. Both are fantastic, and absolutely a huge help for theming and decompiling apps.
The android SDK
It's always helpful to know how to use the SDK for adb, zipaligning, and other tasks. Remember, even if you have other tools like apk manager to zipalign, it's always good to know how to do it by hand And you'll need tools in it like draw9patch for those pesky .9pngs
Notepad++ or TextWrangler
You will use this all the time. Editing files like decompiled XMLs on this is a breeze
A nice website for Hex colors
You'll use this every time you do XML edits; you'll need these color codes to tell the XMLs what color you want to show up
Photoshop or Gimp or Paint.net
Want to go all out? Go photoshop. Want a great, free tool to theme with? Gimp is the way to go. Either way, you'll want to use one of these tools for png edits when theming. Paint.net is also another good free tool for edits.
Hex Fiend
For you mac users like me, Hex Fiend comes in handy if you ever need to edit binary (non readable or decompiled) XML.
Update Zip creator/modifier
Fabulous tool on windows to create and modify elements of updates zips
ADW Themes
Want to make an ADW theme? This is a great tool to get you started on that
Knowledge
You'll want some general knowledge with terminal or windows cmd prompt. Because you will use it. Also, you'll need to know what to edit in a theme to change aspects of color and such correctly. Well, this is a great tool to find out what you need to edit
I'll be adding to this guide as needed. Please, feel free to ask any questions, and I'll be here to answer them Hope this helps everyone!
In Depth Look: XMLs
For the first in depth look, I'm going to focus on XML edits, as they are a major component to having a complete and thorough theme. Image edits are easy enough, but many don't know where to go when it comes to XMLs. Well, here's where I'll tell you
What is an XML?
Here's is a nice read on XMLs and what they are.
What do XMLs have to do with Android?
XMLs can control many functions in android apps. For the scope of this thread, we'll be changing binary XML into a readable XML file to make our edits, which will usually result in color changes in apps.
How do I edit an XML?
Make sure you have apktool or apk manager correctly set up. They'll make XML edits a breeze. If you need help setting them up, wither ask me or see their manuals.
Take the apk you want to edit, and decompile it with one of those two tools. Make sure if it's dependent on Sense resources or TW ones that you have those set up. (Again, either ask me or see instructions for apktool and apk manager)
Once decompiled, open the XML you'll need/want to edit. See the link I have above under knowledge for finding out what XML you may need to edit
For Windows, use Notepad ++ to edit, and for Mac, use TextWrangler (just suggestions, others work as well)
Use the Hex Color code link I have listed above in the OP to find the suitable code for the color you'll want if you;re making a color change. Remember, the color codes will be 6 digits, but there'll be 2 digits in the XML before the color code. 00 is transparent, and FF is the "regular" color for lack of a better term.
When done with the XML changes, recompile the apk
Sign if needed, and install to see if the changes you've made are worth it
In Depth Look: Using Apktool or Apk Manager.
What are they?
Apktool and Apk Manager allow you to decompile, reengineer, and compile apks after making changes to files in the decompiled apk.
Why would I need them?
These tools allow you to edit XMLs, edit smali files, and change many other aspects of the apk that you wouldn't be able to do without decompiling the apk.
Setting up apktool on a mac
If you have a mac like me, remember that apk manager doesn't work on macs. So, you must use apktool, which is absolutely fine, as in my opinion apktool is better than apk manager. To set up apktool, you must have root mode enabled on your mac. To do that, simply follow these steps:
Open system preferences
Open accounts
Go to login options
Hit join next to network account server
Select open directory utility
Click the lock at the bottom of the window that pops up and enter an admin password
Then, go to the top bar on your mac, hit edit, and select enable root mode
Once you have root mode enabled, you're ready to set up apktool:
From the apktool website, download apktool1.3.2.tar.bz2 and apktool-install-macosx-2.2_r01-1.tar.bz2
Next, open terminal
su
tar -C /usr/local/bin -xvf <zipped file name>
tar -C /usr/local/bin -xvf <zipped file name> (for the second file)
Now to confirm it worked, type "apktool" no quotes
You should get a help menu for apktool
If so, you're good to go!
Now, once you have it set up, you're ready to go! After typing apktool, you'll see the help menu which'll give you the commands available for apktool, but I'll go over the basic ones here.
apktool d "apk path here" will decompile the apk
apktool b "decompiled apk path here" will build an apk from a previously decompiled one
apktool if "framework-res.apk path here" will install a framework res or any app really to allow you to work with dependent apps. For example, if you want to modify an HTC sense apk, you'll need to install the htc.resources.apk first through this method before decompiling the sense apk.
What if I have windows?
The steps will be very similar. See the apktool website I have listed above for a bit more info, but as I said, it's not too far off minus the having to get root access part.
This seems to complex, and I hate using commands! I wish there were another way....
Oh, but there is! *ends cheesy infomercial voice* Apk manager will give you a simplified setup, and all of the same features plus more; all you need is windows or linux.
Great! How do I get that?
Download Apk Manager
Extract the zip
Open up the enclosed script
The rest is pretty self explanatory
Now, even will apk manager, you'll need to make sure you know how to set frameworks up and such, but it makes it much easier with its convenient scripts. If you have any questions, ask them here and I'll certainly do my best to answer them
Helpful Hint!
Remember, once you have an apk decompiled with apktool or apk manager, you have the best chance to correctly edit .9pngs!
If you open the .9png in the decompiled app and edit it with gimp or photoshop while leaving the pre-drawn boarder there, you'll be able to recompile the apk with a properly edited and themed .9png
Advanced Decompiling
Sometimes, you have that pesky app that just won't decompile correctly. Usually, it's an app related to others, like a proprietary system app based off framework-res.apks.
When this happens, you need to ensure that the frameworks are there to have the app's recourse tables properly compile.
For either apktool or apk manager, find a folder on your computer called "apktool."
The should be a folder in here called "framework," and inside that, a 1.apk.
For an app that is dependent on the framework-res.apk in a specific phone/rom, take the framework-res.apk for that rom and rename it 1.apk.
Replace the default one in the folder with yours.
If there's a second one, like the twframework-res.apk for Samsung phones, rename it 2.apk and place it in the "framework" folder.
Now, decompile like normal, and everything should be good
Editing Smali​
Right here, thanks to Yorzua
Cool, so what about theming market apps. I mean like changing the icon. I know how to change them individually but what about changing them in bulk. Where would one put them inside of an update.zip?
Sent from sweet G2
smoochiezz24 said:
Cool, so what about theming market apps. I mean like changing the icon. I know how to change them individually but what about changing them in bulk. Where would one put them inside of an update.zip?
Sent from sweet G2
Click to expand...
Click to collapse
Changing them in bulk would require you to theme each icon you'd like, and then you could do one of a couple things:
Make them your custom icon with ADW or LP (easiest way)
Install them over the apps you have on your phone to get your custom themed app
Make a flashable zip to add the apps to system/app, resulting in a themed set of apps, now in system/app
I should probably add a bit to the guide on making zips, yes?
Added update zip tool to the guide
Section 6. ZipThemer: an alternative theme installer with MetaMorph compatibility and advanced features.
Ken
kellinwood said:
Section 6. ZipThemer: an alternative theme installer with MetaMorph compatibility and advanced features.
Ken
Click to expand...
Click to collapse
Or that'd work too from a phone I'm targeting computer usage, but that's a nice app, well done
Thanks for this resource! *tagged*
-----
Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
user7618 said:
Thanks for this resource! *tagged*
-----
Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
Click to expand...
Click to collapse
No problem! I'll be adding to it as well, and I'll go more in depth to version elements in my reserved posts
Sent from a truly Epic phone!
theimpaler747 said:
No problem! I'll be adding to it as well, and I'll go more in depth to version elements in my reserved posts
Sent from a truly Epic phone!
Click to expand...
Click to collapse
Good, because I'll probably be getting a new laptop soon, so I will need to download all of this stuff again.
-----
Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
user7618 said:
Good, because I'll probably be getting a new laptop soon, so I will need to download all of this stuff again.
-----
Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
Click to expand...
Click to collapse
Ah yeah, that'll be a pain... good thing I have all the links in one place now!
theimpaler747 said:
Ah yeah, that'll be a pain... good thing I have all the links in one place now!
Click to expand...
Click to collapse
Indeed.
-----
Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
Thank you for this. This is just what I was looking for
Sent from my DROIDX using XDA App
Dxblade said:
Thank you for this. This is just what I was looking for
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
No problem! Glad you liked it, and check back, as I'll be adding more and going more in depth with XML edits and such
I'm sure many people will find this extremely useful. There are a lot of resources out there, but finding them can be difficult.
Apart from system-level theme creation, there's a great guide to creating ADW.Launcher themes here. I would know - I created the icon naming video haha.
Vazguard said:
I'm sure many people will find this extremely useful. There are a lot of resources out there, but finding them can be difficult.
Apart from system-level theme creation, there's a great guide to creating ADW.Launcher themes here. I would know - I created the icon naming video haha.
Click to expand...
Click to collapse
Very nice! I'll add that to the OP for you
Awesome! Hopefully this will inspire more people into creating the themes of their own!
Vazguard said:
Awesome! Hopefully this will inspire more people into creating the themes of their own!
Click to expand...
Click to collapse
Agreed! I'm looking at publishing ADW themes of my own

[Q] [HELP]-MetamorphingGingerbread. REWARDS!

Ok guys, I am totally new to theming and what not, and akoe101 and I are deciding to release a theme under metamorph, called MinimalMechanics, this is what the status bar looks like
So far, everytime i try to create a morph, it gets rejected. Heres the steps i have taken
1. Downloaded a template morph
2. extracted the .zip
3. Opened the .xml with notepad, edited the path like so...
<?xml version="1.0"?>
<themename>MinimalMechanics</themename>
<themeversion>1.0</themeversion>
<author>mkcm97 and akoe101</author>
<phone>Motorola Droid</phone>
<rom>?</rom>
<themedescription>Changes status icons</themedescription>
<item>SystemUI.apk</item>
<path>/system/app/</path>
<description></description>
4. I then saved the .xml
5. I added the icons in the correct folder.
6. renamed the .xml to MinimalMechanics- SystemUI
*side not, in reality, i'd prefer to add other paths, to framework-res.apk, gmail.apk, and vending .apk. If this is possible let me know, or do I have to make a seperate .zip?
7. I renamed the zip to MinimalMechanics- SystemUI
But as I said earlier, when I try to apply it, it gives an error. Could anybody give an insight on this, if you have any you get an early theme release and some extra GOODIES!. If you need the actual .xml, i can upload it for you.
Thanks for taking the time for reading and answering
- Matt.
You want Notepad++ on a windows machine. Windows notepad screws up the EOL sequence.
<themename>MinimalMechanics</themename>
MinimalMechanics- SystemUI
Click to expand...
Click to collapse
If you rename the zip, you must change the <themename> too.
As 3rdstring says, I use Notepad++ to edit.
Dont Panic said:
If you rename the zip, you must change the <themename> too.
As 3rdstring says, I use Notepad++ to edit.
Click to expand...
Click to collapse
Ok. wow i didn't release that a version of notepad would make a difference. I'll give it a shot and get back to you guys.
thanks a bunch.
ok i owe you guys big time! notepad ++ did the trick. so now for the next question, can i add a path to framework-res and system ui in the same .xml?
mkcm97 said:
ok i owe you guys big time! notepad ++ did the trick. so now for the next question, can i add a path to framework-res and system ui in the same .xml?
Click to expand...
Click to collapse
You can, but you will get FC loops that are a pain with metamorph. If you do it, use ZipThemer to install instead, great program. Myself, I don't put SystemUI.apk or Phone.apk in the same morphs as framework-res.apk.
Dont Panic said:
You can, but you will get FC loops that are a pain with metamorph. If you do it, use ZipThemer to install instead, great program. Myself, I don't put SystemUI.apk or Phone.apk in the same morphs as framework-res.apk.
Click to expand...
Click to collapse
ok. so i will just release the theme in seperate morphs. but when i applied just the systemui.apk, i got fc loops anyway, but a battery pull fixed it and it was all okay.
I agree with Dont Panic, ZipThemer is an excellent tool. It will take your morph(s) and build a flashable update & as a super cool added bonus an undo file so when things go wrong you have an easy road back.
The XDA thread.
3rdstring said:
I agree with Dont Panic, ZipThemer is an excellent tool. It will take your morph(s) and build a flashable update & as a super cool added bonus an undo file so when things go wrong you have an easy road back.
The XDA thread.
Click to expand...
Click to collapse
so could i build a morph and put it in zip themer, and release it as a .zip? and it will still have the same concept as a morph. ie only change the icons that you want..?
mkcm97 said:
so could i build a morph and put it in zip themer, and release it as a .zip? and it will still have the same concept as a morph. ie only change the icons that you want..?
Click to expand...
Click to collapse
Yes but it will be device/ROM specific.
3rdstring said:
Yes but it will be device/ROM specific.
Click to expand...
Click to collapse
ok thanks for the help guys. feel free to pm me if you would like anything.
cant wait for you to drop this, ive been eying it since you first started posted screens with it. i check customandroid all the time in hopes its been released lol.
mbh87 said:
cant wait for you to drop this, ive been eying it since you first started posted screens with it. i check customandroid all the time in hopes its been released lol.
Click to expand...
Click to collapse
haha thanks. almost done
mkcm97 said:
haha thanks. almost done
Click to expand...
Click to collapse
If for some reason you are feeling generous or need someone to test on a Thunderbolt, shoot me a pm

Unleash your Creativity, Download Samsung Theme Editor Here! Updated to v3.00.21

NOTE: Samsung has blocked the way i used to download the theme editor so i will now have to search for another method. till then no update
Hey guys,
Below are the links to download the Samsung Theme Editor. All credits goes to @adfree for finding the secret method
Unleash your creativity.
PS: it does not need anything like samsung account etc. for making the themes
Windows edition (Updated):
Changelog v3.00.21
Minor Bugs Fixed
Code:
http://www47.zippyshare.com/v/tyi376MU/file.html
Mac Edition:
Code:
http://www47.zippyshare.com/v/UsBdgScE/file.html
@wajiman
thank you. installed on windows without any problem..
just an info.. is possible to use a theme taken from samsung store as base?
if yes, how? XD
thanks ^^
erghetto said:
@wajiman
thank you. installed on windows without any problem..
just an info.. is possible to use a theme taken from samsung store as base?
if yes, how? XD
thanks ^^
Click to expand...
Click to collapse
Unfortunately no, but there is a long method by which you can use some stuff from the theme you want to use as base. The steps are:
1) Extract every qmg file from each apk within a theme and rename the extracted apks to zip.
2) using command prompt run the following command:
Code:
ren *.qmg *.png
it will auto change the extension from qmg to png.
3) Transfer the pngs to mobile phone and look at the images you want to use
4) create your theme and individually replace the qmg which you identified from pngs with the base themes qmg. That's it.
I know its a tiresome task
nice:good: i made my first theme
Thanks, this is something..
wajiman said:
Unfortunately no, but there is a long method by which you can use some stuff from the theme you want to use as base. The steps are:
1) Extract every qmg file from each apk within a theme and rename the extracted apks to zip.
2) using command prompt run the following command:
Code:
ren *.qmg *.png
it will auto change the extension from qmg to png.
3) Transfer the pngs to mobile phone and look at the images you want to use
4) create your theme and individually replace the qmg which you identified from pngs with the base themes qmg. That's it.
I know its a tiresome task
Click to expand...
Click to collapse
First, thank you for posting this tool.
I'm still old skool in terms of theming, hard coding the system and adding/changing images to my preference.
It seems the the overlay themes are the direction it been headed for sometime so if the tool is easy enough and less time consuming, I suppose I could switch, plus the compatibility for many more devices and users is quite nice!
As far as converting/viewing qmg images install this to your phone and within the app select the apk of which you wish to view the qmg images and bam! It's all done, converted to png's viewable on pc and everything!
Anyways, thanks again!
stangdriver44 said:
First, thank you for posting this tool.
I'm still old skool in terms of theming, hard coding the system and adding/changing images to my preference.
It seems the the overlay themes are the direction it been headed for sometime so if the tool is easy enough and less time consuming, I suppose I could switch, plus the compatibility for many more devices and users is quite nice!
As far as converting/viewing qmg images install this to your phone and within the app select the apk of which you wish to view the qmg images and bam! It's all done, converted to png's viewable on pc and everything!
Anyways, thanks again!
Click to expand...
Click to collapse
I also found out one more way as this alp was not working for me on s7. Further, the above mentioned method is not working as the tool requires you to sign the apk with a certificate which you create with this tool itself and changing the files i think damages the signature. Nevertheless the 2nd way is to rename the qmg files to png. Transfer them to phone and then through the phone edit them. Add a small difference so that you can save it. Once you do, it will save it in png format.
Sent from my SM-G935F using Tapatalk
I am making a theme, but the APK it creates si a paid theme, and when i choose my theme, i can only choose the trial option. Is there a way to make the APK free? I cant found it.
Greetings
carasd said:
I am making a theme, but the APK it creates si a paid theme, and when i choose my theme, i can only choose the trial option. Is there a way to make the APK free? I cant found it.
Greetings
Click to expand...
Click to collapse
No install a package disabler and then disable theme service and center and then clear its data
Sent from my SM-G935F using Tapatalk
but this has no sense xD there has to be a way to make free themes.
erghetto said:
but this has no sense xD there has to be a way to make free themes.
Click to expand...
Click to collapse
Yes there is that is by uploading it to samsung thene store and then downloading it frm theme store
Sent from my SM-G935F using Tapatalk
there is a new version out please upload the version 4.0.11. ;P
Can't do anything bc I keep getting prompted upon opening the app to update to v4, but can't -_- Please upload v4 asap, thanks!
JoeFCaputo113 said:
Can't do anything bc I keep getting prompted upon opening the app to update to v4, but can't -_- Please upload v4 asap, thanks!
Click to expand...
Click to collapse
Same for me here!
acristescu said:
Same for me here!
Click to expand...
Click to collapse
you can still use it . disable network connection before opnening the editor, and after that you can enable it back
can I apply for partnership request by uploading a theme created using this software in the partnership request form ?If not can you please suggest me what should I do to apply for the partnership? I don't have any previous designs.
Hi... Guys Theme editor 5.0.20 is released, somebody please provide download link for it... Thank You..
sadanandk said:
Hi... Guys Theme editor 5.0.20 is released, somebody please provide download link for it... Thank You..
Click to expand...
Click to collapse
If you find it let me know lol . Thx
hi))I made a theme, and it's in the status of "only for developers", what should I do?sorry of bad english,im russian))
sadanandk said:
Hi... Guys Theme editor 5.0.20 is released, somebody please provide download link for it... Thank You..
Click to expand...
Click to collapse
hi have you found it ?
regards

Categories

Resources