Creating theme files question


Last Updated:

  1. MSUgEEk

    MSUgEEk Well-Known Member This Topic's Starter

    Joined:
    Apr 22, 2010
    Messages:
    3,696
    Likes Received:
    1,418
    Ok, so I've been theming my phone over the past week with Froyo BuglessBeast and have almost got my phone just the way I want it (custom icons, colors, launcher image, etc) My question is, how do I make this into an updateable file so I can flash it over future bugless upgrades instead of having to re-do everything again??

    Just for information, not sure that it makes any difference. I themed the stock launcher as well as framework-res. I didn't do it with a home replacement.
     

    Advertisement
  2. Papadroid

    Papadroid VIP Member VIP Member

    Joined:
    Jan 21, 2010
    Messages:
    1,139
    Likes Received:
    281
    +1

    Also svt, how are you reinserting the framework and services files onto the phone? I was using some instructions on here to use adb push but I keep getting persmission errors? From my research on BB Froyo the boot.img is set to ro.secure=1 instead of being 0. Unfortunately I haven't found a way to change that.
     
  3. MSUgEEk

    MSUgEEk Well-Known Member This Topic's Starter

    Joined:
    Apr 22, 2010
    Messages:
    3,696
    Likes Received:
    1,418
    I actually can't remember what I did to get around that permission error. I remember diong the adb remount command and getting a permission error but then did a couple of other commands and then did adb remount again and it worked. To push the framework-res file I use this directly from terminal emulator:

    adb shell
    su
    mount -o remount,rw /dev/mtdblock4 /system
    dd if=/sdcard/framework-res.apk of=/system/framework/framework-res.apk
     
    Papadroid likes this.
  4. Branndon

    Branndon Well-Known Member

    Joined:
    Nov 10, 2009
    Messages:
    481
    Likes Received:
    30
    Same question here, I've changed Fab's theme ever so slightly with a red bluetooth icon when not connected, and a cleaner looking battery. I want to export this into an easy to apply update.zip
     

    Attached Files:

  5. Papadroid

    Papadroid VIP Member VIP Member

    Joined:
    Jan 21, 2010
    Messages:
    1,139
    Likes Received:
    281
    I didn't think of putting it on the sdcard and then pushing it to framework, thanks.
     
  6. GirLuvsDroid

    GirLuvsDroid Well-Known Member

    Joined:
    Jan 5, 2010
    Messages:
    1,307
    Likes Received:
    515
    That's exactly how I did it, using adb from the computer, for both framework-res.apk and services.jar, using the following commands:


    adb shell
    su
    mount -o remount,rw /dev/block/mtdblock4 /system

    busybox cp /sdcard/framework-res.apk /system/framework/
    busybox cp /sdcard/
    services.jar /system/framework/
    reboot

    One thing to be aware of: when I pushed the framework back to my phone, it reverted to the stock wallpaper and knocked out my google account info. Easy enough to fix -- just select your wallpaper again and sign in to your Gmail account again -- but I thought I'd mention it in case folks don't realize that they may have to reset their Gmail account.
     
    Papadroid likes this.
  7. MSUgEEk

    MSUgEEk Well-Known Member This Topic's Starter

    Joined:
    Apr 22, 2010
    Messages:
    3,696
    Likes Received:
    1,418
    I guess copying the images to the framework and all that and then pushing it after each update is ok, I was just wanting it all in one convenient update.zip file or something like that.
     
  8. Fadelight

    Fadelight Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    1,393
    Likes Received:
    95

    Why not use Metamorph? Search Youtube... there are quite a few "How-To" videos on there for you to watch and learn from.
     
  9. Fabolous

    Fabolous Superuser VIP Member

    Joined:
    Nov 7, 2009
    Messages:
    3,635
    Likes Received:
    2,126
    Yeah, a MM .xml is pretty easy to make. Then, all you gotta do is just package all the images into the right folders.
     
    MSUgEEk likes this.
  10. GirLuvsDroid

    GirLuvsDroid Well-Known Member

    Joined:
    Jan 5, 2010
    Messages:
    1,307
    Likes Received:
    515
    Fab, are these the correct instructions for the xml file for the new Metamorph (assuming Theme_Name is the name of the MM file you're creating and you're creating a Metamorph theme to change your dropdown panel background)?

    Theme_Name.xml:

    Code:
    <?xml version="1.0"?>
    <useless></useless>
    <themename>Theme_Name</themename>
    <themeversion>1.0</themeversion>
    <phone>Droid</phone>
    <rom>Any</rom>
    <item>framework-res.apk</item>
    <path>/system/framework/</path>
    <description>Replaces Notification Dropdown background</description>
     
  11. MSUgEEk

    MSUgEEk Well-Known Member This Topic's Starter

    Joined:
    Apr 22, 2010
    Messages:
    3,696
    Likes Received:
    1,418
    I guess that's the easiest thing to do. Thanks.
     
  12. Fabolous

    Fabolous Superuser VIP Member

    Joined:
    Nov 7, 2009
    Messages:
    3,635
    Likes Received:
    2,126
    I don't really remember off the top of my head, but I can post a skeleton of it when I get home. It's really, really simple though. Stericson did a good job of making it that way.


    Sent from my Droid using Tapatalk
     
    GirLuvsDroid likes this.
  13. OMJ

    OMJ Bazinga VIP Member

    Joined:
    Nov 27, 2009
    Messages:
    3,288
    Likes Received:
    825


    That looks correct to me. MM is really easy to make stuff for. If you havent dont anything with update.zips before it will be much easier to use MM and probably easier to update when newer rom versions come out
     
    GirLuvsDroid likes this.
  14. Fabolous

    Fabolous Superuser VIP Member

    Joined:
    Nov 7, 2009
    Messages:
    3,635
    Likes Received:
    2,126
    Wow, Tapatalk is not very good at reading these things, lol. Your code looks spot on. There are a few more fields you can put in (especially if you want to distribute your MM)

    Code (Text):
    1.  
    2. <?xml version="1.0"?>
    3.  
    4. <themename>Theme name goes here</themename>
    5. <themeversion>Version number goes here</themeversion>
    6. <screenshot>name of png file goes here (no .png)</screenshot>
    7. <author>Fabolous</author>
    8. <authorweblink>twitter.com/bigxie</authorweblink>
    9. <phone>Phone model goes here</phone>
    10. <rom>Specific (or vague) ROM goes here</rom>
    11. <themedescription>This is just a skeleton .xml file for Metamorph</themedescription>
    12.  
    13. <item>app.apk</item>
    14. <path>/system/app/</path>
    15. <description></description>
    16.  
    17. <item>framework-res.apk</item>
    18. <path>/system/framework/</path>
    19. <description>(Requires Reboot)</description>
    20.  
    Then, you have your images in folders. In this case, two folders called app and framework-res.

    Then, each of those folders will have a folder called res, with drawable-hdpi, etc. inside it.

    zip up the folders and .xml file into a .zip with the same name as the .xml file, and there's a metamorph.


    I use notepad++ to make the .xml file, but I think any text editor will work
     
    GirLuvsDroid likes this.

Share This Page

Loading...