Fast way to update framework-res.apk after flash?

Discussion in 'Droid X Roms' started by transfan, Dec 16, 2010.

  1. transfan

    transfan Member

    Joined:
    Nov 12, 2010
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    I am using Darkslide v4.0 and 4.1 is already out! I want to update, but I have several custom .png files from my drawable-hdpi folder in framework-res.apk


    Is there a quick way to get these images (and custom eri.xml) into the new framework once I upgrade to 4.1? Like a blank zip file I could make and just install from sd card?
     
  2. Droid DOES!!

    Droid DOES!! What iDoesn't
    Theme Developer Premium Member

    Joined:
    Jun 12, 2010
    Messages:
    6,375
    Likes Received:
    35
    Trophy Points:
    178
    Ratings:
    +35
    Make a backup and try flash the new version without wiping and see if that does it.

    DroidForums junkie!!
     
  3. transfan

    transfan Member

    Joined:
    Nov 12, 2010
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Thanks for the suggestion, but it won't. The rom replaces framework-res.apk and that's where the .png files are. Basically what I want is to create a mini-theme that i can just install from recovery whenever i update.
     
  4. titans

    titans Premium Member
    Rescue Squad Premium Member

    Joined:
    Dec 3, 2009
    Messages:
    2,662
    Likes Received:
    0
    Trophy Points:
    101
    Ratings:
    +0
    get an update.zip
    open as archive usnig 7-zip
    delete everything
    make a folder named system. make a folder in it named framework. Drop the framework-res.apk in it. Install through Clockwork (might not be signed)
     
  5. Mbk

    Mbk Android For Life
    Theme Developer Premium Member

    Joined:
    May 4, 2010
    Messages:
    4,167
    Likes Received:
    4
    Trophy Points:
    153
    Ratings:
    +4
    You could also make a MetaMorph that contain all of those PNGs you customized, and apply it into 4.1 or any future builds...
     
  6. Droid DOES!!

    Droid DOES!! What iDoesn't
    Theme Developer Premium Member

    Joined:
    Jun 12, 2010
    Messages:
    6,375
    Likes Received:
    35
    Trophy Points:
    178
    Ratings:
    +35
    MM is way over my head! Thanks Mbk!



    DroidForums junkie!!
     
  7. Mbk

    Mbk Android For Life
    Theme Developer Premium Member

    Joined:
    May 4, 2010
    Messages:
    4,167
    Likes Received:
    4
    Trophy Points:
    153
    Ratings:
    +4
    It's really not as hard as it appears, just looks that way...lol :p
     
  8. droidxchat

    droidxchat Member

    Joined:
    Oct 15, 2010
    Messages:
    466
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    hey guys, no need to use any third party programs or blank update.zips!

    the quickest way:

    download the new ROM version, lets call it B, and lets call the original version that you're using now A.

    extract framework-res.apk from A. open it with winrar, extract out the specific files you want to keep.

    extract framework-res.apk from B. open it with winrar, don't extract anything out. navigate to the folders that require the modified files, and just drag those files (which you pulled from A) into their respective folders (sounds like you're dealing with drawable-hdpi and layout). the zip will automatically update, and you won't lose any signatures, etc.

    drag the now modified framework-res.apk from B back into the system directory of B's zip file, and flash it.
     
    #8 droidxchat, Dec 16, 2010
    Last edited: Dec 16, 2010
  9. Juicemane

    Juicemane Bang Bang
    Theme Developer Premium Member

    Joined:
    Jun 18, 2010
    Messages:
    1,098
    Likes Received:
    4
    Trophy Points:
    38
    Location:
    127.0.0.1
    Ratings:
    +4
    1. Pull the framework off your phone via astro, root explorer, or adb and save it to your PC.

    2. Download the new ROM to your PC.

    3. Open the new ROM.zip with 7zip and pull out the framework-res.apk located in the framework folder.

    4. Open the framework-res.apk with 7zip and open the hdpi folder for your device (leave it open)

    5. Open the framework-res.apk (the one from the OLD rom) with 7zip and pull the images out, save them to the desktop in an empty folder. (close the window once copied)

    6. Select all of the images in the new folder (Control+A) and copy them into the hdpi folder (the new framework-res hdpi folder) Paste them over the existing images in framework-res.

    7. Now, copy the new (modified) framework-res back into the ROM.zip (framework folder) and replace the original.

    8. Install the ROM.zip like normal.


    Thats the easiest way to do it. Good luck ;)
     
    #9 Juicemane, Dec 16, 2010
    Last edited: Dec 16, 2010
  10. Mbk

    Mbk Android For Life
    Theme Developer Premium Member

    Joined:
    May 4, 2010
    Messages:
    4,167
    Likes Received:
    4
    Trophy Points:
    153
    Ratings:
    +4
    LOL... the easiest way?... it'd still be the MM since you would only have to pack those custom icons into an MM.zip once.... and just apply the same MM from there on... but you can go copy & paste route as well...

    If you'd like to try the MM.... here's an empty pack that you can place all of your custom icons into (place into the drawable-hdpi folder), then rezip the framework-res folder and the XML using 7zip (as archive is best)... then apply via MM (make sure you have your USBDebugging checked..

    If that takes, it'll take every time there is a new version of that ROM, and it'll probably also work onto other ROMs as well since they all have the framework-res/res/drawable-hdpi path

    Nanadroid first, and try that.... if you feel it's not easier, then the copy & paste method would be fine for you...;)
     
  11. droidxchat

    droidxchat Member

    Joined:
    Oct 15, 2010
    Messages:
    466
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    you only have the pack the custom icons once in our method as well...

    in fact, your method requires flashing the unmodified new rom over the old, then installing MM and creating the MM package, then using MM to modify the new ROM. our method allows you to modify the new rom before flashing it over the old, which combines the packing and actually modifying all into the upgrade itself, without relying on an extra third party program on your phone. which also has the benefit that anytime you reflash the rom, you'll already have the custom stuff without having to use MM again
     
    #11 droidxchat, Dec 16, 2010
    Last edited: Dec 16, 2010
  12. Mbk

    Mbk Android For Life
    Theme Developer Premium Member

    Joined:
    May 4, 2010
    Messages:
    4,167
    Likes Received:
    4
    Trophy Points:
    153
    Ratings:
    +4
    I'm sorry brother... but you seem to be unaware of what MetaMorph does... and it's not up to me or you anyways... it's up to each individual to choose for themselves...

    But just so I can clear up the process for you... the new ROM 'must' be flashed at least once regardless, right?

    your method means that he has to extract the framework-res.apk 'every' time he plans to flash a new ROM... and swap out those custom icons 'every' time....

    whereas...

    with MM, he transfers those icons 'just once', and every time he flashes a new ROM or theme, he merely has to open MM and apply, and it applies fast with a quick reboot...

    I've done it all ways, and it can be done any method, but why copy and paste multiple times????
     
Search tags for this page
android framework flas
,

android framework update zip

,
flashable framework for android
,
framework flashable zip
,
framework res apk kitkat
,

framework res apk update zip

,
framework.res.apk update.zip stock recovery download
,
how swap framework apk
,
make an update.zip of framework-res.apk
,

restore framework-res.apk