[Q] Metamorph & XML - Android Themes

Can Metamorph replace compiled XML files like it does graphics without causing problems?

Initially MetaMorph was designed for themers but it was discovered through use that we could also use it for applying customer dex files, resource files, images, and xml files. Pretty much anything inside of the apk and jar can be replaced with MetaMorph, which makes it very versatile and useful, in addition to this we can now copy files to places on the phone or sdcard, and we can implement the use of scripts now!
Click to expand...
Click to collapse
from,
http://forum.xda-developers.com/showthread.php?t=591329
so your answer is yes. perhaps read a little more next time...

mattyyey said:
from,
http://forum.xda-developers.com/showthread.php?t=591329
so your answer is yes. perhaps read a little more next time...
Click to expand...
Click to collapse
Yes. I know and realized my mistake. I normally do search, but look at the time of the post. Was a long day and my brain was not functioning. Not an excuse for not searching, but the reason behind my moment of stupidity
But now that the answer has been found, please let us forget this thread and let it die.

Related

Help with Phone.apk mod please

I want to edit the background of the dialer from black to white, but I cannot seem to find where it is, I've went through the source and can't find it. Can anyone help with this mod?
Thanks
Ima make a judgement call on this one and say if you can't find it, most likely you shouldn't be messing around with it
stefan.buddle said:
Ima make a judgement call on this one and say if you can't find it, most likely you shouldn't be messing around with it
Click to expand...
Click to collapse
If you do not recognize the name, perhaps you should not make such assumptions.
Let me see if I can find the file name, give me a few.
Edit: As far as I can tell, there is no image file for the background. From the small bit of android programming I have attempted, I do seem to recall the default background color being black. I think you probably need to edit an xml file, but I could be completely wrong. I could not read the xml files with my phone, so I could not narrow it down at all. If you agree this is the way to go, and need to know how to decrypt xml send me a pm.
I know it is not an image, I've edited all the images. I have done an abundant amount of themes. I posted the question because I have spent a long time looking though the source. It is not an xml in the drawable, it is in the source somewhere. After looking though the source though, I am starting to think it is something at a higher level than the phone.apk of contacts.apk and maye be something from the system itself, since all the apps have a black background as the default.
Since I think it does default to black, have you thought about including a new background file into drawable, and writing it into the xml somewhere.
cloverdale said:
Since I think it does default to black, have you thought about including a new background file into drawable, and writing it into the xml somewhere.
Click to expand...
Click to collapse
Haven't thought that far but that may be the best solution. There are a few white themes, and it could be a nice addition to them, or even to those without. I'll look into it more when I have some more time, unless there are some people that have time to help on this project
I need help please. I have the latest source from Cyanogen. I am trying to add something to the dialpad.xml but without even doing anything yet, when I start a new project from the code, I get a lot of errors, most I can just delete files and be ok with but I get
Description Resource Path Location Type
ERROR No resource identifier found for attribute 'contentDescription' in package 'android' dialpad.xml /DialtactsActivity/res/layout-finger line 126 Android AAPT Problem
Click to expand...
Click to collapse
Its from the part of the code android:contentDescription="@string/description_image_button_pound"
I have spent days trying to figure out what the issue is.
Can anyone help?

Weather Widget from 2.0 BackPorted

