How do you people do it? - Motorola Droid X2

Sooooo basically I've never actually gotten all technical with the the theming on android. Nothing legit like you guys. But isn't it just a series of file replacements? Im an artist and have spent all my life drawing n such, and if someone would show me what to replace and how to safely do it I would give then whatever they need to release a flashable theme if anyone likes It. Im a very picky person. I like change on my phone baaddddd. If shown how; expect to see new themes like every other week if possible (depending on how difficult it is). Along with wallpapers that I usually spend hours trying to find.
Any takers?

Use search. I found some great links in this forum alone on theme creation.
Sent from my DROID X2 using xda premium

I'm new to theming, but for my theme, UOT Kitchen helped me out! The only downside is that you can't do status bar, boot animation, or lock screen. There's a thread for UOT Kitchen some where around this forum. But your right, just file replacements. Look under the systemUI.apk and framework-res drawable-hdpi files with 7zip (or something similar). You can edit the images without unzipping the file!
I started with a UOT Kitchen file and added/changed stuff in the file. If you can't find an image or need help with changing something, try asking the ROM creator, the would probably know where the stuff is in the ROM.
If you fail, try and try again! I epically failed my first time and SBF a couple times because I was an idiot. Then I asked some questions and got started the right way. But make sure you do a back up before you flash a new file. I learned the hard way. A file can look fine to the phone at first, then it deletes everything it should, and then starts to copy files over like normal until a part of the file is bad. Then you have to SBF or restore.
Backing up is easy, just go into recovery and go to advanced, then back up, and choose to put the back up file under internal or external SD card. I do external, just my preference.
Sent from my DROID X2 using XDA App

A lot of it is file replacement. However to change some of the colors such as text and the color of the volume indicator (those are the only ones that I can think of right now) will involve replacing the color hex values in XML files. In order to get the xml files in a readable/editable format you'll need to use apkmanager or apktool. Those are used to decompile the apk packages. You can then edit what you need to (including images) then re-compile the package. Search around in this themes forum for Navenedrobs post about android tools. He includes a download for apkmanager, apktool and some other necessary tools. I use apkmanager myself.
I also use 7zip for some small edits as mentioned in the last post but I prefer to decompile then edit. Apkmanager makes it easy to then optimize the images prior to recompile.
Oh another that required xml edits for colors is AOSP calendar. Not too many images in there but lots of colors are defined.
Here's a link to naven's android tools post.
http://forum.xda-developers.com/showthread.php?t=1261198

Theming is time consuming... its not quite as easy as simple image replacement especially on stretchable images also known as 9 pngs ... also if u want to start creating your own images that too could get tricky as u will need to use a program like gimp or another photo editing program.. gimp is the best in my opinion... sometimes it is necessary to add layers when creating your own images.... Hedwig... do use draw 9 patch for your. 9 pngs.... if not how do u edit those... I use apk manager to decompile and recompile each apk.. just curious if u know of a better tool for editing the. 9 pngs .. neways the way I started theming is with 7 zip... I went in and changed the images regular pngs and then tested it out uot kitchen is a good start but u r limited as far as how much u can theme
Sent from my DROID X2 using XDA App

Kevin3328 said:
Hedwig... do use draw 9 patch for your. 9 pngs.... if not how do u edit those... I use apk manager to decompile and recompile each apk.. just curious if u know of a better tool for editing the. 9 pngs ..
Click to expand...
Click to collapse
If you decompile the apk the 9.png images gain the one pixel border where the patch is drawn. I'm just careful not to edit any of the black pixels around the edges. When you re-compile the border is lost (values of those are stored). So, no, I don't use draw 9 patch at all. If you're making new images that you plan to compile into the apk the you can just draw the patches in gimp, photoshop, or whatever you use. Just remember to add a one pixel border all around to the size of your new image.
So, XGrinder911. Any of this discussion helping out or are we all just blah, blah, blah?

Well I was considering Adobe Illustrator? Might that program work to create images? And so I get this apk manager, it decompiles and whatnot then I edit the files. Recompiles and voila theme? I get using apk manager on like the calendar cause its an actuall app but what about things like the status bar n notification pull down? they are in serious need of a make over.
And I tried using the kitchen. Didn't work out for me. Got my loving boot loops. Even when replacing the framework res apk.
Ooohhhh! Is It that? That's the apk?
PS- Hedwig your my new best friend.

IDMA.DROID.X2 said:
I'm new to theming, but for my theme, UOT Kitchen helped me out! The only downside is that you can't do status bar, boot animation, or lock screen. There's a thread for UOT Kitchen some where around this forum. But your right, just file replacements. Look under the systemUI.apk and framework-res drawable-hdpi files with 7zip (or something similar). You can edit the images without unzipping the file!
I started with a UOT Kitchen file and added/changed stuff in the file. If you can't find an image or need help with changing something, try asking the ROM creator, the would probably know where the stuff is in the ROM.
If you fail, try and try again! I epically failed my first time and SBF a couple times because I was an idiot. Then I asked some questions and got started the right way. But make sure you do a back up before you flash a new file. I learned the hard way. A file can look fine to the phone at first, then it deletes everything it should, and then starts to copy files over like normal until a part of the file is bad. Then you have to SBF or restore.
Backing up is easy, just go into recovery and go to advanced, then back up, and choose to put the back up file under internal or external SD card. I do external, just my preference.
Sent from my DROID X2 using XDA App
Click to expand...
Click to collapse
Just want to say you DO NOT go to advanced for backup(nandroid)
You go to backup/restore
just clarifying
Good luck OP....hope to see some awesome theme soon....don't give up PLEASE! !!

