Making a framework-res.apk file: need help!

Discussion in 'Android Themes' started by pkdesigns, May 31, 2010.

  1. pkdesigns
    Offline

    pkdesigns Member

    Joined:
    Nov 7, 2009
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Leesburg, VA
    Ratings:
    +0
    Alright, first off I'm making a set of 3G icons. I've got the folders set right (framework-res/...), I've got the XML file setup (with the correct /system/framework path), yet metamorph didn't install it properly (did a MM loop, yes I've got debugging on)? Any help on what else the file needs would be great!
  2. forkup
    Offline

    forkup Member

    Joined:
    Oct 31, 2009
    Messages:
    317
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    More info please, obviously if it was all setup correctly it would work :)
  3. treminaor
    Offline

    treminaor Member

    Joined:
    Jan 9, 2010
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    California
    Ratings:
    +0
    Are you using a .zip container for your theme? If so, ensure that you selected the /system folder and compressed it as framework-res.apk instead of selecting a framework-res folder CONAINING the system folder and compressed that. ex: a zip file with the structure "/framework-res.zip/system" as opposed to "/framework-res.zip/framework-res/system/".
  4. pkdesigns
    Offline

    pkdesigns Member

    Joined:
    Nov 7, 2009
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Leesburg, VA
    Ratings:
    +0
    Well I guess I'm asking if I need any other files than the folders containing the .pngs, and the xml file? I'm trying to use metamorph to swap my 'stat_3g' .pngs to make it show up red in my notification bar.
  5. FuzzyBeard
    Offline

    FuzzyBeard Member

    Joined:
    Jan 28, 2010
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    I just put in the files I'm replacing instead of all the .png's keeping in mind I still use the entire folder structure

    /framework-res/res/drawable-hdpi/whatever.png

    two things I found out. I needed to use 7-zip to set the compression to storage. I needed to put framework-res in the /system/framework/ directory
  6. titans
    Offline

    titans Premium Member Rescue Squad Premium Member

    Joined:
    Dec 3, 2009
    Messages:
    2,664
    Likes Received:
    0
    Trophy Points:
    101
    Ratings:
    +0
    All you have to do is adb pull the framework-res.apk, replace the pngs, and adb push it back.
  7. treminaor
    Offline

    treminaor Member

    Joined:
    Jan 9, 2010
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    California
    Ratings:
    +0
    +1 to this.

    Metamorph is a waste of time IMO. Test your theme using ADB and when it's ready to release, make an update.zip.
  8. pkdesigns
    Offline

    pkdesigns Member

    Joined:
    Nov 7, 2009
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Leesburg, VA
    Ratings:
    +0
    So just zip the files up that I wanna change in the framework path, and make it update.zip and install from the root? That easy?

    Anyone know of a good mac compressor that does a storage option?
  9. treminaor
    Offline

    treminaor Member

    Joined:
    Jan 9, 2010
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    California
    Ratings:
    +0
    Just use the built-in Right-Click menu compression tool. You don't need any fancy storage compression.

    Find someone else's update.zip and take a look at the hierarchy. And keep in mind that OSX creates a folder to keep the extracted contents in that should not be re-zipped. For example, if you unzipped a zip file that had a structure like this: "/framework-res.apk/system", it would extract it into a folder called framework-res (even though that folder didnt exist). To rezip it correctly, zip up the /system/ folder and name the zip framework-res.apk (and press yes to change the extension.)
    Last edited: May 31, 2010
  10. pkdesigns
    Offline

    pkdesigns Member

    Joined:
    Nov 7, 2009
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Leesburg, VA
    Ratings:
    +0
    what i tried to do before was:

    make my files under the path of: framework-res/res/drawable-hdpi/whatever.png

    then i tried to drag it right over so Metamorph could run it.

    what you're saying is to do the whole path? /system/framework/framework-res/res/drawable-hdpi/whatever.png, zip that up, then move it over as update.zip? i'm still kinda lost at what you're saying.


    by adb pull you mean './adb pull /system/framework/framework-res.apk' in terminal right? im not very familiar with adb
Search tags for this page

apk compresser

,

framework.res file

,
how to compress framework-res
,
how to make a new framework-res.apk