1. Check out our companion app, Forums for Android! Download from Google Play

Root Creating theme files question

Discussion in 'Android Devices' started by MSUgEEk, Jun 14, 2010.

  1. MSUgEEk

    MSUgEEk Well-Known Member
    Thread Starter
    313

    Apr 22, 2010
    3,696
    1,418
    313
    Electrical Design Engineer
    Northwestern Alabama
    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 Well-Known Member
    183

    Jan 21, 2010
    1,139
    281
    183
    Tampa, FL
    +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
    Thread Starter
    313

    Apr 22, 2010
    3,696
    1,418
    313
    Electrical Design Engineer
    Northwestern Alabama
    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
    43

    Nov 10, 2009
    481
    30
    43
    Website Developer
    Orange County, CA
    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 Well-Known Member
    183

    Jan 21, 2010
    1,139
    281
    183
    Tampa, FL
    I didn't think of putting it on the sdcard and then pushing it to framework, thanks.
     
  6. GirLuvsDroid

    GirLuvsDroid Well-Known Member
    213

    Jan 5, 2010
    1,307
    515
    213
    Corporate & Securties Attorney
    Wilmington, DE
    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
    Thread Starter
    313

    Apr 22, 2010
    3,696
    1,418
    313
    Electrical Design Engineer
    Northwestern Alabama
    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
    148

    Oct 29, 2009
    1,395
    95
    148
    Security
    Mulberry, FL

    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
    313

    Nov 7, 2009
    3,635
    2,126
    313
    Multi-platinum Rapper
    Illinois
    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
    213

    Jan 5, 2010
    1,307
    515
    213
    Corporate & Securties Attorney
    Wilmington, DE
    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
    Thread Starter
    313

    Apr 22, 2010
    3,696
    1,418
    313
    Electrical Design Engineer
    Northwestern Alabama
    I guess that's the easiest thing to do. Thanks.
     
  12. Fabolous

    Fabolous Superuser
    313

    Nov 7, 2009
    3,635
    2,126
    313
    Multi-platinum Rapper
    Illinois
    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
    213

    Nov 27, 2009
    3,290
    825
    213
    Finance
    Pennsylvania


    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
    313

    Nov 7, 2009
    3,635
    2,126
    313
    Multi-platinum Rapper
    Illinois
    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...