• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Themers]MetaMorph Reform and How to properly make a MetaMorph for everyone's use

Search This thread

RichieDaze

Senior Member
Jan 18, 2009
486
130
New York City
metamorph.png


What MetaMorph is

MetaMorph is a project designed to allow us to patch files within .jar and .apk files on the phone.

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!




Purpose for a Reform:
Usually MetaMorphs are made for a specific phone and rom. Instead of classifying them by a Phone model, we should be classifying them by the phone's Resolution (ldpi,mdpi,hdpi). Also, the rom name should be the name of the rom compatible with the theme (Cupcake,Donut,Eclair,Froyo).

Nuvola_apps_korganizer.png

Benefits:
-Instead of have multiple MetaMorph versions for different types of phones, we will have only 3 different Resolution sizes coving multiple phones and roms.
-By using the name of the specific rom, we know that the theme fits perfectly with no problems. Also any files not present will be skipped by MetaMorph, further perfecting any chance of errors.
-MetaMorph can now be available for multiple phones. They can now also enjoy the beautiful themes created by our talented themers.




benefits_rewards_icon.jpg


Quick rules and standard procedures for your MetaMorph theme

1)Your MetaMorph theme.xml should be as specific as possible.
Sample:
Code:
<?xml version="1.0"?>

<!-- MetaMorph theme template XML -->

<!-- Enter the name of this theme -->
<themename>Vanilla Upgrade</themename>
<!-- Enter the version of this theme -->
<themeversion>1.0</themeversion>
<!-- Enter the name of the png with out the (.png) extention  -->
<screenshot></screenshot>
<!-- Enter the person(s) involved in this theme -->
<author>RichieDaze</author>
<!-- Enter the web location of this theme -->
<authorweblink></authorweblink>
<!-- Enter the resolution compatible for this theme (ldpi,mdpi,hdpi) -->
<phone>MDPI</phone>
<!-- Enter the name of the Android OS name this theme is compatible with -->
<rom>FROYO</rom>
<!-- Enter a description of this theme -->
<themedescription></themedescription>
2)Your screen shot can be named anything, but Screenshot should be default.
3)The <phone> entry should display the phones resolution(ldpi,mdpi,hdpi).
4)The <rom> entry should display the name of the compatible rom for your theme(cupcake,donut,eclair,froyo).
5)You should not have any png's or folders you did not edit in your theme folder.
6)Add all your png and xml edits in there proper folder(s).
7)Remember which folders make your phone reboot and place them last on the theme.xml's list.
8)When posting your MetaMorph, you should enter something like: [MetaMorph-mdpi] Name of your theme for 2.2, so that other users know if they can apply it to there phones. Plus searching from a search engine can have better results when looking for a compatible theme for your phone.
syncIcon.png

Following these rules will make MetaMorph much more enjoyable for everyone...
 
Last edited:

RichieDaze

Senior Member
Jan 18, 2009
486
130
New York City
MetaMorph Commands

metamorph.png




These following commands will be clarified one by one

The cpy command Copies from a specified folder in this theme's folder to the path folder.
Code:
<item>etc.cpy</item>
<path>/system/etc/</path>
<description></description>
-The above code tells MetaMorth to copy the contents of etc from your theme to the path: /system/etc


The script command Runs scripts as SU from a specified folder in this theme's folder
Code:
<item>Scripts.script</item>
<path>reboot.sh</path>
<description></description>
-The above code tells MetaMorph to Run a script as SU from the Scripts folder in the theme's folder.


The Regular command replaces any file into a apk/jar.
Code:
<item>framework-res.apk</item>
<path>/system/framework</path>
description></description>
or
Code:
<item>services.jar</item>
<path>/system/framework</path>
description></description>
-The above code tells MetaMorth to copy the contents of the framework/services folder from your theme to the path: /system/framework



Basic file structure for a sub-theme

Lets say your doing a sub-theme for framework-res.apk.
Your folder woulld be called framework-res (without the extension)
The same goes for the folders inside framework-res, in it's proper order.
drawable-mdpi would be in a folder called res.

So here is the break down: framework-res/res/drawable-mdpi/
 
Last edited:
  • Like
Reactions: bdemartino

RichieDaze

Senior Member
Jan 18, 2009
486
130
New York City
-Reserved for different phone/rom thread links...
-MetaMorph Theme template XML
-Locations of xml's or jar to change the text colors
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    MetaMorph Commands

    metamorph.png




    These following commands will be clarified one by one

    The cpy command Copies from a specified folder in this theme's folder to the path folder.
    Code:
    <item>etc.cpy</item>
    <path>/system/etc/</path>
    <description></description>
    -The above code tells MetaMorth to copy the contents of etc from your theme to the path: /system/etc


    The script command Runs scripts as SU from a specified folder in this theme's folder
    Code:
    <item>Scripts.script</item>
    <path>reboot.sh</path>
    <description></description>
    -The above code tells MetaMorph to Run a script as SU from the Scripts folder in the theme's folder.


    The Regular command replaces any file into a apk/jar.
    Code:
    <item>framework-res.apk</item>
    <path>/system/framework</path>
    description></description>
    or
    Code:
    <item>services.jar</item>
    <path>/system/framework</path>
    description></description>
    -The above code tells MetaMorth to copy the contents of the framework/services folder from your theme to the path: /system/framework



    Basic file structure for a sub-theme

    Lets say your doing a sub-theme for framework-res.apk.
    Your folder woulld be called framework-res (without the extension)
    The same goes for the folders inside framework-res, in it's proper order.
    drawable-mdpi would be in a folder called res.

    So here is the break down: framework-res/res/drawable-mdpi/