I searched the forum to see if someone had done this and couldn't find it. I back ported the weather widget from 2.0 in case anyone is interested (works fine on donuts). This is the beginning of my development work. Hope this helps!
Please just take the .zip file and rename it to .apk
copy to your sdcard and install with any file explorer or
connect your device to your pc with development enabled
type "adb install MotAccuWeatherWidget.apk"
Red
G1 with latest Cyan
Thank you to this site and all the developers for their inspiration and hard work.
This has been around for a while...
Good work, though. Kudos and thanks for the effort.
Oh, sorry. I guess I'll probably get flamed by like 30 ppl now. lol. I guess I will try my hand at the Dock applications, unless that has been done too?
Red
redd12345 said:
Oh, sorry. I guess I'll probably get flamed by like 30 ppl now. lol. I guess I will try my hand at the Dock applications, unless that has been done too?
Red
Click to expand...
Click to collapse
If anyone flames you, they're stupid. You did good work, even if it was in vain. Car Dock has been ported to Donut, though I don't think the little nightstand Dock from Droid is running on anything prior to 2.0... Not sure, though, as it doesn't interest me all that much.
thanks for the encouragement. is there a list of things that show what needs to be back ported or which ones have already been? I want to contribute.
Red.
redd12345 said:
thanks for the encouragement. is there a list of things that show what needs to be back ported or which ones have already been? I want to contribute.
Click to expand...
Click to collapse
Not to my knowledge. It might not be a bad idea for one of the leading devs to start a thread here on things we want from new phones to run on our phones, and check them off as they are accomplished. 75% of the list would be from the Nexus One, at the moment. You really want to help? See what you can do to get Launcher2 from the Nexus working on Dream... Just changing the build.prop doesn't work, so we'll have to fix errors one by one. Hope you're better at coding than I.
There is also more info in the Dream app section, where these apps are usually released...good work, keep it up!
Hi, there's a version that does not work with 1.6 (only 2.X). Which version is?
BR.
I'm not sure. I pulled this weather widget from Eugene373's AOSP Rom port and hex edited the AndroidManifest.xml to make the MinSDK 3 instead of 5. I can't tell you much more than that. I hope this helps you.
Red.
Give this widget a shot and see if it's the one you are looking for. At least one person might make use of it. haha
Red
yukkio said:
Hi, there's a version that does not work with 1.6 (only 2.X). Which version is?
BR.
Click to expand...
Click to collapse
So, does anyone know if this will work on 1.6? Cyanogen MOD ROM?
It will work on any 1.6 rom. I am running Cyanogen's 11.1 (most recent.) This widget typically works on most people's "custom roms" as long as the 1.6 base is the same, it's just that there is a MinSDK value that prohibits users on a lower SDK from using the application. I dropped that value to 3, so I think that it should also work on hero roms (1.5 cupcake base) if someone likes the graphics on this widget better than the weather app that is included. Hope this helps.
Red.
Ps. I am going to be trying my hand at creating themes instead. My only experience with programming was C++, Pascal, and Visual Basic and that was close to 8 years ago! lol. I'm a little outdated as far as Java goes.
I'm really looking forward to using Stericson's Metamorph. It is such a great effort for theme development.
i sure could use it im new to xda im non root for now, but i would like to make a few nice add ons to my mt3g till i get the guts to root. is thr some good stuff here for a non root like me
Awesome job. I appreciate the work.
Odd question though, what do you do in the process of back porting? I'd love to learn..
Nice Widget, thanks. I was using weathereye before. I like this one better.
Thanks. In the case of this widget, it was ok to backport it because it doesn't call on any other functions that are proprietary to a specific rom (ie. Happenings widget from Blur calls tons of other functions in the home.Blur). There are a few places online when you look up backporting (I'll try to remember to post the links for people.)
You want to start by unziping the aplication you want to backport. Just rename it to a .zip file.
When you look in the file, you will see AndroidManifest.xml. This file has been compiled out as a binary file so you can't read it like a normal .xml file. You want to then download AxmlPrinter2.jar and run that to change the AndroidManifest.xml to AndroidManifest.txt by typing "Java -jar AmxlPrinter2.jar AndroidManifest.xml > AndroidManifest.txt"
The hard part is to find the byte offset in the AndroidManifest where it says the MinSDK value is. The MinSDK value needs to drop from 6 or 7 down to "2" so that you can use the widget on Cupcake or higher. There is a program online and I will post the link when I get home that you use with Eclipse to find the byte offset and then you have to use a Hex editor to change the value in the original .xml file.
Once you use the hex editor and save your changes, you zip up all the files and use the apkbuilder.exe that is in the sdk tools directory by typing "apkbuilder application_name.apk -z application_name.zip"
that will make an apk from a zip file and then you right-click and resign the apk file. From there, you just copy it to your sd card and you know the rest.
It is a pretty dirty and painful approach to porting an app. That is why I am more interested in working on themes. You can just unzip the apk's you want to use and edit the /res directory and then rebuild the app and sign it. Photoshop works great for it.
I'm planning on making a theme/rom that uses hero (1.5) for a base, but slimming it down and using widgets that are smaller like the one that I ported and changing a lot of the graphics for the clocks and such.
I hope this helps for anyone interested in developing.
Red.
Wisefire said:
Awesome job. I appreciate the work.
Odd question though, what do you do in the process of back porting? I'd love to learn..
Click to expand...
Click to collapse

a few framework-res/theming questions

