Copying framework-res.apk back to phone

Discussion in 'Bugless' started by TechJPC, Jul 29, 2010.

  1. TechJPC

    TechJPC Member

    Joined:
    Dec 11, 2009
    Messages:
    193
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Hi, Ive edited my framework-res.apk file and its now on my sdcard. I want to move it back to my phone.

    I typed this in terminal to move it back to the phone ... cp /sdcard/framework-res.apk /system/framework

    It's telling me that the "file exists"

    How can I overwrite the framework-res.apk on the phone ?

    Thanks
    Joe
     
  2. 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
    I believe that command just copies what you already have. The best way to do this is with adb in recovery. This phone does not play well with pushing framework while running! Are you familiar with adb?
     
  3. supersaki

    supersaki Member

    Joined:
    Feb 8, 2010
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    I've always done it through adb:

    adb remount (makes system r/w, I always forget the mount command)
    adb push framework-res.apk /system/framework/framework-res.apk
    adb remount (makes system r/o)

    reboot phone

    --

    maybe you just need to make system r/w and it will let you copy?
    " mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system"
    before the copy should make it r/w.

    to make read-only again, "mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system"
     
    Last edited: Jul 29, 2010
  4. TechJPC

    TechJPC Member

    Joined:
    Dec 11, 2009
    Messages:
    193
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0

    I never used adb recovery . How do I get to it ?

    Joe
     
  5. DF Smod

    DF Smod Silver Member

    Joined:
    Apr 23, 2010
    Messages:
    11,457
    Likes Received:
    92
    Trophy Points:
    163
    Ratings:
    +92
    If you have Root Explorer go into system/framework and long press on the framework-res.apk and tap "permissions" take note of what the permissions are set at, go to your edited framework-res.apk on your SD long press it and select copy or move and navigate back to system/framework and "paste" your edited framework-res. It will ask you if you would like to "overwrite" the current framework-res, select yes. After that long press on the new framework-res you just pasted and select permissions and set the permissions as they were on the original framework-res then reboot your phone and enjoy

    If you don't have Root Explorer, it is a must for Root Users and you can find it in the Market
     
  6. GirLuvsDroid

    GirLuvsDroid Senior Member

    Joined:
    Feb 18, 2010
    Messages:
    1,551
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    Wilmington, DE
    Ratings:
    +1
    Although I use Root Explorer constantly to move files in and out of /system/app and to edit scripts, and other system files, I've never had any luck using it to push my framework back to /system/framework.

    However, typing these commands into Terminal Emulator always works for me:

    su
    sys -rw
    busybox cp /sdcard/framework-res.apk /system/framework
    sys -rw

    Then you're going to need to reboot.

    Also, as a warning, this always causes my chosen wallpaper to be obliterated (reverts to stock wallpaper), as well as my Google account. This is very easy to fix -- just choose your wallpaper again and then go into System>Accounts & sync and add back your Google account.
     
  7. 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
    Pushing in recovery has no affect on your google account or wallpaper. It does this because framework is constantly running....
     
  8. TechJPC

    TechJPC Member

    Joined:
    Dec 11, 2009
    Messages:
    193
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Thanks guys and Girl ... I will post back .
     
  9. GirLuvsDroid

    GirLuvsDroid Senior Member

    Joined:
    Feb 18, 2010
    Messages:
    1,551
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    Wilmington, DE
    Ratings:
    +1
    Yes, true, and it's the preferred method if you have access to adb (which I don't at work). At those times, I'm content with using Terminal Emulator and resetting my wallpaper and Google account.
     
  10. Tallica

    Tallica Premium Member Rescue Squad Premium Member

    Joined:
    Mar 17, 2010
    Messages:
    3,259
    Likes Received:
    1
    Trophy Points:
    101
    Location:
    Middleboro, MA
    Ratings:
    +1
    Adb is the safest way to do it. If you paste the framework-res.apk back to system/framework with root exploerer the screen goes black and you can't change perm.

    I have done it countless times every time works perfect:

    Install the SDK and ADB

    put the modded framework app in your android/tools folder on your pc reboot your phone into recovery, connet to pc with usb, mount system on phone,

    from command prompt on pc:

    cd c:\android\tools (if that is where your tools and the modded app are)
    adb push C:\android\tools\framework-res.apk /system/framework/framework-res.apk (again if that is where the file is)

    unmount system on phone, reboot phone, done
     
    Last edited: Jul 29, 2010
  11. TechJPC

    TechJPC Member

    Joined:
    Dec 11, 2009
    Messages:
    193
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Thanks, where do I get the SKD and ADB ?
     
  12. killabyte

    killabyte Guest

    Ratings:
    +0
    Android SDK Download

    ADB is in the tools dir I believe. So just switch to that dir and then type adb. Like using telnet from a command prompt. You can also copy a couple files, I forget which 2, into the system32 dir on your Windows box and access adb without being in the tools dir.
     
  13. TechJPC

    TechJPC Member

    Joined:
    Dec 11, 2009
    Messages:
    193
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Ok, got the phone booted to Recovery. How do I mount the system on phone ? Do I reboot the phone with the USB already connected to phone ?

    Joe
     
  14. TechJPC

    TechJPC Member

    Joined:
    Dec 11, 2009
    Messages:
    193
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0

    Disregard above .. I found it.
     
  15. TechJPC

    TechJPC Member

    Joined:
    Dec 11, 2009
    Messages:
    193
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Thanks everyone, I went the ADB route.
     
Search tags for this page
backup framework res apk
,

framework res apk permissions

,
how to copy farmwork into sytem
,
how to copy firmwork-res.apk with recovery system
,

how to overwrite framework-res.apk

,
how to paste to system/framework framework-res.apk
,
how to push framework.apk using terminal emulator
,
replace framework res apk root explorer
,
replace framework-res.apk root explorer
,
system framework android