[Q] Spare Parts XML Files? - Hero CDMA Themes and Apps

So I noticed that some theme makers include an xml file that you can set to change the android theme colors. However, I can't figure out how the heck to use them! I have an xml that I downloaded from the homepage of the guy who originally modded Spare Parts to do this on the root of my SD, but there is nothing in the Spare Parts menu on my phone. I also tried to find if there was a recent download on the author's site but the last one makes reference to CM 5.x
Anyone know what I'm missing here?

The xml file for CM6 anyway goes in /sdcard/CMTheme
When you select a theme from CM6 it will be in there.

dburg84 said:
The xml file for CM6 anyway goes in /sdcard/CMTheme
When you select a theme from CM6 it will be in there.
Click to expand...
Click to collapse
I just tried that, and the theme did show up but I got an error that it couldn't parse it. So it must be a different format than Spare Parts.

Related

Metamorph for noobs!

Can Someone please help me, i always support developers by purchasing apps, please help so i dont have to refund the app.
How long should it take to apply the frameworkres.apk??? its been appling for about 15mins now.
i tried a different theme, and metamorph didnt pick up the .thm file so i converted it, while installing it got to part 3 of 4 and restarted and now looks on different. Any ideas?
Ive tried 3 different themes still cant get the black status bar
if you have the newest metamorph, make sure you have a new style morph aswell, the old ones wont work with new metamorph unless the themer updated their morph
EkostonS said:
if you have the newest metamorph, make sure you have a new style morph aswell, the old ones wont work with new metamorph unless the themer updated their morph
Click to expand...
Click to collapse
^what he said ... make sure there's the new .xml file in the root of the .zip file
xidominicanoix said:
^what he said ... make sure there's the new .xml file in the root of the .zip file
Click to expand...
Click to collapse
thanks for you help both of you, the zip files has no xml file in it, but its the latest got it from here
http://forum.xda-developers.com/showthread.php?t=637245
the kustom one. It contains no xml file at all, and the one i created from the .thm doesnt work.
I have the latest metamorph from andriod market v 1.9.8.3
EDIT: metamorph never asked me about busybox is this only need for older versions of metamorph?
anyone ?
Try THIS, credit goes to its creator (Danation @ ModMyMoto) All you have to do is put the .thm file in the same folder as this, then run the program. It makes an .xml file that you can put back in the Morph zip file, then you should be good to go. If it tells you it already has a valid xml file, tell it to make one anyways.
PS- follow the link, the version i uploaded is not the newest one
pablizzo said:
Try THIS, credit goes to its creator (Danation @ ModMyMoto) All you have to do is put the .thm file in the same folder as this, then run the program. It makes an .xml file that you can put back in the Morph zip file, then you should be good to go. If it tells you it already has a valid xml file, tell it to make one anyways.
PS- follow the link, the version i uploaded is not the newest one
Click to expand...
Click to collapse
Hi thanks for your help i appreciated it! I already tried to create the xml file using that program, but when i try to apply it only applies some parts of the theme not the black bar. Ive got chrome icon and messaging icons but no black bar. Any ideas?
Ive tried so many different morphs that are meant ot change my status bar to black but still none that work, it seems to just change the clock font to white, so i can hardly see it. This is really frustrating, i think i better refund metamorph before its too late.
is morph of kspec working for others? Are they using their own made .xml file? is it making their topbar black?
What am i doing wrong? Do i need this busybox?
awesome forum!

Any Metamorph Themes Compatible with CM 5.08?

