• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Creating theme files question

MSUgEEk

Android Expert
Apr 22, 2010
3,696
1,418
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.
 
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
 
  • Like
Reactions: Papadroid
Upvote 0
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
 

Attachments

  • CAP201006141225.jpg
    CAP201006141225.jpg
    118.2 KB · Views: 33
Upvote 0
I didn't think of putting it on the sdcard and then pushing it to framework, thanks.

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.
 
  • Like
Reactions: Papadroid
Upvote 0
Yeah, a MM .xml is pretty easy to make. Then, all you gotta do is just package all the images into the right folders.

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>
 
Upvote 0
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.

Yeah, a MM .xml is pretty easy to make. Then, all you gotta do is just package all the images into the right folders.

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:


Theme_Name
1.0
Droid
Any
framework-res.apk
/system/framework/
Replaces Notification Dropdown background


Sent from my Droid using Tapatalk
 
  • Like
Reactions: GirLuvsDroid
Upvote 0
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>



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
 
  • Like
Reactions: GirLuvsDroid
Upvote 0
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:
<?xml version="1.0"?>

<themename>Theme name goes here</themename>
<themeversion>Version number goes here</themeversion>
<screenshot>name of png file goes here (no .png)</screenshot>
<author>Fabolous</author>
<authorweblink>twitter.com/bigxie</authorweblink>
<phone>Phone model goes here</phone>
<rom>Specific (or vague) ROM goes here</rom>
<themedescription>This is just a skeleton .xml file for Metamorph</themedescription>

<item>app.apk</item>
<path>/system/app/</path>
<description></description>

<item>framework-res.apk</item>
<path>/system/framework/</path>
<description>(Requires Reboot)</description>

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
 
  • Like
Reactions: GirLuvsDroid
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones