Best way to edit/mod "framework-res.apk" in FROYO?

Discussion in 'Bugless' started by ocdrummer2011, Jun 22, 2010.

  1. ocdrummer2011

    ocdrummer2011 Member

    Joined:
    Mar 11, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0

    I've spent a lot of time trying to customize my framework, and can not seem to figure it out:icon_eek:. I don't know if there is a secret or not, but if there is i'd like to know about it lol.

    If anyone could give me advice/tips I would greatly appreciate it :)

     
  2. titans

    titans Premium Member Rescue Squad Premium Member

    Joined:
    Dec 3, 2009
    Messages:
    2,662
    Likes Received:
    0
    Trophy Points:
    101
    Ratings:
    +0
    Use terminal, since ADB doesn't work.
    su
    cp system/framework/framework-res.apk /sdcard

    (edit files on your computer opening the framework as an archive using 7zip. put the file on the sd card)

    assuming that you aren't in SU anymore..

    su
    cp /sdcard/framework-res.apk system/framework
    chmod 644 system/framework/framework-res.apk
    sync
    reboot
     
    Last edited: Jun 22, 2010
  3. ocdrummer2011

    ocdrummer2011 Member

    Joined:
    Mar 11, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Could you explain how I could use the terminal to modify my framework? I just want to change a few things..
     
  4. titans

    titans Premium Member Rescue Squad Premium Member

    Joined:
    Dec 3, 2009
    Messages:
    2,662
    Likes Received:
    0
    Trophy Points:
    101
    Ratings:
    +0
    I just edited my post :)
     
  5. ocdrummer2011

    ocdrummer2011 Member

    Joined:
    Mar 11, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    so I take the "framework-res.apk" from my phone, and move it to my SD card. After that I mount the SD card and place the file on my computer...rename to .zip...

    After that im kinda lost..what exactly is 7zip? Is it kinda like WinRar?
     
  6. titans

    titans Premium Member Rescue Squad Premium Member

    Joined:
    Dec 3, 2009
    Messages:
    2,662
    Likes Received:
    0
    Trophy Points:
    101
    Ratings:
    +0
    Google 7zip...and no you don't have to rename to .zip on the framework.
     
  7. ocdrummer2011

    ocdrummer2011 Member

    Joined:
    Mar 11, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Thanks!! Never knew about 7zip...so basically that allows you to edit your file without changing to .zip?

    And once you open "framework-res.apk" I can edit what I want to?
     
  8. titans

    titans Premium Member Rescue Squad Premium Member

    Joined:
    Dec 3, 2009
    Messages:
    2,662
    Likes Received:
    0
    Trophy Points:
    101
    Ratings:
    +0
    Yes that but make sure you open it as an archive. It doesn't break the signing of the .apk, thats why everyone uses it. Saves time. And yep you can edit whatever you want...just be careful and backup your phone first...especially if you are hex editing.
     
  9. ocdrummer2011

    ocdrummer2011 Member

    Joined:
    Mar 11, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Alright...

    And when I open as an archive, I click on some PNG images I want to edit but nothing shows up?
    When I open as a .zip, I click on the same image and it shows the image..

    You have any idea why so?
     
  10. titans

    titans Premium Member Rescue Squad Premium Member

    Joined:
    Dec 3, 2009
    Messages:
    2,662
    Likes Received:
    0
    Trophy Points:
    101
    Ratings:
    +0
    No idea, I don't have any problems.
     
  11. actngrezy

    actngrezy Active Member Developer

    Joined:
    Mar 21, 2010
    Messages:
    1,074
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    delaware
    Ratings:
    +2
    I use adb to pull my framework straight to computer. For it to work I downloaded the 2.2sdk and boot into recovery. When in recovery mount the system then start typing the commands you want. (just how I do it) then if Iwant to see the images I use winrar because for some reason 7zip doesn't. open the image but once I know what image I want to replace I use 7zip to open the framework then use winrar to open up the framework of the file I'm pulling from then drag the file to the framework res hdpi. folder in 7zip
     
  12. ecsnead69

    ecsnead69 Premium Member Theme Developer Premium Member

    Joined:
    May 6, 2010
    Messages:
    1,316
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    Virginia
    Ratings:
    +1
    Are the commands the same as if you weren't in recovery? Let's say I want to push framework-res.apk, would the commands still be like this for 2.2....

    Adb remount
    adb push framework-res.apk system/framework/
    adb reboot

    Thanks

    Also, can I just keep a framework-res.apk on my pc and push it whenever I make a change??
     
  13. kgbrown247

    kgbrown247 New Member

    Joined:
    Aug 18, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    i have tried to use this method and i keep bootlooping my device. is there anything else i should check?
     
  14. DF Smod

    DF Smod Silver Member

    Joined:
    Apr 23, 2010
    Messages:
    11,457
    Likes Received:
    92
    Trophy Points:
    163
    Ratings:
    +92
    There are two methods discussed here, which one are you having troubles with, Terminal or ADB ?
     
  15. ZeroBarrier

    ZeroBarrier Guest

    Ratings:
    +0
    With either method; pushing the framework-res.apk back to the phone should always be done using ADB while in recovery mode (mount /system).

    Trying to switch the framework-res.apk while the system is accessing it will usually result in boot loop city.

    Zipaligning the framework-res.apk should also only be done in recovery mode, as this will result in the same behavior.
     
Search tags for this page

edit framework-res.apk

,
framework res.apk editor
,
framework-res mods
,
framework-res.apk edit
,
framework-res.apk mods
,

how to edit framework-res.apk

,
how to modify framework-res.apk
,
mod framework-res.apk
,
modification framework res android froyo
,

modify framework-res.apk