I've just started to try my hand at making themes, and I've watched the tutorials on using metamorph and such, but I've run into a few problems.
first, while looking through my framework.apk (via root explorer if that matters) I found that there are two res folders inside it. both named res, but from supposedly different dates (apr 15 and aug 31) within each res folder are the usual folders (I assume) plus two more "doubled" folders called drawable-hdpi. Is this normal? to summarize what I mean, I have folder structures like this within framework.apk
framework.apk/res(dated apr15)/drawable-hdpi(dated apr15)
framework.apk/res(dated apr15)/drawable-hdpi(dated apr31)
framework.apk/res(dated apr31)/drawable-hdpi(dated apr15)
framework.apk/res(dated apr31)/drawable-hdpi(dated apr31)
Finally, I'm hoping for my first theme to change the look of the slide tabs on the lock screen. Where are the images located? I've been looking through the files and have no idea where they are or what they're titled
Thank you in advance for any help, and if things need clarifying, let me know, I'm sure I didn't explain myself all that well.
I wouldn't say that's normal, but that's just from me never having seen it before.
As for the sliding bar images, they are the framework-res/res/drawable-hdpi/jog_tab images
The lock and mute/vibrate images are the ic_jog_dial images in the same folder.
JAguirre1231 said:
I wouldn't say that's normal, but that's just from me never having seen it before.
As for the sliding bar images, they are the framework-res/res/drawable-hdpi/jog_tab images
The lock and mute/vibrate images are the ic_jog_dial images in the same folder.
Click to expand...
Click to collapse
Just so I'm sure on making themes, the images I make to replace them need to be named the same as the images they're replacing correct? This may seem kind of obvious, but I'd rather be sure.
IamFuzzles said:
Just so I'm sure on making themes, the images I make to replace them need to be named the same as the images they're replacing correct? This may seem kind of obvious, but I'd rather be sure.
Click to expand...
Click to collapse
Yes, and you may want to take a look into editing .9.png's (although it seems all of the guides went obsolete once the newest version of apktool was released).
JAguirre1231 said:
Yes, and you may want to take a look into editing .9.png's (although it seems all of the guides went obsolete once the newest version of apktool was released).
Click to expand...
Click to collapse
I remember reading something about .9.png's but what are they? I'm assuming I can find the guides somewhere here on xda? even if they're out of date, they're sure to be some help.
Also, thanks again for all your help, I truly appreciate it
IamFuzzles said:
I remember reading something about .9.png's but what are they?
Click to expand...
Click to collapse
http://code.google.com/p/android-apktool/wiki/9PatchImages

[Q] Theming and mod help... noob 20 questions? :)

I know I'm probably going to get the 4th degree here, but I'm at that point where my brain is jammed and its killing me. I've found guides to doing this but it either too old, or not finished.
I read a guide on how to theme, found out it wasn't really that hard. Love building sites and this is right down my road. Yes I'm a noob, and search isn't cutting it. : )
I am working with my Epic 4G with 2.2. I used UOT Kitchen to get the Battery % mod to work and it did the trick! I can go through and edit png and even .9 files.
1. That kitchen adds -v4 on the drawable folders. Its works but I don't fully understand how to change it back after it adds it.
2. That kitchen makes a whole new framework. How do I pull stuff out and make it update just what it needs. I guess I'm asking how do you make an addon or update zip?
I do all my editing by using 7zip and just placing apps and for moving things around and it seems to work. I'm also re-flashing the whole rom to test it. nothing else. 7zip.
3. Is this the way to do it? I know I'm supposed to de-compile and compile, sign some where.
4. It there a special way to combine Mods together? I've just been opening them in 7zip and adding them.
ok so... If you can point me in the right direction, to guides, search key words, links, or just explain a little. I will take any help I can get. I just need that little tap to get my mind rolling again. I will kiss your feet! Really!
Thanks!
Please go easy on me...
For an "add on" make metamorphs. All your doing is creating folders of the pngs and adding a xml which is already created you just fill in the blanks using any xml editor. It's pretty easy to make mini themes or change certain icons
Yeah the guys right Metamorph is THE ONLY way to change images in an apk without changing the entire apk. I have been doing a whole lot of themes lately but mostly porting images of other themes I need to learn the GIMP or PHOTOSHOP I started on the opposite side from you I guess. If I can help PM me and I will show you or package the themes or morphs for you.Good luck!

[Q] I really just need help...