I'm currently running Cyanogen 5.08 on my N1 and decided to try the Metamorph application. I was having trouble finding any themes that said they were 5.08 compatible so I decided to try one that was listed as 5.06 compatible but after rebooting I kept getting force close messages so obviously something went wrong.
I'm new to Metamorph and just followed the intructions of unziping and then installing the theme.
I'm really interested in the Kspec theme but interested in any that might work on 5.08. Do I need to install them a different way because I am using CM? Thanks for any help on this.
For CM 5.0.8 or 5.0.7 just remove any xml's from the theme before you apply it. Since these 2 versions of CM have the abilities to change notification/status bar text colors you don't need those xml's. At least you could do this until the particular themer updates their theme.
Just remove all xml's and leave *only* the images.
If I delete all xml files how do I install the theme? Don't I need to select the main xml file to select within the Metamorph application when it asks me which theme to install?
Does this mean just delete the xml files embedded in the different folders?
Thanks
No, deleting the xml is definetely false.
Delete the services folder in the theme and the folder /framework-res/res/layout folder.
In Cyanogen 5.0.8 you can change the text colour in spare parts.
Or you will have a look in my themes. They all work with this rom, too.
Formel-LMS said:
No, deleting the xml is definetely false.
Delete the services folder in the theme and the folder /framework-res/res/layout folder.
In Cyanogen 5.0.8 you can change the text colour in spare parts.
Or you will have a look in my themes. They all work with this rom, too.
Click to expand...
Click to collapse
Thanks for the reply - your glass status bar theme looks really good so I'm gonna give that a shot now! Thanks
Formel-LMS said:
No, deleting the xml is definetely false.
Delete the services folder in the theme and the folder /framework-res/res/layout folder.
In Cyanogen 5.0.8 you can change the text colour in spare parts.
Or you will have a look in my themes. They all work with this rom, too.
Click to expand...
Click to collapse
you know? I'm still on cm5.0.6 for GlassBar but now I can move to cm5.0.8
before I tried to change clock and date color but I have to use windows OS to
do that Bcuz I dont find xml editor on linux
thanks
Ok I tried using glass bar but I'm still having problems. Its begins to install but when it gets to "Applying framework-res.apk theme 7 of 7" it just stays there indefinitely. My phone doesn't freeze or anything or ask me to force close the app so I'm confused.
Could it be that I'm running a custom kernal along with CM 5.08?
miked270 said:
Ok I tried using glass bar but I'm still having problems. Its begins to install but when it gets to "Applying framework-res.apk theme 7 of 7" it just stays there indefinitely. My phone doesn't freeze or anything or ask me to force close the app so I'm confused.
Could it be that I'm running a custom kernal along with CM 5.08?
Click to expand...
Click to collapse
just wait tel restart the UI and will apply , if you not got full glass just re-apply
only the last one "framework-res.apk"
Yes, right. It should work.
Play a bit with the applying speed in metamorphs settings.
Or look at the first post. I've added some helping manual with problems at metamorphing in my theme threads.
Formel-LMS said:
Yes, right. It should work.
Play a bit with the applying speed in metamorphs settings.
Or look at the first post. I've added some helping manual with problems at metamorphing in my theme threads.
Click to expand...
Click to collapse
Thx! After following the step by step instructions in your post for the glass bar theme it installed perfectly.
Nice!
Have Fun!

[THEME] [HELP] Working on a modded theme, running into problems.

