How do you create themes for Custom Roms?


Last Updated:

  1. 2FR35H

    2FR35H Well-Known Member This Topic's Starter

    Joined:
    Dec 10, 2009
    Messages:
    1,224
    Likes Received:
    84
    I have a couple of ideas for theming but have no idea on how to actually go about making them for the phone...
     

    Advertisement
  2. lviv73

    lviv73 Well-Known Member

    Joined:
    Mar 6, 2010
    Messages:
    144
    Likes Received:
    13
    go to system/app folder and edit .apk files,you can extract them with 7zip
     
  3. 2FR35H

    2FR35H Well-Known Member This Topic's Starter

    Joined:
    Dec 10, 2009
    Messages:
    1,224
    Likes Received:
    84
    Thanks I'll definitely try that once I get the drivers reset up for my computer.
     
  4. behold_this

    behold_this Well-Known Member

    Joined:
    Nov 18, 2009
    Messages:
    1,419
    Likes Received:
    243
    umm...no...thats how you theme an app, not the system. opening up and editing random apks is not what is ment by themeing. that just moddifies that app and that app only! a true theme (i.e. notification bar and system png's) is done with either metamorph or by manually editing the framework-res.apk, then if you want to take it further you edit the dialer and app drawer and that is a theme. modding other apps just adds continuity throughout the theme, but you need the basics first.

    @2FR35H for true "themeing" you can find the apks you need listed below!

    Notification Bar and system images:
    /system/framework/framework-res.apk

    dialer:
    /system/app/contacts.apk or TouchWizContacts.apk (depending on what rom you use)

    app drawer:
    /system/app/Launcher.apk or TwLauncher.apk or AdvancedLauncher.apk or others (depending on what launcher you use and want skinned)
     
    2FR35H likes this.
  5. 2FR35H

    2FR35H Well-Known Member This Topic's Starter

    Joined:
    Dec 10, 2009
    Messages:
    1,224
    Likes Received:
    84
    Ah I see cool thanks
     
  6. behold_this

    behold_this Well-Known Member

    Joined:
    Nov 18, 2009
    Messages:
    1,419
    Likes Received:
    243
    no prob!

    i should also mention if you want the in-call dialer to match the regular dialer make the same changes you made to TouchWizContacts.apk / contacts.apk to:

    TouchWizPhone.apk (if on stock) or phone.apk (for galaxy)
     
  7. bleufox99

    bleufox99 Well-Known Member

    Joined:
    Feb 8, 2010
    Messages:
    58
    Likes Received:
    9
    You also need winrar or 7zip. 7zip works better because you don't have to change the extension to .zip to open it the archive. The easiest way I've found is to follow these steps for editing the files.

    1. Pick the .apk file to edit

    2. pull /system/framework/framework-res.apk or /system/app/----.apk

    3. after installing 7zip right click the .apk file and extract to /....

    4. open the extracted .apk -----/res/(anything drawable)

    5. in that folder you will find .png images edit as you wish but make sure to keep the image the same pixel dimensions and I recommend GIMP(free) or Adobe($$$$) or
    Corel Draw($$$$$$$$$$$). Do not edit or change the .xml files!!!!

    6. Once you have all your .png files the way you want them double click the original .apk file and 7zip will open it as the archive, if your using winrar you will need to open a command prompt and rename the file from .apk to .zip before double clicking

    7. Select the res folder in the extracted archive (the one with your changes) and drag and drop into the archive window(7zip or winrar) if you get a popup just click yes

    8. Push it back to your phone and it will work immediately except for framework-res.apk requires a factory reset before you will notice all your changes. (NOTE if you are using winrar don't forget to change the file back to .apk before pushing)
     
    2FR35H likes this.
  8. thegame3202

    thegame3202 Well-Known Member

    Joined:
    Apr 2, 2010
    Messages:
    233
    Likes Received:
    52
    I also use a program called "PNGGauntlet". Compresses the image files so your .apk file doesn't get huge :p
     
    2FR35H and behold_this like this.
  9. behold_this

    behold_this Well-Known Member

    Joined:
    Nov 18, 2009
    Messages:
    1,419
    Likes Received:
    243
    great tip thanx!
     
  10. bleufox99

    bleufox99 Well-Known Member

    Joined:
    Feb 8, 2010
    Messages:
    58
    Likes Received:
    9
    I'll have to try it
     
  11. 2FR35H

    2FR35H Well-Known Member This Topic's Starter

    Joined:
    Dec 10, 2009
    Messages:
    1,224
    Likes Received:
    84
    What happens if I change the XML files? isn't xml only style sheets and such?
     
  12. bleufox99

    bleufox99 Well-Known Member

    Joined:
    Feb 8, 2010
    Messages:
    58
    Likes Received:
    9
    sorry about the wait.... the files are binary and i'm not advanced enough to explain how to edit and recompile the the app. if you want to read them you can download axml2print.jar you just can't change them or the program stops working.
     
  13. 2FR35H

    2FR35H Well-Known Member This Topic's Starter

    Joined:
    Dec 10, 2009
    Messages:
    1,224
    Likes Received:
    84
    Its fine and ah.. okay.
     
  14. BH_MAN

    BH_MAN Well-Known Member

    Joined:
    Feb 17, 2010
    Messages:
    1,381
    Likes Received:
    1,667
    you have to use Eclipse to recompile the xml files after editing.
     
    2FR35H likes this.
  15. bleufox99

    bleufox99 Well-Known Member

    Joined:
    Feb 8, 2010
    Messages:
    58
    Likes Received:
    9
    Is there a tutorial for doing this? I have tried plugging in the .apk's to eclipse with the androidsdk plugins installed but constantly get errors and I have barely graduated from BASIC let alone java.
     

Share This Page

Loading...