I've been smashing my head against a brick wall for the past week.
I've been reading, downloading, installing, reading, uninstalling, updating, reading and punching myself in the face for far too long.
Right now I'm at the point where I'm either going to jump off a roof or destroy every piece of technology in my house with a hammer.
All I need - is somebody to talk to to give me a helping hand. I've gone too long just sitting here trying to figure it out, with all your broken links, complicated theories and insane lengths to change one icon.
Why is it so frustrating? Because what I want to do should be so simple, or it should be...
I have a Nexus S i9020, using ADW Launcher with CyanogenMod 7.0.3-NS.
All I want to do is:
-Change the icons in the Icon drawer
-Make a new status bar
-Change the color of the batter/WiFi/GPS/3G etc in the status bar.
In a perfect world this would mean replacing a few PNG images and being on my way.
But oh no - 6 days later and a LOT of frustration later - I have achieved nothing. I've watched too many youtube video's to count, and right now I just need somebody to simplify it all and give me a hand.
Can anybody point me in the direction of a detailed, easy, step by step guide which explains everything? Because NONE of the pinned threads have helped me, and I have to wait until I get 8 posts before I can print screen what is happening and try to explain it properly.
Or can somebody just give me a helping hand?
Since you're on CyanogenMod7, you can make a theme chooser APK. It's really quite simple.
CLICK HERE
Thanks but that looks more complicated than the other threads :/
I'm amazed nobody has made a simple theme builder application like those that exist for the PS3 etc.
I'm in so deep here - I have no idea where to even start.
How about UOT kitchen at http://uot.dakra.lt ?
mendozinas said:
How about UOT kitchen at
Click to expand...
Click to collapse
Wow this is exactly what I needed.
There are still a few things I'd like to change beyond this though. But thanks a lot that has helped me achieve 90% of what I wanted.
Edit:
I got to the summary page, and I don't understand any of it. I feel like giving up right now.
At the end it was asking me to upload things, edit binary, I just have no idea where to start.
I need a 'theming for dummies' book. Seriously I know NOTHING about ANYTHING in this area.
What you need to upload is in your rom.zip unzip it and look in app, you should have some apk's there that uot is asking for
Sent from my HTC Wildfire using XDA App
Lilday said:
Wow this is exactly what I needed.
There are still a few things I'd like to change beyond this though. But thanks a lot that has helped me achieve 90% of what I wanted.
Edit:
I got to the summary page, and I don't understand any of it. I feel like giving up right now.
At the end it was asking me to upload things, edit binary, I just have no idea where to start.
I need a 'theming for dummies' book. Seriously I know NOTHING about ANYTHING in this area.
Click to expand...
Click to collapse
Go from left to right on the tabs up top (battery, icons, etc.) and pick whatever you want to use. When you get to the file upload tab, click system files in the right column and upload the framework-res.apk and systemui.apk from your ROM. When they've finished uploading, go to the summary tab. If any of the items listed are in an orange box, they were done incorrectly. Go back to them and finish. If they're all green, hit 'Submit work to kitchen' and wait for it to finish (it can take a while). Take the zip it makes for you and flash in recovery.
To get the framework-res.apk and systemui.apk from your ROM, open the ROM in Winzip, 7Zip, or whatever you want to use. framework-res.apk is located in system/framework and systemui.apk is located in system/app.
iamthebigcheeze said:
Go from left to right on the tabs up top (battery, icons, etc.) and pick whatever you want to use. When you get to the file upload tab, click system files in the right column and upload the framework-res.apk and systemui.apk from your ROM. When they've finished uploading, go to the summary tab. If any of the items listed are in an orange box, they were done incorrectly. Go back to them and finish. If they're all green, hit 'Submit work to kitchen' and wait for it to finish (it can take a while). Take the zip it makes for you and flash in recovery.
To get the framework-res.apk and systemui.apk from your ROM, open the ROM in Winzip, 7Zip, or whatever you want to use. framework-res.apk is located in system/framework and systemui.apk is located in system/app.
Click to expand...
Click to collapse
When he says it can take a while, he really means it. The first time I used the theme kitchen I was waiting for 30 minutes and was convinced something had gone wrong. During peak hours it can really take a long time, especially if you're creating multiple elements. So just be patient about it after you've submitted the theme for creation.
Also, make sure you take a nandroid backup before flashing anything to your device. Better to be safe than sorry! Nandroid has saved my behind more times than I can count.

Categories

Resources