Everything seems to work fine so far, but I've hit a snag.
Here's what happens. I've made some changes to my rom. I'm on modaco's latest, I have theme with the battery percentage mod installed (can't remember which), but everything runs perfectly with no hiccups or hangups.
The problem I'm running into is with the battery icons.
Here's what I do.
1) Pull framework-res.apk from device(to keep my changes)
2) Pull battery icons from framework-res
3) Modify icons
4) Put icons back into framework-res
5) Push framework-res back to device
As soon as I push this back to the device, everything starts force-closing. Phone, gmail, launcher, contacts...everything.
I've made changes like this before and this has never happened. Am I doing something wrong here? Any help would be appreciated. I would like to eventually release this as a theme that people can flash.
try pushing the modded files while in recovery...
..never pushed framework-res.apk.
In recovery sounds good..
But why not makin a morph?..or you could do an update.zip.
i am assuming you rebooted after pushing the new framework-res.apk across?
Did you zipalign before pushing? I know CM zipaligns on boot after changes in recovery but can't remember for stuffed pushed across- i either just zipalign it myself or the easiest and best thing to do is what rori~ said- just make a metamorph- that way when the rom gets updated you dont have to change anything at all (assuming there are no xml changes)..
eg. i have been using the same CM metamorph theme i made since about 5.0.X and it still works on every nightly- i have had tyo remove xml edits etc as CM now does that itself but it makes it all so easy.
instead of using adb, try doing it the easy way with Metamorph. Basically you'll need to create custom pngs with the same name as the ones you want to replace in the framework-res.apk.
So get a copy of your framework-res.apk and rename it to .zip and unzip it. Erase all the folders where you have no custom images to push. You'll prob just end up with some nested folders like "framework-res-->res-->drawable-hdpi" or a similar last folder. Place the custom images in there, then just reuse this attached xml file, making sure to change the pertinent information such as the file structure to be the correct path so the images push to the correct folder when you apply it with Metamorph. Be sure to save the xml file with a reasonable name, then zip the xml and framework-res folder containing your custom images together. Make sure the zip has the same name as the xml file only with .zip extension or you may get an error.
From there install Metamorph. Load the zip you created onto your sd card inside the "android themes" folder. Launch Metamorph, grant su, then "unzip new theme", and "apply all".
Hope this is helpful. A bit longer than I pictured it, but easy to do. If you run into trouble just DL a couple ones other people did and it should become easier to figure out.
^^^ what they said
made life even easier ......
here is a blank framework-res morph drag drop your desired pngs in the drawable-hdpi folder within the zip and morph away
http://www.mediafire.com/file/d1zr12fke13i61l/Framework_res_obama.zip
icegad said:
^^^ what they said
made life even easier ......
here is a blank framework-res morph drag drop your desired pngs in the drawable-hdpi folder within the zip and morph away
http://www.mediafire.com/file/d1zr12fke13i61l/Framework_res_obama.zip
Click to expand...
Click to collapse
Awesome! Thanks a ton! I'll report back my findings...
Sorry, no such luck. Endless force closes and reboots. Bummer. I'll have to sleep on it for a day or two and come back to it.
If anyone has any ideas, please let me know.
If u like u can upload the images and ill try to morph it on my phone and see what causes the fcs if any
icegad said:
If u like u can upload the images and ill try to morph it on my phone and see what causes the fcs if any
Click to expand...
Click to collapse
That would be great, thanks!
morphed the icons onto my phoneno fc or bootloops here
see screenshot....(i have a black status so it maybe hard to see your icons )
only thing i can think of is.... dont know if you were putting your folder within the drawable-hdpi folder that can cause errors..put the standalone images only
and i went ahead and put the icons in the morph you so you can jus morph this zip >>>
http://www.mediafire.com/file/9ldnfsf4t894kz6/Framework_res_obama.zip

[How To] Basic Themeing

This is a very basic guide to beginning themeing. It is not meant to be all-inclusive, just some simple steps that can be taken to make your own custom theme fairly easily. This guide should allow anyone to be able to grab images they like from any ROM and incorporate them into their own.
I SUGGEST YOU ALWAYS MAKE A BACKUP OF ANY FILE BEFORE YOU THEME IT AND NANDROID FIRST BEFORE FLASHING
Here is a basic overview of changing images in an apk:
1. Get your base file to theme – framework-res.apk, com.htc.resources.apk, phone.apk ect.
2. “Open” apk archive with 7-zip (don’t unzip!) and drag and drop the new images into the appropriate folder.
3. Flash new file.
Now some details:
1. The first step is to obtain the file you are going to theme. The file you are themeing ( i.e. going to flash to your phone) must come from the ROM you are currently running. Always use files from your current ROM as a base, however the images you want to change can come from other ROMs, or you can edit existing ones or make your own from scratch. You can obtain your theme base through an ADB pull of the files from your phone, or simply downloading the ROM zip file and extracting the files you need.
2. Now that you have the file to theme, don’t touch it! OK, more specifically, you won’t unzip or do anything to this file except “open” it with 7-zip (unless this is a market app, but more on that later). You are going to drag and drop the new icons into this file by “opening” it and navigating to the appropriate folder. The images you want to change are stored in the apk under /res/drawable-hdpi. Once you have your new icons from other sources, open your base file and navigate to this folder and drop them in.
3. Now you can flash this new file. I have provided empty zip files that you can place your themed files into and flash in recovery. Place your framework-res.apk and/or com.htc.resources.apk into the /system/framework folder located in the zip file provided. Now highlight the META-INF and system folders and zip them up. You can now place this file on the root of your SD card and flash. System apps can be placed under /system/app in the zip file.
Some more info on common themeable files:
Framework-res.apk – this is the meat and potatoes of a theme. On an AOSP ROM it will contain almost everything you want to theme aside from individual apps themselves. Sense ROMs have another file com.htc.resources.apk, as well as framework-res.apk. Both of these files are located in a ROM under /system/framework.
System apps: These apps come packaged in a ROM under /system/apps. They can be themed in the same manner as a framework apk. Some of these apps include Gmail, browser, camera, ect. Place them in your flashable zip under the folder /system/app.
Market apps: These apps are downloaded from the market and are can be pulled from your phone from /data/app. These files require a bit more to theme. They don’t share the same signature as the system apps and you must resign them using a program such as apkmanger. Place them in your flashable zip under /data/app.
If there are any errors, or if anyone has suggestions please let me know. I may have over looked some details, ect.
Thanks to everyone on XDA who has shared their knowledge and made this a great community!
Thanks that will be helpful
Sent from my PC36100 using XDA App
so using this guide we can pull parts and what not from other elements of themes we like and create our own framework to push back? Also, based on what you have, shouldn't it be easy to put this up on bid for hire (?) website to create a program to automate that?
xlGmanlx said:
so using this guide we can pull parts and what not from other elements of themes we like and create our own framework to push back? Also, based on what you have, shouldn't it be easy to put this up on bid for hire (?) website to create a program to automate that?
Click to expand...
Click to collapse
Yes the idea of this guide was to help people pick and choose icons they like in other ROMs and add it to their own. I'm not sure what bid for hire is?
its a website where you can load your requirements and folks can bid to do your work
linky
nukedukem said:
Yes the idea of this guide was to help people pick and choose icons they like in other ROMs and add it to their own. I'm not sure what bid for hire is?
Click to expand...
Click to collapse
xlGmanlx said:
its a website where you can load your requirements and folks can bid to do your work
linky
Click to expand...
Click to collapse
Interesting. Didn't know anything like this existed.
Sent from my EVO (CM6.1) using XDA App
Thank you, thank you!!!! I've been looking for something like this for a while.
evolishesh said:
Thank you, thank you!!!! I've been looking for something like this for a while.
Click to expand...
Click to collapse
No prob. Let me know if it works for you.
I couldn't get the auto signing to work, but the manual way of doing it worked.
Hmm, I got a boot loop on first try and doing this. Does that mean something went wrong with the signing, or that what I created for the theme was wrong? I used the empty .zip folder and re-zipped it, so I don't think that is the issue.
JasonK75 said:
Hmm, I got a boot loop on first try and doing this. Does that mean something went wrong with the signing, or that what I created for the theme was wrong? I used the empty .zip folder and re-zipped it, so I don't think that is the issue.
Click to expand...
Click to collapse
The signing should be ok. If you are using Amon_ra recovery it wont let you flash an unsigned zip I believe. Are you on sense or AOSP? Are you editing images or just copying from other ROMs?
What you might want to do is just create a simple test file. Change just one image and then flash that. That should let you know that your process is correct.
I using Amon Ra and using AOSP. I was moving some items out of a sense ROM so I guess that is where I might have went wrong. I think I'll take your advice and move just a single image and see how that works for me. Thanks!
I tried again this time I ended up stuck at the EVO white screen. I'm guessing it doesn't like the sense part I'm trying to throw in there. I'll have to try again with a AOSP theme instead.
Sent from my EVO (CM6.1.1) using XDA App
A couple things to look out for when swapping sense/CM icons - some file names are slightly different between sense and AOSP. Rename any sense icons to their AOSP counterparts and vice versa. Also, double check the image size of the icon is the same in both, i.e. 70x70 pixels, ect. and make sure you are not adding images that don't exist normally in the framework. For example there wont be any 4G icons in CM framework.
Also, make sure you aren't unzipping the new framework-res.apk you want to theme and flash, or trying to resign it. Only sign the flashable zip, not the individual files inside. The only thing you want to do with the framework-res.apk you will package and flash is open (not unzip) with 7-zip and navigate to the res/drawable-hdpi folder so you can drag and drop the new icons into it, overwriting the old.
I hope that helps!
How important is it to re-sign? I have modified the Framework and Resources apks with 7zip by switching images out. I have also modified the Rosie.apk. I put everything back where it was supposed to go, backed out of 7-zip and flashed. I have never had an issue with it, nor have I re-signed it. Just wondering.
spence341 said:
How important is it to re-sign? I have modified the Framework and Resources apks with 7zip by switching images out. I have also modified the Rosie.apk. I put everything back where it was supposed to go, backed out of 7-zip and flashed. I have never had an issue with it, nor have I re-signed it. Just wondering.
Click to expand...
Click to collapse
AFAIK if you are on clockwork recovery, I don't think it checks for signatures. I think Amon_ra requires a signed file to flash. I think it's just added protection against flashing any old junk. If you can flash in amon_ra without a signature and you don't have problems then I wouldn't worry about it. It's the signature of the framework-res.apk ( or com.htc.resources.apk) that's important. That's why you don't unzip it.
I think that
1.7.0.2 = yes
1.8 = no
nukedukem said:
AFAIK if you are on clockwork recovery, I don't think it checks for signatures. I think Amon_ra requires a signed file to flash. I think it's just added protection against flashing any old junk. If you can flash in amon_ra without a signature and you don't have problems then I wouldn't worry about it. It's the signature of the framework-res.apk ( or com.htc.resources.apk) that's important. That's why you don't unzip it.
Click to expand...
Click to collapse
nukedukem said:
A couple things to look out for when swapping sense/CM icons - some file names are slightly different between sense and AOSP. Rename any sense icons to their AOSP counterparts and vice versa. Also, double check the image size of the icon is the same in both, i.e. 70x70 pixels, ect. and make sure you are not adding images that don't exist normally in the framework. For example there wont be any 4G icons in CM framework.
Also, make sure you aren't unzipping the new framework-res.apk you want to theme and flash, or trying to resign it. Only sign the flashable zip, not the individual files inside. The only thing you want to do with the framework-res.apk you will package and flash is open (not unzip) with 7-zip and navigate to the res/drawable-hdpi folder so you can drag and drop the new icons into it, overwriting the old.
I hope that helps!
Click to expand...
Click to collapse
Thanks, any advice does help.
I did make sure the the icons I was swapping out were named the same thing in the CM ROM, but I didn't check the size of it at all.
I didn't unzip the famework-res.apk but instead just went into it with 7-Zip and dragged the icons into that. Then I backed out of 7-Zip so that it would save and close everything properly - know that does work because that is how I add the Fold transistions to the ROM - and then I put the famework-res.apk into the folder and zip it up per your instructions above. Then I manually sign it (still haven't been able to get the auto-signing to work) and then flash.
I'll have to try again moving a CM theme to the CM framework-res.apk and see if it is working. What I was attempting to do was take, from the Batman Theme for sense, the drop down notification shade with the Bat Icon and put it into the CM ROM. I don't know if you have time to try it yourself to see if it works, or if you get the same issues that I had.
Either way, thanks for the help! I know I'll get this theming down at some point!
nukedukem said:
No prob. Let me know if it works for you.
Click to expand...
Click to collapse
Hey buddy.
I’m stuck. I had to download and install Eclipse with the sdk plus java. I don’t know where to go from there. Every time I open the rom that I want to theme and get the framework.apk and edit the PNG’s , how do I go about saving them? Do I just used the same name as the old ones or I have to save them with a new name.
Or pm Me.
xlGmanlx said:
I think that
1.7.0.2 = yes
1.8 = no
Click to expand...
Click to collapse
So the new amon_ra doesn't require a signed file to flash? I'll make a note off that. Thanks.
JasonK75 said:
Thanks, any advice does help.
I did make sure the the icons I was swapping out were named the same thing in the CM ROM, but I didn't check the size of it at all.
I didn't unzip the famework-res.apk but instead just went into it with 7-Zip and dragged the icons into that. Then I backed out of 7-Zip so that it would save and close everything properly - know that does work because that is how I add the Fold transistions to the ROM - and then I put the famework-res.apk into the folder and zip it up per your instructions above. Then I manually sign it (still haven't been able to get the auto-signing to work) and then flash.
I'll have to try again moving a CM theme to the CM framework-res.apk and see if it is working. What I was attempting to do was take, from the Batman Theme for sense, the drop down notification shade with the Bat Icon and put it into the CM ROM. I don't know if you have time to try it yourself to see if it works, or if you get the same issues that I had.
Either way, thanks for the help! I know I'll get this theming down at some point!
Click to expand...
Click to collapse
OK I'll try and do what you are trying to do and see if it works...
evolishesh said:
Hey buddy.
I’m stuck. I had to download and install Eclipse with the sdk plus java. I don’t know where to go from there. Every time I open the rom that I want to theme and get the framework.apk and edit the PNG’s , how do I go about saving them? Do I just used the same name as the old ones or I have to save them with a new name.
Or pm Me.
Click to expand...
Click to collapse
So now you have an unzipped framewor-res.apk with a bunch of images. This framework should be the one that you want to take icons from. If not, start over with the ROM you want to copy images from. You will want to copy the images you want to put into another ROM so that you can dump them into the new framework-res.apk. After you figure out what icons you want to bring to your new framework, get a clean version of framework/com.htc from the ROM you are actually running - i.e. if you are running myn ROM on your phone, download the myn ROM and pull out the framework-res.apk or com.resources.apk that you are going to theme.
Now with this fresh clean framework you will "open" it with 7-zip to navigate to the /res/drawable-hdpi folder so you can now drag and drop the images you want to copy over into it. Then the close the 7zip window and your framework-res.apk is all set to flash. You don't need to rename if the file names are the same, you can just drag and drop and the files will be overwritten in the new framework.