ashclepdia said:
Just want to say you DO NOT go to advanced for backup(nandroid)
You go to backup/restore
just clarifying
Good luck OP....hope to see some awesome theme soon....don't give up PLEASE! !!
Click to expand...
Click to collapse
Oh yeah! Your right! Sorry about that!
Sent from my DROID X2 using XDA App

Wasn't trying to "get on your case"
just wanted to clarify

Haha didn't even notice it. I make a backup everydayyyy (flashaholic).
Question: is there anything I can do about those lil lines that separate lists like in messaging and settings? I hate them and we all know on this phone's screen they basically become invisible while scrolling anyway. Get them out of here.
DX2 Eclipse 1.3

I used UOT Kitchen to color. Not sure what file you would change to take them away. Ain't no shame in being a flashaholic! I bootlooped my phone on purpose when I for bored
Ash, no worries. Glad you clarified. Don't know what I was thinking with the advanced haha
Sent from my DROID X2 using XDA App

To "take them away" can't u just make em the same color as the menu

XGrinder911 said:
Haha didn't even notice it. I make a backup everydayyyy (flashaholic).
Question: is there anything I can do about those lil lines that separate lists like in messaging and settings? I hate them and we all know on this phone's screen they basically become invisible while scrolling anyway. Get them out of here.
DX2 Eclipse 1.3
Click to expand...
Click to collapse
The file is in framework-res.apk
framework-res.apk\res\drawable-hdpi\dark_header.9.png
Do what ashclepdia said and change the color in the bottom of that image to match the top. You'll see what I mean when you look at the image.
(Or light_header.9.png if you're working with a light framework.)

hedwig34 said:
The file is in framework-res.apk
framework-res.apk\res\drawable-hdpi\dark_header.9.png
Do what ashclepdia said and change the color in the bottom of that image to match the top. You'll see what I mean when you look at the image.
(Or light_header.9.png if you're working with a light framework.)
Click to expand...
Click to collapse
What is this exactly? All I see is a long rectangle with a hint of blue at the bottom.
DX2 Eclipse 1.3

XGrinder911 said:
What is this exactly? All I see is a long rectangle with a hint of blue at the bottom.
DX2 Eclipse 1.3
Click to expand...
Click to collapse
That image is streatched across the width of the screen. Creating the menu item that has the blue line at the bottom.
Think of it as that image repeating over and over again side by side.
Sent from my DROID X2 using XDA App

hedwig34 said:
That image is streatched across the width of the screen. Creating the menu item that has the blue line at the bottom.
Think of it as that image repeating over and over again side by side.
Sent from my DROID X2 using XDA App
Click to expand...
Click to collapse
Wait so where exactly is this rectangle?
DX2 Eclipse 1.3

Its a vertical rectangle repeated over and over again to make a skinny little horizontal line?? Wow, that's deep.
DX2 Eclipse 1.3

I have a question too. How do you devs mod the build.prop? Is that mostly the difference between ROMs?
(Thought it would be better here instead if a new thread. Don't mean to thread jack)
Sent from my DROID X2 using XDA App

IDMA.DROID.X2 said:
I have a question too. How do you devs mod the build.prop? Is that mostly the difference between ROMs?
(Thought it would be better here instead if a new thread. Don't mean to thread jack)
Sent from my DROID X2 using XDA App
Click to expand...
Click to collapse
No the differences between roms isn't mostly the build.prop
the build.prop can easily(usually) be modified using root explorer or similar.(I am having trouble editing the additions that kejar has made to build.prop tho. Never had this problem before. But its just the extra entries at bottom I can't change.
The biggest differences in roms come from the UI and system frameworks and scripts inside init.d
There are a few performance tweaks and edits u can make inside build.prop but ur.choices are kinda limited in what can be.done. even the line in eclipse build.prop that mentions raising the touch points recognized by the screen to 5 requires changes elsewhere in the "framework" to allow it to actually recognize that amount.

Related

[Q] Which png is it for the progress bar?

Cannot figure out which png it is in framework ( I think its in here) for when you are installing or downloading something. Its the solid one, not the stripped one. Anyone? Thanks in advance.
umm it is in the drawable as three seperate png i just cant think of what they are called right now
wait I think it is actually called Progressbar_intermediate1.png 2 and 3 under res/drawable-mdpi
PimpShit420 said:
wait I think it is actually called Progressbar_intermediate1.png 2 and 3 under res/drawable-mdpi
Click to expand...
Click to collapse
those I already know about. I meant the one that is a solid color for when installing something or downloading. you see it moving along. its a solid orange by default
That is controlled in the resource.arsc file. I haven't figured out how to edit it yet but the color is Def in that file, if I just switch that file only with one I got from an in credible. Theme, it changes
Sent from my Eris using XDA App
PimpShit420 said:
That is controlled in the resource.arsc file. I haven't figured out how to edit it yet but the color is Def in that file, if I just switch that file only with one I got from an in credible. Theme, it changes
Sent from my Eris using XDA App
Click to expand...
Click to collapse
would you mind sharing this file? And where is it located? And if I copy the file over that you give, what else changes?
yea there is only one problem with using this file that I have come across so far and its kind of big. The text color on all buttons is white so it cant be seen. The file itself is located in the framework-res.apk. I was using a program called winmerge to go through and the whole file is completley different but I havent figured out how to edit it nor how to read exactly what is says. I just formatted my laptop and put Ubuntu on it so as of right now I cant get the file to you, You can either search for Indigo_Blue Theme for CM6 here on XDA or blackle(google). The theme is in all hdpi but still has some good looking pngs you can use in your theme. I have resized all of them as well for mdpi but for some reason I get errors when trying to apply them all. If you cant find it I will send it to you here in a little bit though. I have been doing alot of reading and messing my phone up trying to figure out the best way to theme. For one I want to take the spinner out of the nfl program and put it in my theme but Im a long way from that. If you like I can send you over my notes as I come up with more discoveries of what it controlled where and how to edit its defaults to what I want.
PimpShit420 said:
yea there is only one problem with using this file that I have come across so far and its kind of big. The text color on all buttons is white so it cant be seen. The file itself is located in the framework-res.apk. I was using a program called winmerge to go through and the whole file is completley different but I havent figured out how to edit it nor how to read exactly what is says. I just formatted my laptop and put Ubuntu on it so as of right now I cant get the file to you, You can either search for Indigo_Blue Theme for CM6 here on XDA or blackle(google). The theme is in all hdpi but still has some good looking pngs you can use in your theme. I have resized all of them as well for mdpi but for some reason I get errors when trying to apply them all. If you cant find it I will send it to you here in a little bit though. I have been doing alot of reading and messing my phone up trying to figure out the best way to theme. For one I want to take the spinner out of the nfl program and put it in my theme but Im a long way from that. If you like I can send you over my notes as I come up with more discoveries of what it controlled where and how to edit its defaults to what I want.
Click to expand...
Click to collapse
Sure, if ya dont mind. I am not going to get into heavy themeing as you can see from my theme, but this is one of the things that bugs me as i want to change it and cant figure it out, lol.

Guide on how to correct the framework-res.apk so you can cook ICONs

OK folks,
Have a look at this guide that I created for editing the framework-res.apk so that you can then go to the UOT Kitchen and cook up your own ICONS and Batteries.
It is a long read and most folks can probably figure it out.
I have used this to create my own Battery and Status bar icons.
Regards,
Alperin1
I have converted your document to a PDF (some folks don't use Word).
Download here
If you want me to remove this I will.
thanks very helpful guide, but too involved for me. I will either use some one else theme, or use 7zip open archive and change PNG's trick.
Hopefully someone can upload an edited framework-res, for every DJ_Steve update that we all can share for UOT.. hint...hint...
thanks again, I may give this a try when I have time, hopefully I wont need to though.
chrisrotolo said:
thanks very helpful guide, but too involved for me. I will either use some one else theme, or use 7zip open archive and change PNG's trick.
Hopefully someone can upload an edited framework-res, for every DJ_Steve update that we all can share for UOT.. hint...hint...
thanks again, I may give this a try when I have time, hopefully I wont need to though.
Click to expand...
Click to collapse
Gopu already uploaded an edited framework-res..here it is
http://www.megaupload.com/?d=4TI7W0E1
ramtix said:
Gopu already uploaded an edited framework-res..here it is
http://www.megaupload.com/?d=4TI7W0E1
Click to expand...
Click to collapse
Ramtix, i knew that the framework was out thre for the others to use.
I guess the guide is for the folks that want to do all the work and learn a lttile bit about how the Framework is edited.
It took me a long time to figure out how to edit the 9.png files and compile them and just wanted to help others to do the same.
I tried that framework and failed to cook everytime
What is the use of those .9 pngs anyways?
chrisrotolo said:
I tried that framework and failed to cook everytime
What is the use of those .9 pngs anyways?
Click to expand...
Click to collapse
OK, what are the 9.pngs used for or why are they needed.
Stretchable Patches
If you have an image that you may need to stretch you then converting it to a 9.png will allow it to stretch. Also if you need put something in the PNG file, by converting it to a 9.png you can tell it where the text/data/information is allowed in the png file.
When you convert to a PNG you need to need to put a single pixel on the left side of the image and the top of the image. This pixel is not part of the image but in a frame around the image the frame also is just one pixel all the way around the image.
When you put the pixel on the top of the image you are telling the system where the image can be enlarged. Draw and line straight down from you pixel and this is where the image will stretch from. This just allows the image to grow to the left and to the right. Think of it as a square when you put the dot at the top of the square you can them change the square and stretch it left and right to make the square wider, so that it is now a rectangle. This all comes in handy when you rotate your device from landscape to portrait and back again.
Now when you put the pixel on the left side of the image, again in the frame that is around the PNG file, you are telling the system where it can stretch the image, this time you can pull the image up or down and so the height will change. Again image a square, you put the dot on the left side of the this determines at what point the square is allowed to stretch.
Only the lines with the dots on them will change, the rest of the square will retain the original shape and the original image. Most of the time this is done to an image that is only one color so that you are not messing with an image.
Here is the best example I can give of the DOT at the top of the 9.PNG or the left side.
Take two pieces of blank paper that you have and set one on the table and then set the second piece of paper in top of the first with about one inch of the right side of the first (bottom) piece of paper showing. The point where the top piece of paper ends and the bottom piece of paper starts is that DOT. Now slide the bottom piece of paper to the right and keep the top piece of paper still. Hope this all make sense
Content Area
Now lets look at the right side and the bottom of the PNG file. These two side determine where in the PNG file that text or other stuff can overlay or be imposed into the PNG file.
If I have an PNG that is a button and it is 50 x 50 pixels and I want the text for the button to be centered left to right, I would focus on the bottom of the 9.PNG image. I want the text to be able to use most of the pace from left to right but i do not want it to use the left 5 pixels at either end, I would create a line at the bottom of the 9.PNG that begins 6 pixels from the left and ends 6 pixels from the right. Why 6 pixels you are asking, well I have a one pixel from around the image and I needed to take that into account.
The same thing is used to center the text on the button from the top and bottom. Only this time you would use the right side of the image and fill in all pixels except for the 6 from the top and the 6 from the bottom.
Now when the button is stretched, you can use more of the space, but you will never be able to use the last 5 pixel on the top, bottom, left or right.
WOW, that was a long write up.
Enjoy,
Alperin1.
BTW, this is not unique to the Streak, it is used for the Android OS and maybe more.
alperin1 said:
Ramtix, i knew that the framework was out thre for the others to use.
I guess the guide is for the folks that want to do all the work and learn a lttile bit about how the Framework is edited.
It took me a long time to figure out how to edit the 9.png files and compile them and just wanted to help others to do the same.
Click to expand...
Click to collapse
Alperin, dont get me wrong, what you did is awesome, useful and will be appreciated for all other users in the forum especially for future bulids.You did a great effort putting it in words and composing that. thumbs up!
ramtix said:
Alperin, dont get me wrong, what you did is awesome, useful and will be appreciated for all other users in the forum especially for future bulids.You did a great effort putting it in words and composing that. thumbs up!
Click to expand...
Click to collapse
All is good. I did not intend for my response to be a flamer at you.
I think some folks just want to have some fun and try to make things work and a little help here and there can go a long way.
Thanks
Great explanation of .9.png's
Finally got the edited framework to cook
Hopefully this helps with more themes for Streak.
Thank you all around
Tried making my own framework.apk but failed big time, appreciate you uploading your work for me to use. Will keep the guide and continue to play with it, would like to say that I beat the software, not that the software beat me.
Keep hacking away at it.
Do you know where you are beating the software into submission. (where are you stuck?)
When it's time to complie is where I fail
alperin1 said:
Keep hacking away at it.
Do you know where you are beating the software into submission. (where are you stuck?)
Click to expand...
Click to collapse
alperin1, I will walk you through my Eclipse phase and maybe you can tell where all goes wrong.....
1. Make edits to .9 files like a champ if you don't mind me saying so...
2. Open Eclipse and go to File/new/android project and nothing, import LunarLander files and make sure settings are on Android 2.2
3. Create and now my copy of LunarLander is permanently updated to my edited .9 files (so assume at this point all is good to go).
4. At Export Signed Application Package is where I am having my problems, go throught the steps receive confirmation my file is G2G and when I move them to my Framework file all the edits are gone, like I did nothing to them.
5. Have preformed #4 multiple times and same result every time, everything moves but my edits are stripped out.
6. Figured maybe it is magic and edits will reappear when I cook my file, well no luck, get same exact error report as when I first tried to cook me some Icons on UOT.
Any ideas on what is causing my updated .9 files to loose the edits when I move them from LunarLander to Framework (Yes I do accept the overwrites when prompted).
Before you do the last step in Eclipse, drag one of the png files to your desktop and view it.
I am at work. I will play with this when I am home.
Sent from my Dell Streak using XDA App
vanemburghj said:
alperin1, I will walk you through my Eclipse phase and maybe you can tell where all goes wrong.....
Any ideas on what is causing my updated .9 files to loose the edits when I move them from LunarLander to Framework (Yes I do accept the overwrites when prompted).
Click to expand...
Click to collapse
This is very interesting. When I export my package from Eclipse and then pull the images they do not show the dots and the bars just like you are seeing. So, I have to say this part may not be where your are running into problems.
Is it possible for you to post the error text? Put it into a zipped file. I will see what I can do. This is kinda new to me so I will do what I can for you.
So you are in Eclipse and you have lunarlander, you then put all your edit 9.PNG files into the folder. Next your export it.
After you have created the new lunarlander.apk, you are going into it and extracting the 9.png files you need. You are then placing these file in the same location that you pulled them from in the framework-res.apk. right? Then you are uploading this to the UOT kitchen.
Will do
But will have to wait till I get home from work.
alperin1
Here is my LunarLaner.apk, none of the edits survived creation of .apk, but they are in my LunarLander sample as your guide shows them to be. So it is when I make the .apk that all fails. Have attached my Pre-export LunarLander so you can verify I made the changes to .9 files.
Window 7 Ultimate 64 bit
Norton Anti Virus
Plus other software
Any and all ideas are welcome.
vanemburghj said:
Here is my LunarLaner.apk, none of the edits survived creation of .apk, but they are in my LunarLander sample as your guide shows them to be. So it is when I make the .apk that all fails. Have attached my Pre-export LunarLander so you can verify I made the changes to .9 files.
.
Click to expand...
Click to collapse
Well, I have taken the 9.PNG files that you have provided and I put them into my Framework-res.apk file and I was able to cook up some goodness for myself at the kitchen.
As you are stating and you are correct, the frame around the 9.png is not showing after step number 4, but the information is there, i just do not yet know how to view it.
I think the problem may be that the same 9.png files are in two locations in the framework-res.apk. Can you try to cook a new set of ICONs or anything for that matter and when you get the errors, put them in a zipped text file and post it here for me.
Oh and what ROM are you using? DJ Steve 1.9? If so, you should have many more images to edit that what you have provided to me.
Cooked my own framework!!!
alperin1, Thank you, think I needed confirmation that once exported via eclipse edits would disappear, plus I took my time and made sure I did the wallpaper steps exact. Cooked my own framework, I am getting there, am sure it is one very small drop in a very big ocean of Android development that I have learned with your expert help I do appreciate it.
vanemburghj said:
alperin1, Thank you, think I needed confirmation that once exported via eclipse edits would disappear, plus I took my time and made sure I did the wallpaper steps exact. Cooked my own framework, I am getting there, am sure it is one very small drop in a very big ocean of Android development that I have learned with your expert help I do appreciate it.
Click to expand...
Click to collapse
Grasshopper.you are doing well. You have made my day.
Sent from my Dell Streak using XDA App

[Theme req] Virus Eternity red

Just modded my soft keys to light up red, attempting to get the theme on Virus's Eternity ROM to match. Could anyone change all the green to red, or point me to some tools to help me edit the framework? I'm new to the theming, but I have a decent understanding of ADB and Android file structure.
Sent from my PG86100 using xda premium
spenceizzle said:
Just modded my soft keys to light up red, attempting to get the theme on Virus's Eternity ROM to match. Could anyone change all the green to red, or point me to some tools to help me edit the framework? I'm new to the theming, but I have a decent understanding of ADB and Android file structure.
Sent from my PG86100 using xda premium
Click to expand...
Click to collapse
M10 tools and eclipse for Modding .9 pngs. And gimp for adding colors and a ton of experimentation
Sent from my PG86100 using xda premium
That looks... daunting, so lets start small. Now lets say I just wanted to mod the notification bar icons for now, I think that would fall under the .9 png modding portion. What files exactly would I be modifying? Is it some sort of jar file I would be ripping the pngs out of, modifying, and replacing? I am quite new to this, so please don't flame me too much
spenceizzle said:
That looks... daunting, so lets start small. Now lets say I just wanted to mod the notification bar icons for now, I think that would fall under the .9 png modding portion. What files exactly would I be modifying? Is it some sort of jar file I would be ripping the pngs out of, modifying, and replacing? I am quite new to this, so please don't flame me too much
Click to expand...
Click to collapse
notification bar icons are mainly in systemui.apk and are standard .pngs.
Theirs alot of guys willing to help those who help them selves. from what your asking i'de suggest doing a ton of reading. their are a ton of theming modding how tos. but if you wanna jump in grab 7zip,gimp(or a similar graphics editor) and android signer, and start experimenting, If you wanna edit .9.pngs your gonna have to learn how to use apktool and a .9 compiler. But just do a search theirs alot of great how tos and tools all over the forum.
I found the systemUI.apk from reading the beats headphone icon thread. So I'm assuming that the .pngs found in the systemUI.apk are normal .pngs that don't need any kind of special encoding or transparency values. If I were going to change some sense 3.0 assets, I would need to use this guide posted here: http://forum.xda-developers.com/showthread.php?p=5206698, correct?
Edit: Also, is the SystemUI.odex file anything I have to worry about?
spenceizzle said:
I found the systemUI.apk from reading the beats headphone icon thread. So I'm assuming that the .pngs found in the systemUI.apk are normal .pngs that don't need any kind of special encoding or transparency values. If I were going to change some sense 3.0 assets, I would need to use this guide posted here: http://forum.xda-developers.com/showthread.php?p=5206698, correct?
Edit: Also, is the SystemUI.odex file anything I have to worry about?
Click to expand...
Click to collapse
if your just looking to change images the .odex isn't something you need to worry about, the link you posted refers to .9.pngs, when you say assets if your refering to the images that are in assets folders tose are .m10 files and for those you need the .m10 tools that can also be found here on xda.
Well, I got the drawable-hdpi finished, I may have to tweek the 4g icon, the signal bars look a little pink. Tomorrow I'll see if I can find the syncing icon, battery percentage, and other little odds and ends that I can easily edit. I'm attaching the SystemUI.apk for anyone who wants to try it.

Theme Creation

I have tried UOT Kitchen before, always was unlucky at having flashing errors.
My question is this... If I take a flashable theme, with permission from the creator, I should be able to use the scripts that they include for flashing? I am savvy with un-APKing zipping, signing and what not, is that all I would have to do to recreate a theme using my own images?
Thanks to everyone here!
Yes, the script you see other themes using can be changed out with your own, as well as the content. You can also just use the UOT Kitchen script. Credit given where credit is due, of course, but the script itself (IMHO) is not something you really need permission for.
Another tip, this from firsthand experience, when you're zipping everything up getting ready to flash, make sure you're zipping the contents of the theme folder (/META-INF/ & /system/) vs zipping the theme folder.
It sounds really stupid, but it took me forever to figure out why everything I did in UOT Kitchen perfectly but everything I did, using the same damn script, just froze. But ya gotta learn somewhere, right?
Remember when using the kitchen make sure u click amend scripting in the area where u load the apks... x2 uses 2. Something recovery.. if u don't click that there will be errors everytime
Sent from my Galaxy Nexus using xda premium
Thank you, I think I've tried UOT 5 times but never had success.
Kevin, I tried the amend scripting, it solo didn't work.
I would much rather use my own images then those offered in uot kitchen.
I'm going to try to put a theme together this weekend, I haven't modded anything since BF2 wake island air show
Dee Ex Two - See Em Seven
Ok, how much do you know about themeing? Because if you are wanting to edit just the images(.pngs) you will need some info first...
You can "simply" take the framework-res.apk and systemUI.apk and go to the HDPI folder(or wherever the images are) and "drag n drop" to your desktop and edit those... OR you can take a .png that you wanna use(say one from another theme) and just drag n drop in the HDPI folder. And then, simply make a flashable .zip and your good to go.
.9s !!!
These are a PAIN if you dont know what you are doing.
If you are going to try and get into themeing, download APKManager and decompile the framework-res.apk ... go to a .9 image(i think its .png.9 or something of the like). When you load the image(say in GIMP) you will see black squares on the OUTSIDE of the image(like near the edges of the ACTUAL picture edge)... DONT TOUCH THOSE!!!! leave them there and make edits how you choose to the rest of the image. Once you are finished, just recompile(DONT SIGN AND YES! THESE ARE SYSTEM APPS!). Put in a flashable .zip and your set.
NOW Please note:
When you are doing the drag and drop method, make sure you are REPLACING an image and not ADDING more images.. catch the drift?
this is quick how to, hope it helps and good luck. let me know if you need anything else.
All the themes rock! I have poor eye sight (far sight) so my main concern always is status bar and the battery icon. I love being able to see the percentage, but some themes use smaller battery percentage text.
.9 seem like the stretchable area I'm beautiful widget... I understand that
Thanks Peperm1nt
Dee Ex Two - See Em Seven
I was thinking of trying out theming. That is until I looked at the crap load of images just thrown into one directory. lol. It may not be as hard as it looks but I havent looked any further than that yet. I still want to try something out though. Is there an easy way of figuring out what image does what on the phone? Like if I want to change some things, I have to know the name of the image. Well, to me, it looks like they aren't named plain and simple. Plus when they are just thrown into one directory its kinda hard to distinguish what is what. It was so much easier theming for webOS. lol
Js if u really look at the framework u will see all the images in the drawable hdpi folder are really a lot of the presses..tabs. status bar icons... over scroll glow theming takes a lot of time to build straight from scratch... any .9 PNG can be edited when it is decompiled in apk manager or apk multi tool just don't edit the black patch as peppermint said or u will not compile...
Sent from my Galaxy Nexus using xda premium
Kevin3328 said:
Js if u really look at the framework u will see all the images in the drawable hdpi folder are really a lot of the presses..tabs. status bar icons... over scroll glow theming takes a lot of time to build straight from scratch... any .9 PNG can be edited when it is decompiled in apk manager or apk multi tool just don't edit the black patch as peppermint said or u will not compile...
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Yeah, one of these days ill download the tools and play with it. I've always enjoyed theming.
Sent from my MB870 using Tapatalk
I'm just trying to figure out the script to flash, is it the one in the google folder?
Dee Ex Two - See Em Seven
@js I know what you are saying about the desire to do it but the system isn't really what I would say themer friendly! Admittedly I am not the sharpest tool in the shade when it comes to some things (like the Android OS), so I would imagine that plays a big role in my intimidation of the whole thing.
What got me was the De-Compiling and Recompiling of everything just to change something. Not to mention the signatures and etc... perhaps one day someone will write a piece of software (be it windows based or Android in a shell on a PC) that will make it all pretty simple on that part. Till then I will prob. just enjoy and appreciate the work of others.
GL, Slim!
SlimMan said:
@js I know what you are saying about the desire to do it but the system isn't really what I would say themer friendly! Admittedly I am not the sharpest tool in the shade when it comes to some things (like the Android OS), so I would imagine that plays a big role in my intimidation of the whole thing.
What got me was the De-Compiling and Recompiling of everything just to change something. Not to mention the signatures and etc... perhaps one day someone will write a piece of software (be it windows based or Android in a shell on a PC) that will make it all pretty simple on that part. Till then I will prob. just enjoy and appreciate the work of others.
GL, Slim!
Click to expand...
Click to collapse
Yeah, I agree about the decompiling and recompiling thing. When I had a webOS phone I created my own theme just by simply replacing the images and restarting the phone. With android, it seems you have to take the whole framework out, theme it and recompile the package file and flash it to the phone. Just seems a bit overwhelming.
Sent from my MB870 using Tapatalk
It's not that bad if you are just changing the images... Just timely. I suggest gimp to do the work. Another tip, some of the images are indexed. In gimp change from indexed to rgb...back to indexed, then rgb. Reason being that you are now able to add any color and doing it twice clears the pixelation...
What gets hard is smali editing and .xml editing. Let me know if you need help there.
Tapin' the Talk on the xSquared
Send a PM to "KTT16" on the Motorola Photon Forums, he is a great themer, let him know what you need help with, tell him you are running stock on the X2, he'll ask you for whatever files he needs, and he will help out.
By the way, if you are at all interested in a signature image, I can create one for you, just PM me, and I'll get on it.
Peperm1nt said:
It's not that bad if you are just changing the images... Just timely. I suggest gimp to do the work. Another tip, some of the images are indexed. In gimp change from indexed to rgb...back to indexed, then rgb. Reason being that you are now able to add any color and doing it twice clears the pixelation...
What gets hard is smali editing and .xml editing. Let me know if you need help there.
Tapin' the Talk on the xSquared
Click to expand...
Click to collapse
I can batch process in PS.....and what is this bout clearing the pixelation...lol
Thanks I'll check it out
Dee Ex Two - See Em Seven
When you find a indexed image going to rgb pixelates the image...going back to indexed and then to rgb fixes this.
Tapin' the Talk on the xSquared
Peperm1nt said:
When you find a indexed image going to rgb pixelates the image...going back to indexed and then to rgb fixes this.
Tapin' the Talk on the xSquared
Click to expand...
Click to collapse
I was p playing with you, all my online gaming and forum names have always had pixel, pixelated, pixelation, pixelized or any variety of pixel
Edit: swyponese
Dee Ex Two - See Em Seven
I am trying this out for the 1st time. My main goal is to create a transparent status bar for CM7. Will this make that "patch" I need for this?
Kevin3328 said:
Js if u really look at the framework u will see all the images in the drawable hdpi folder are really a lot of the presses..tabs. status bar icons... over scroll glow theming takes a lot of time to build straight from scratch... any .9 PNG can be edited when it is decompiled in apk manager or apk multi tool just don't edit the black patch as peppermint said or u will not compile...
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
i seem to be a complete idiot lol
im sitting here trying to use apk manager and have no clue how to go about it
i cant get it to friggin pull files, i have no clue what im doing tho lol
i been trying to find info on how to use it with the x2 but cant find jack that is actually useful.
time to go eat, clear my head, and get back to researching, im probably just missing something extremely easy i knoow, but hey, i havent had a working computer in years so yea, im kinda learning on the fly here, lol
Lol @ash
In apkm select the apk you want, then decompile... Make edits, recompile.
Tapin' the Talk on the xSquared

[Q] SystemUI.apk editing?

Good day ladies and gentlemen.
If I may ask, does any person presently reading this post know of a method to alter the images contained within SystemUI.apk? I would be grateful to anybody who could resolve my conundrum. I must also present some background information; I have unsuccessfully recompiled the apk file and I have also attempted to edit the files whilst not extracting said apk which also resulted in disappointing failure. However, I have not attempted to create a flashable zip file due to the fact that I lack this information. If this can be confirmed working, then I require no more assistance as I would not want to burden anybody with the simple task of using Google. Once again, I kindly request any assistance from any persons reading this if you would so choose to help a fellow XDA user.
Thank you for reading and/or responding to my post. I wish you all a happy week.
jdeoxys said:
Good day ladies and gentlemen.
If I may ask, does any person presently reading this post know of a method to alter the images contained within SystemUI.apk? I would be grateful to anybody who could resolve my conundrum. I must also present some background information; I have unsuccessfully recompiled the apk file and I have also attempted to edit the files whilst not extracting said apk which also resulted in disappointing failure. However, I have not attempted to create a flashable zip file due to the fact that I lack this information. If this can be confirmed working, then I require no more assistance as I would not want to burden anybody with the simple task of using Google. Once again, I kindly request any assistance from any persons reading this if you would so choose to help a fellow XDA user.
Thank you for reading and/or responding to my post. I wish you all a happy week.
Click to expand...
Click to collapse
Yea it can be done. IDK what ROM you're running or if you're rooted,but I was going to make my own nav buttons before I switched ROMS. The Dev of the Icylicious ROM has made a few mod packs (flashable systemUI.apks) of the nav buttons for his ROM. I asked him a question about doing my own images and this is what he said...
I like the stock buttons myself...the stock icy buttons. I would like to do a few of my own images, but is it as simple as overwriting your images and rezipping? Anything in particular I should know/do? I'd really appreciate your help with that aspect...as far as images, I've been using Photoshop for years so I'm good there. Thanks
system/app/SystemUI.apk/res/drawable-mdpi
you'll find the buttons in that directory. No need to unzip. Just open the ROM in Winrar, navigate to that directory, pull out just the files you want to modify, and drag and drop them back in. What I do is just pull the systemui out, and open the apk in winrar (winrar treats it just like a rar or zip file), modify the file in Photoshop, and when you're done, just replace the systemui.apk in one of the zips I have in the "Mods" post with yours and flash it.
It really is that simple.
Hope that helps..
jaycustom said:
Yea it can be done. IDK what ROM you're running or if you're rooted,but I was going to make my own nav buttons before I switched ROMS. The Dev of the Icylicious ROM has made a few mod packs (flashable systemUI.apks) of the nav buttons for his ROM. I asked him a question about doing my own images and this is what he said...
I like the stock buttons myself...the stock icy buttons. I would like to do a few of my own images, but is it as simple as overwriting your images and rezipping? Anything in particular I should know/do? I'd really appreciate your help with that aspect...as far as images, I've been using Photoshop for years so I'm good there. Thanks
system/app/SystemUI.apk/res/drawable-mdpi
you'll find the buttons in that directory. No need to unzip. Just open the ROM in Winrar, navigate to that directory, pull out just the files you want to modify, and drag and drop them back in. What I do is just pull the systemui out, and open the apk in winrar (winrar treats it just like a rar or zip file), modify the file in Photoshop, and when you're done, just replace the systemui.apk in one of the zips I have in the "Mods" post with yours and flash it.
It really is that simple.
Hope that helps..
Click to expand...
Click to collapse
As long a you don't alter the .9.png a they need to be decompiled, then recompiled. I've been taught to use APK Manager to unzip/edit the systemui.apk I it's easy to use one you get the hang of it. Do yourself a favor and dl Gimp, it's a great image editing tool.
I have a thread in Droid X2/Theme + Apps / Theme Creation....
Good luck, enjoy
This ISN'T my Transformer Prime
jaycustom said:
Yea it can be done. IDK what ROM you're running or if you're rooted,but I was going to make my own nav buttons before I switched ROMS. The Dev of the Icylicious ROM has made a few mod packs (flashable systemUI.apks) of the nav buttons for his ROM. I asked him a question about doing my own images and this is what he said...
I like the stock buttons myself...the stock icy buttons. I would like to do a few of my own images, but is it as simple as overwriting your images and rezipping? Anything in particular I should know/do? I'd really appreciate your help with that aspect...as far as images, I've been using Photoshop for years so I'm good there. Thanks
system/app/SystemUI.apk/res/drawable-mdpi
you'll find the buttons in that directory. No need to unzip. Just open the ROM in Winrar, navigate to that directory, pull out just the files you want to modify, and drag and drop them back in. What I do is just pull the systemui out, and open the apk in winrar (winrar treats it just like a rar or zip file), modify the file in Photoshop, and when you're done, just replace the systemui.apk in one of the zips I have in the "Mods" post with yours and flash it.
It really is that simple.
Hope that helps..
Click to expand...
Click to collapse
I found a way to get it working. I just had to dl one of the other qs mods and use the included scripts to install from cwm. I did try to replace the systemui.apk manually with es file explorer but idk why it failed.
Pixelation said:
As long a you don't alter the .9.png a they need to be decompiled, then recompiled. I've been taught to use APK Manager to unzip/edit the systemui.apk I it's easy to use one you get the hang of it. Do yourself a favor and dl Gimp, it's a great image editing tool.
I have a thread in Droid X2/Theme + Apps / Theme Creation....
Good luck, enjoy
This ISN'T my Transformer Prime
Click to expand...
Click to collapse
I have gimp and its great.
Can only replace PNG files as of right now. No one has been able to recompile the SystemUI.apk successfully.... will most likely need the source from Asus.
Sent from my Transformer Prime TF201 using XDA Premium HD app
Ok, I got down to business but the look is still inconsistent with grey lines and blue lines. Wat do?
Sent from my PG86100 using xda premium
If you don't see the PNG that you're looking for, you might also want to try the framework-res.apk. if it's not there either, then it may be a XML edit, in which case you're out of luck.
Sent from my CM7 Atrix 4G
Swiftks said:
If you don't see the PNG that you're looking for, you might also want to try the framework-res.apk. if it's not there either, then it may be a XML edit, in which case you're out of luck.
Sent from my CM7 Atrix 4G
Click to expand...
Click to collapse
FFFFFFFFFFFFFFFFFFFUUUUUUUUUUU man that sucks. Checked mah dubs ... excuse me, my framework-res apk and it was chock full of images. It's gonna take a year to sort through them all. Imma try emailing Asus and see if they could release the sauce code for systemui or whatever. Thanks for the intel bro.
Sent from my tablet thing with XDA Premium.
jdeoxys said:
FFFFFFFFFFFFFFFFFFFUUUUUUUUUUU man that sucks. Checked mah dubs ... excuse me, my framework-res apk and it was chock full of images. It's gonna take a year to sort through them all. Imma try emailing Asus and see if they could release the sauce code for systemui or whatever. Thanks for the intel bro.
Sent from my tablet thing with XDA Premium.
Click to expand...
Click to collapse
Batch editing is great, there are a ton, so be patient, or leave it to a theme. The regular .png you don't need to worry about much. It's the .9.png where the recompiling becomes an issue.
This IS my Transformer Prime, my DX 2 is boring
Pixelation said:
Batch editing is great, there are a ton, so be patient, or leave it to a theme. The regular .png you don't need to worry about much. It's the .9.png where the recompiling becomes an issue.
This IS my Transformer Prime, my DX 2 is boring
Click to expand...
Click to collapse
How do you batch edit? And why is the .9.png so important?
jdeoxys said:
How do you batch edit? And why is the .9.png so important?
Click to expand...
Click to collapse
.9.pngs are usually things like boarders, boxes, popups, etc.
But they have to be decompiled and recompiled in order to edit them and have them work.
Sent from my Transformer Prime TF201 using XDA Premium HD app
Swiftks said:
.9.pngs are usually things like boarders, boxes, popups, etc.
But they have to be recompiled and recompiled in order to edit them and have them work.
Sent from my Transformer Prime TF201 using XDA Premium HD app
Click to expand...
Click to collapse
Damn, that means I can't do anything unless they find out a way to decompile...
Sent from my tablet thing with XDA Premium.
jdeoxys said:
Damn, that means I can't do anything unless they find out a way to decompile...
Sent from my tablet thing with XDA Premium.
Click to expand...
Click to collapse
AOKP Rom is kicking ass, and since it's not based off of Asus's source, everything decompiles and recompiles quite nicely.
Sent from my Transformer Prime TF201 using XDA Premium HD app
.9.PNG are bastards. I spent hours and hour working on them.Worst part is that they have index, which Photoshop doesn't read, so it just messes up gradients. Paint.net handles them well IIRC.
Sent through the wormhole from my CoinInserted Sensation OG.
.9s aren't bad as long as you know what's going on with them. If working on a .9 PNG the previous statement that you cannot edit them without decompiling is accurate. The .9 essentially is an image that is going to be stretched. The ".9" or "guides" tells the system where the stretching is going to happen. With out decompiling the .9 you will be unable to see the guides... therefore you cannot edit the image without destroying the guides! Once decompiled the .9 image will show its guides as black pixels or lines on the border of the image. Once you see those you can just edit everthing inside of those guides and recompile without an issue. Now there are other work arounds that you can do to still modify these images without being able to successfully decompile/recompile your existing framework. Such as pulling the compiled .9 image out of the .apk... renaming to remove the .9... editing then using 9patch from the Android sdk to reguide the image... but then of coarse you will have to go through the process of recompiling the image to drop into the apk. Another quick possibility would be to pull the image you want to edit from let's say framework-Res.apk... download a theme that you know you're able to recompile... replace one of the images within that theme with yours(renaming if needed). Decompile-edit-recompile... then pull your edited .9 from the recompiled project and dropping into your actual framework. There's almost always a work around... just keep in mind should something go wrong you could end up starting from scratch.
Btw.. your top and left "guides" are where the image will be stretched. The bottom and right are for padding(if I recall correctly) lol.. but I'm positive top and left are the stretch points...
Sent from my Galaxy Nexus using Tapatalk

Categories

Resources