I dont mean to look for the easy way out but ive searched and cannot find exactly what i am looking for. I want to turn my AOKP theme into a flashable zip and im not sure where to start.
Ive already edited the pngs, .9 pngs, and xmls i want and turned out a pretty nice red theme with full colored icons. I used the common apks; contacts, phone, systemui, settings, and framework-res. Where do i go from here?
I have found some threads saying you use the entire apk and just copy it into another theme, but im looking to do it from scratch. Also, that doesnt seem right to copy the entire apk over because that would overwrite any changes made in the nightlies. Wouldnt you just take only the drawables, values, etc out and make that the theme?
thanks for any help.
Related
im trying to make make my own theme, but i need some help. i dont know where to begin. i have a couple of themes out on the forum that i want to chop up to make my new theme. how do i package them all together?
also how to you change the taskbar icons and takebar drop down box?
i want these icons
http://img19.imageshack.us/img19/9821/devicew.png
i want this dropdown box for my notifications
http://i235.photobucket.com/albums/ee97/atoz350/a9a98a9c.png
i want this rosie
http://i40.tinypic.com/mv26nr.png
and im trying to figure out how to package all my apks it to a zip
please someone help me out!!!
i looked at a couple how-to's and guides but still cant figure it out
Yay you want my Rosie haha. Basically everything you wanna change is it framework-res.apk and com.htc.resources.apk in /system/framework
Open the apk's, pull out the res folders, find the images you wanna replace and replace them. Then put the res folder back into the respected apk, and put them into an update.zip and sign it. If you dont know how to do the last part I can do it for you
take the files from the theme elements you like and then replace the ones in the rom youre using with the ones you like. There are many files to edit depending on what you are trying to alter. I suggest editing your own rom before attemting an update.zip theme for us.
Alright....I've tried searching and searching but I can't find exactly what I need. I'm wanting to try to port blue echo to cm6.1. Now I'm still a little new at this but I've learned how to smali and baksmali, use flashboot, sdk, sign zips, create flashable zips, zip align, optimize, pretty much all the ends and outs of the basic. I've only been at this 4 months but I love android and want to learn to become a dev. Now I'm trying to learn how to theme roms. There are a million guides that I've found but now will tell me how to do this . Could someone point in the right direction to a thread explaining how to port a sense theme to cm6.1. Ive tried replacing the images in the drawables folders from framework-res . Repackaged zip aligned optimized signed and flashed. Nothing took. So I opened the zip all the images had copied over in the cm6 rom zip. So I wiped and flashed the modded zip it still reverts to the original framework of cm6. I don't understand how that is. I need a way to just copy the colors and images. Does anyone know what I'm doing wrong or know of a how to with just the steps .I already have all the programs on my pc.
shawn328 said:
Alright....I've tried searching and searching but I can't find exactly what I need. I'm wanting to try to port blue echo to cm6.1. Now I'm still a little new at this but I've learned how to smali and baksmali, use flashboot, sdk, sign zips, create flashable zips, zip align, optimize, pretty much all the ends and outs of the basic. I've only been at this 4 months but I love android and want to learn to become a dev. Now I'm trying to learn how to theme roms. There are a million guides that I've found but now will tell me how to do this . Could someone point in the right direction to a thread explaining how to port a sense theme to cm6.1. Ive tried replacing the images in the drawables folders from framework-res . Repackaged zip aligned optimized signed and flashed. Nothing took. So I opened the zip all the images had copied over in the cm6 rom zip. So I wiped and flashed the modded zip it still reverts to the original framework of cm6. I don't understand how that is. I need a way to just copy the colors and images. Does anyone know what I'm doing wrong or know of a how to with just the steps .I already have all the programs on my pc.
Click to expand...
Click to collapse
Simplest way, if you just want the icons, pics and notification bar things is to use 7zip for PC. Don't extract the theme, just open it. Navigate to the framework-res.apk file of the new ROM you want the theme to work on, open but don't extract, copy all the .png files from the theme into the ROM or new theme you are making. It will ask you to replace, obviously you say "yes" When you are done, just close it all back up, no recompressing or signing needed because you didn't extract anything. Just put it on your SD card and it will flash.
Let me know if you need more help. This by and large the simplest method for making minor edits to a theme.
Download the CyanogenSense theme by mrinehart93 found here: http://forum.xda-developers.com/showthread.php?t=723224
It's a working Sense-looking theme on CM6. Download it, unzip it on your PC, pick it apart, etc. to see how he changed and compiled it to make it work. Hopefully that will help you figure out how to do what you want to do. Good luck.
chromiumleaf said:
Download the CyanogenSense theme by mrinehart93 found here: http://forum.xda-developers.com/showthread.php?t=723224
It's a working Sense-looking theme on CM6. Download it, unzip it on your PC, pick it apart, etc. to see how he changed and compiled it to make it work. Hopefully that will help you figure out how to do what you want to do. Good luck.
Click to expand...
Click to collapse
+1 Good idea!
ranger61878 said:
Simplest way, if you just want the icons, pics and notification bar things is to use 7zip for PC. Don't extract the theme, just open it. Navigate to the framework-res.apk file of the new ROM you want the theme to work on, open but don't extract, copy all the .png files from the theme into the ROM or new theme you are making. It will ask you to replace, obviously you say "yes" When you are done, just close it all back up, no recompressing or signing needed because you didn't extract anything. Just put it on your SD card and it will flash.
Let me know if you need more help. This by and large the simplest method for making minor edits to a theme.
Click to expand...
Click to collapse
I did this but had to flash clockword because i was using ra, it wasn't verifying the update. So i turned off signature verification. But I'm using firerat mtd and forgot that i have to repatch the clockword for this so I did'nt really get to see if it worked yet. But thanks all of you responding I appreciate it. Ill let you know if these methods work.
I fixed the prob. Did everything suggested by copying the png's between the zips without extracting them. Even doubled checked all the png's everything looked like it was a go . But I only got 3 of my new icons. Everything else was still stock cm6 even the notification bar was stock. Do I got to do more than just transfer the png's cause it seems like maybe the xml's are reverting them back to stock?
Is it possible? I love the theme. Particularly in the notification pull-down thing with the wifi icons and such.
They are just png images in the framework. Depending on what other rom you are wanting to use it on you may be able to just swap out the framework-res.apk and twframework-res.apk in /system/app. Otherwise you can just move the images into the new rom framework files (the ones used are in /res/drawable-hdpi usually). You might be interested in learning to create metamorph zip files as well.
Thank you. However, I extracted the framework-res.apk and I have found some image files, but I see none that are pull-down icons like the GPS, Wifi, Auto-rotate icons. Any help?
Not sure what you mean by metamorph.
Because they're not there.
They're in twframework-res.apk. And you have to edit the status_bar_expanded.xml to get rid of the text.
It is essentially "Gingerbread" with some minor tweaks.
The only issue you might have is when you copy all of the images out of the framework-res.apk -> drawable-hdpl folder that your menu buttons might be a little off. Unless you start out with a Dark theme that has already adjusted the menu to have a black background and white text...
I think there is a Gingerbread theme in the Theme/App forum that would be close to what your looking for.
I was trying to do a MetaMorph for this type of theme but I could never get the *.xml edits needed to overwrite using MetaMorph correctly. (Check the Q&A Sticky for MetaMorph)
... It can be done but it'd be a little more complicated
Okay, I am still trying to understand. I extracted the twframework-res.apk and took out the files from the Assonance theme. I extracted the twframework-res.apk from another theme that I liked, and replaced the Assonance parts I like into it. Now, can I just zip it back up and rename it to .apk? I'm not really sure what to do now.
Thanks for your help so far!
max
Searched and couldn't find just this...a black notification pull down. I think I am one of the few that likes the stock look just want a black/ transparent pulldown and don't want a whole new theme to get it. I am running dl30 BTW. I KNOW THAERE ALOT OF REQUEST BUT HOPEFULLY MINE IS EASY TO FULL FILL WITH A COUPLE OF OPTIONS TO ADD AS A ZIP FOR THOSE THAT LIKE A SEMI-STOCK LOOK. HOPE TO SEE A COUPLE SOON.
THANKS IN ADVANCE
A little FYI...I really like the midnight pulldown and buttons....many others are nice as well..
This can be done by modifying the png images in the framework i believe. If you use 7zip to extract it and then edit with photoshop or gimp and save the png and put back into the framework file.
If i am wrong somebody can correct me though.
bump....seems easy but I am an idiot with this phone?!?
I want it also
I pulled out the files and changed everything and put it back into the apk file. When I put it back on my phone I didnt get any changes. I thought I read that if your only changeing pics, this is all that was needed.
I posted asking if there was something I was missing but no answer.
I have the changes if I could get the phone to take them.
Yeah i tried ti compile it too just now....fail.
MSHancock said:
I pulled out the files and changed everything and put it back into the apk file. When I put it back on my phone I didnt get any changes. I thought I read that if your only changeing pics, this is all that was needed.
I posted asking if there was something I was missing but no answer.
I have the changes if I could get the phone to take them.
Click to expand...
Click to collapse
Attach your framework-res.apk & twframework-res.apk and let me look at it. It will be hard to give an accurate explanation without first doing this.
EDIT: Or do what nitsuj said below and it should work. Your probably having problems with .9 pngs
MSHancock said:
I pulled out the files and changed everything and put it back into the apk file. When I put it back on my phone I didnt get any changes. I thought I read that if your only changeing pics, this is all that was needed.
I posted asking if there was something I was missing but no answer.
I have the changes if I could get the phone to take them.
Click to expand...
Click to collapse
to do what you are trying to do.......grab the twframework-res.apk from your phone by pulling it with adb...or simple version just grab it out the rom you are currently using by moving the og rom file to your desktop and use 7zip to extract it.
now use 7zip again to extract the drawable-hdpi folder from the apk.
swap out status_bar_background.9 for a transparent one you grabbed from another theme...or you can make one by yourself...but its a .9 image so you ll have to patch it in 9 patch.
if you want to avoid that heres a transparent one for you http://dl.dropbox.com/u/15331201/rom/transparentbackground.zip (just extract it and swap it)
open up the twframework with 7zip again and copy this drawabl-hdpi folder over the old one....then you can push this framework back to your phone...or just take one of our theme update.zips and open it up with 7zip...go into the system folder, delete the app and font folders...go into the framework folder and delete whats theres and place the twframework-res.apk in it....put the zip file on ur sdcard...boot to recovery and flash it
Thanks
Thanks for the tips guys. I will work on this today and have something later.
as soon as I get back to my comp I am going to try and fix it...
Can someone tell me where I can change the font of the notifications. They come out in black and don't go with my theme, I'd like to change them to white. Thanks
Also if someone can teach me how to get the words under the icons to show up (wifi, bluetooth, gps ... )
You'll be wanting to read how to theme, there are a few threads if you search. twframework-res.apk and framework-res.apk is what you'll be modifying.
Caution swyping! Read at your own risk.
cappysw10 said:
You'll be wanting to read how to theme, there are a few threads if you search. twframework-res.apk and framework-res.apk is what you'll be modifying.
Caution swyping! Read at your own risk.
Click to expand...
Click to collapse
Thanks, I've modified both those files with all the images I need in those two folders. I just need someone to point me to the right xml file that needs editing for these two questions (and if you'd be so kind to point me to where in the xml file even better), thanks
Can anybody help me out... Pleeaase?
Sent from my SAMSUNG-SGH-I897 using XDA App
I think this is what you're looking for
http://forum.xda-developers.com/showthread.php?t=1007221
CuriousTech said:
I think this is what you're looking for
http://forum.xda-developers.com/showthread.php?t=1007221
Click to expand...
Click to collapse
Ok that somewhat helped. I'm looking at the status_bar_expanded.xml file and the last three are already at #ffffffff for white (which is what I want) but my notifications are still coming up in black
I think that's in framework-res.apk/res/layout/status_bar_latest_event_content.xml
It looks like you're trying to change a heavily modified theme back to original. It would be easiest to look at a stock framework and use those values.
CuriousTech said:
I think that's in framework-res.apk/res/layout/status_bar_latest_event_content.xml
It looks like you're trying to change a heavily modified theme back to original. It would be easiest to look at a stock framework and use those values.
Click to expand...
Click to collapse
That should do it!
CuriousTech said:
I think that's in framework-res.apk/res/layout/status_bar_latest_event_content.xml
It looks like you're trying to change a heavily modified theme back to original. It would be easiest to look at a stock framework and use those values.
Click to expand...
Click to collapse
It's actually status_bar_expanded.xml. I need to change the color from ff000000 to ffffffff, that will change it from black to white. So I decompiled framework-res.apk using apk manager. I edited the file, then when I try to compile, I get an error, even if I answer Yes Yes to the two questions and delete the resources.arsc file plust the xml file I edited. It creates an unsigned package but it's much smaller than the original. What am I doing wrong?
I'd prefer to learn how to change the font color to white, however if anybody knows which is the image file for the background I can also just change that to a white or light color that is not transparent like the current one is
What errors are you getting when you compile it? Are you trying to mod a already moded theme? It is most likely .9.png errors that you are getting and they will need to be fixed before it will recompile. Also make sure you are using apktool 1.3.1 as the newer version is known to cause recompiling issues.
The backgrounds are in framework-res
status_bar_item_background_normal.9.png
status_bar_item_app_background_normal.9.png
One is the title "Ongoing..." I think. The associated "pressed" or for when pressed.
The most significant error is the first one. Usually the ones below that are caused by it. Because of the .9.png errors, I always make xml changes to the original unthemed APK, compile it, then pull the compiled xml files out and drop them into the themed one or keep a copy of the drawable-hdpi folder with all the modified .9s (compiled) and drop them into the new APK each time. It's a pain but works.
Thanks guys. framework was previously themed, I'm trying to add my own flavor into the mix. I'll check into the .9.png files when I get home and report back.
A better explanation is that .9.png files that have an opacity set won't decompile so they're corrupt. They'll show up in the error log or show as default (cone, box, sphere) thumbnails when viewing the folder. So when you recompile, those corrupt files will throw errors.
There are a lot of other ways to get around it like keep a copy of all the problem files, and drop the stock images in the apk before decompiling, then after compiling drop the modified ones back in.
If you need to edit them it can get confusing though. They need to remain the same image size. If they're compiled, take the .9 off before modifying in draw9patch so it will add the 1px border back before compiling. Then it's back to the correct size. And since those aren't corrupt, they'll compile fine.