Theme Porting Tutorial (giving one, not asking for one)

Discussion in 'Android Themes' started by eclsnowman, Dec 14, 2010.

  1. eclsnowman
    Offline

    eclsnowman Member

    Joined:
    Feb 21, 2010
    Messages:
    226
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Minnesota
    Ratings:
    +0
    I posted this for the guys in the UD section under my theme. I put some thought into it. Maybe it can help some guys out.

    Here is my order of operations on porting my theme from rom to rom.

    1.) Download new UD release, or other new rom
    2.) Extract UD release to somethere. I will call it c:/somewhere/UDNew/ (I use winrar)
    3.) Take one of my existing theme update.zip's
    4.) Extract my update.zip to somethere like c:/somewhere/ECLThemeOld/
    5.) Download theme-porter (by Daneshm90)
    6.) Extract theme-porter to somewhere like c:/somewhere/Theme-Porter/
    7.) Copy the app and framework folders from c:/somewhere/ECLThemeOld/ into c:/somewhere/Theme-Porter/old
    8.) Copy the needed files from c:/somewhere/UDNew/ to c:/somewhere/Theme-Porter/new (ie copy UD's newest versions of the apk's from his rom that match with what I have already themed)
    9.) Phone.apk and contacts.apk rarely change, so I now copy my themed versions right over UD's versions under c:/somewhere/Theme-Porter/new. I do the same if UD has the apk's missing like gmail.apk and launcherpro.apk.
    10.) Now I run the Script.bat in the c:/somewhere/Theme-Porter/ folder. It will do it's thing which is replace all of UD's png images with the ones from the apk's from my theme.
    11.) Once done all images should be moved over into the apk's located in c:/somewhere/Theme-Porter/new. This is 90% of the battle.
    12.) Now for the xml's. These don't transfer with the images during theme porter. The framework-res.apk now located in the c:/somewhere/Theme-Porter/new needs the xml's moved over. Go to c:/somewhere/ECLThemeOld/framework/ and change the name of my framework-res.apk to framework-res.zip. Now extract framework-res.zip to c:/somewhere/ECLThemeOld/framework/framework-res/.
    13.) you can use 7zip for the next step but I have always liked winrar. Go to c:/somewhere/Theme-Porter/new/framework/ rename framework-res.apk to framework-res.zip. Open framework-res.zip in winrar. Navigate to /res/drawable/. Click add

    [​IMG]

    Select files to add: for example progress_horizontal.xml from c:/somewhere/ECLThemeOld/framework/framework-res/res/drawable/ will make your progress bars the blue color like my theme has. Likewise you can use some of the following colors from haxzamatic:

    Green = GSProgress.zip
    Sense = SenseProgress.zip
    Dark blue = DarkBlueProgress.zip
    Orange = Orange Progress.zip

    Once done selecting files click OK. Then click OK again at "archive name and parameters" dialog. Now the new progress_horizontal.xml is in your framework-res.zip. If you want the fancy animation by RedmanX do the same thing with all the xml's in the c:/somewhere/ECLThemeOld/framework/framework-res/res/anim/ folder.

    Finally rename c:/somewhere/Theme-Porter/new/framework/framework-res.zip back to framework-res.apk

    Now to package it all up.

    14.) Download Update.zip 2.0 Modifier/Creator [Script] (by Daneshm90)
    15.) Extract Update.zip 2.0 Modifier/Creator to c:/somewhere/Update-Zip-Packager/
    16.) Copy the contents of c:/somewhere/Theme-Porter/new/ to c:/somewhere/Update-Zip-Packager/placehere/
    17.) If you want the thicker fonts and boot animation I usually use copy fonts and media folders from c:/somewhere/ECLThemeOld/ to c:/somewhere/Update-Zip-Packager/placehere/
    18.) Now its time to make the update.zip. Run Script.bat in c:/somewhere/Update-Zip-Packager/

    18a.) clean our previous update-script data
    18b.) select 1 to create new update-script
    18c.) select 1 to tell it to copy directories
    18d.) tell it to save the directory to SYSTEM
    18e.) tell it where to copy to app or fonts or media etc.
    18f.) tell it what to copy from placehere folder app or fonts or media etc.
    18g.) repeat for as many folders as you have. then type 8 and hit enter for done creating update-script.
    18h.) type 2 and hit enter and it will create your update.zip and save it in the c:/somewhere/Update-Zip-Packager/ folder as update.zip

    [​IMG]

    Now you all know what I know.
     
  2. teddyearp
    Offline

    teddyearp Senior Member

    Joined:
    Jan 13, 2010
    Messages:
    1,800
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Randle, WA
    Ratings:
    +3
    Excellent write up. Now does anyone know how this is done when all you have for your theme is the MetaMorph (post .xml) style theme file?
     
  3. c_hale22
    Offline

    c_hale22 Theme Developer Theme Developer

    Joined:
    Mar 9, 2010
    Messages:
    207
    Likes Received:
    4
    Trophy Points:
    18
    Ratings:
    +4
    Very cool post. This is definitely going to help some people out. Thanks for taking the time.
     
  4. sid_wisc
    Offline

    sid_wisc Member

    Joined:
    Sep 3, 2010
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Madison, WI
    Ratings:
    +0
    Sent from my Droid breathing Sourcery magic
     
  5. SupAll
    Offline

    SupAll Member

    Joined:
    May 2, 2010
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Very informative. Does this method work on porting themes between ROMs?
     
  6. teddyearp
    Offline

    teddyearp Senior Member

    Joined:
    Jan 13, 2010
    Messages:
    1,800
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Randle, WA
    Ratings:
    +3
    That is exactly what theme porting usually means . . . .
     
  7. eclsnowman
    Offline

    eclsnowman Member

    Joined:
    Feb 21, 2010
    Messages:
    226
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Minnesota
    Ratings:
    +0
    A theme made for another rom, another device (with similar resolution), etc, can be "Ported" or "the png's transfered" to work on a different rom. For example a really nice UD theme could be ported to work on LFY or CM. It does not always work perfectly if images are named differently, or certain apps aren't included in the rom your are porting too. Basically it is a batch way to overlay the images from a nice looking theme into a new rom you are trying or like more.

    Hope that makes sense.
     
  8. SupAll
    Offline

    SupAll Member

    Joined:
    May 2, 2010
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0

    Thanks. That makes sense to me. I only asked because I would like to try and port themes to BB as there is a distinct lack of theme support for it. I misread the instructions the first time around because I was under the impression it was porting themes TO UD and not UD to other roms.
     
  9. trook
    Offline

    trook Member

    Joined:
    Sep 4, 2010
    Messages:
    616
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lake Elsinore Ca
    Ratings:
    +0
    This is exactly what I needed, thank you very much.
     
  10. jdog94
    Offline

    jdog94 Member

    Joined:
    Dec 20, 2009
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    I run the Script.bat in the c:/somewhere/Theme-Porter/ folder
    i says system cant find file then goes to next apk and says same thing


    when i Run Script.bat in c:/somewhere/Update-Zip-Packager/
    it says java not found then when it finishes all the steps i doesnt give me a update.zip file


    any idea what im doing wrong?
     
  11. jdog94
    Offline

    jdog94 Member

    Joined:
    Dec 20, 2009
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    anyone?????????
     
  12. eclsnowman
    Offline

    eclsnowman Member

    Joined:
    Feb 21, 2010
    Messages:
    226
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Minnesota
    Ratings:
    +0
  13. keolawills
    Offline

    keolawills Member

    Joined:
    Mar 31, 2011
    Messages:
    249
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lake Tahoe, CA
    Ratings:
    +0
    everything went fine for me until i tried to flash the theme. after it says copying files... i get this

    E:can't mount system:app
    E:failure at line 1:
    copy_dir PACKAGE:app system:app
    Installation aborted.

    where did i go wrong?
     
Search tags for this page

how to extract a theme from a rom

,
rom porter apk
,
tutorial rom porter
,
update.zip creator