Editing CM7 APK's?

ive decompiled the apk and reziped it both unsigned and signed with the apk manager and for some reason whenever i edit the theme apk then reinstall or push it it shows 1/4 in the theme manager but only lets me select the 3 basic themes. its like the one i edited and pushed/installed is hidden..
searched but found nothing. any ideas?
n388mm said:
ive decompiled the apk and reziped it both unsigned and signed with the apk manager and for some reason whenever i edit the theme apk then reinstall or push it it shows 1/4 in the theme manager but only lets me select the 3 basic themes. its like the one i edited and pushed/installed is hidden..
searched but found nothing. any ideas?
Click to expand...
Click to collapse
Did you edit androidmanifest xml correctly? At times if your preview.png is not in the right place then there is no preview but the name should show up from androidmanifest with blank preview.
i didn't think i needed too. i pulled a already build theme. changed out 1 png file. re zipped it and it disappears. if i install off the sd card, adb install, or adb push it produces the same result.
n388mm said:
i didn't think i needed too. i pulled a already build theme. changed out 1 png file. re zipped it and it disappears. if i install off the sd card, adb install, or adb push it produces the same result.
Click to expand...
Click to collapse
if you are just changing a png, just use 7zip or an equivalent program. But in the op you said decompile and recompile with apk manager, then you better update the Androidmanifest.xml and might need to change values and style xmls as well. but either ways I would use the application installer for this instead of ADB. So if its an existing package with the same name , browse to the apk with say Astro and it will take you to the installer, uninstall first and then install the new one.
I just use 7zip, way easier...
quick question relating to CM7 themes.If i wanted to change the look of the Latin IME keyboard that the theme changes it thru theme itself where would those files be located
djnarcotics said:
quick question relating to CM7 themes.If i wanted to change the look of the Latin IME keyboard that the theme changes it thru theme itself where would those files be located
Click to expand...
Click to collapse
through theme changer? it would be in the theme apk, drawable-hdpi folder... theme apk is most likely in system/app directory...
WFG said:
through theme changer? it would be in the theme apk, drawable-hdpi folder... theme apk is most likely in system/app directory...
Click to expand...
Click to collapse
searched in there but couldn't seem to find the files
bump..... 10 char
djnarcotics said:
quick question relating to CM7 themes.If i wanted to change the look of the Latin IME keyboard that the theme changes it thru theme itself where would those files be located
Click to expand...
Click to collapse
Very likely in the Drawable folders. Or go through the redirections xmls and you should be able to reverse engineer. I think it depends on what your base apk is.

Categories

Resources