Framework.apk

Discussion in 'Android Themes' started by o0HERO0o, May 13, 2010.

  1. o0HERO0o

    o0HERO0o Member

    Joined:
    Mar 1, 2010
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virginia
    Ratings:
    +0
    If I change some things in the framework.apk and then put it back on my phone is there something special I need to do to get it to work or should it be fine once it's back on my phone?
     
  2. rhyde82

    rhyde82 Member

    Joined:
    Mar 8, 2010
    Messages:
    47
    Likes Received:
    1
    Trophy Points:
    8
    Ratings:
    +1
    pull with android sdk do what u need to do push it back with android sdk and reboot and it should work fine
     
  3. mwhartman

    mwhartman Super Moderator/RS Premium Member

    Joined:
    Jan 15, 2010
    Messages:
    10,737
    Likes Received:
    12
    Trophy Points:
    153
    Location:
    South FL
    Ratings:
    +12
    Make a backup first!
     
  4. AngDroid

    AngDroid Premium Member Premium Member Developer

    Joined:
    Apr 20, 2010
    Messages:
    759
    Likes Received:
    1
    Trophy Points:
    18
    Ratings:
    +1
    Your market will crash when installing new apps from there. The easy fix is to remove any market updates after you install the new framework-res.apk file. If uninstalling market updates does not work then push the vending.apk file that droid928 posted in one of his threads.
     
  5. icculusX

    icculusX Premium Member Theme Developer Premium Member

    Joined:
    Feb 10, 2010
    Messages:
    2,534
    Likes Received:
    0
    Trophy Points:
    101
    Location:
    The Moon
    Ratings:
    +0
    The market doesn't have anything to do with framework edits....?
     
  6. AngDroid

    AngDroid Premium Member Premium Member Developer

    Joined:
    Apr 20, 2010
    Messages:
    759
    Likes Received:
    1
    Trophy Points:
    18
    Ratings:
    +1
    Everytime I edit the framework apk file my market crashes when I download and install something new. The only fix I found was to remove the market update and install the vending.apk droid928 posted.
     
  7. icculusX

    icculusX Premium Member Theme Developer Premium Member

    Joined:
    Feb 10, 2010
    Messages:
    2,534
    Likes Received:
    0
    Trophy Points:
    101
    Location:
    The Moon
    Ratings:
    +0
    Thats very strange cause the framework doesn't even touch the vending APK - are you pushing your stuff with ADB while in recovery mode, this is the best way to do it without issues...
     
  8. AngDroid

    AngDroid Premium Member Premium Member Developer

    Joined:
    Apr 20, 2010
    Messages:
    759
    Likes Received:
    1
    Trophy Points:
    18
    Ratings:
    +1
    Yes I am. Maybe does not do it to custom ROMs but I am using stock 2.1 which I am doing my own mods on and that is the one problem I ran into with switching the framework-res.apk file. Searching around seems others are having the problem too and that's how I discovered the fix.
     
  9. o0HERO0o

    o0HERO0o Member

    Joined:
    Mar 1, 2010
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virginia
    Ratings:
    +0
    I pulled just the framework.apk onto the computer made a few changes in the res - folder, replaced that folder in the framework.apk and then dragged and dropped the .apk back onto my card. When I go to replace the old framework.apk file using root explorer my phone screen goes black and won't do anything else I then have to pull the battery boot into recovery and restore a backup. I don't understand what is going wrong.:(:(:(
     
  10. AngDroid

    AngDroid Premium Member Premium Member Developer

    Joined:
    Apr 20, 2010
    Messages:
    759
    Likes Received:
    1
    Trophy Points:
    18
    Ratings:
    +1

    If you made the framework-res.apk correctly then you need to do the following steps to install it.
    Power off phone
    Power phone back on while holding the X key on the keyboard so you can enter into SPRecovery.
    Mount Options
    Mount System
    Open command prompt on computer and typ the following commands
    adb push framework-res.apk /system/app/framework-res.apk
    adb shell "/system/bin/chmod 644 /system/app/framework-res.apk"
    adb reboot

    Make sure your framework-res.apk is in the same folder where your command prompt is. For example if your command prompt is at c:\ then make sure the apk file is on the root of the C drive.

    your framework-res.apk should be installed properly by this method.

    If you do boot up and your changes take affect then try to install an app from market and see if it it crashes...
     
  11. mwhartman

    mwhartman Super Moderator/RS Premium Member

    Joined:
    Jan 15, 2010
    Messages:
    10,737
    Likes Received:
    12
    Trophy Points:
    153
    Location:
    South FL
    Ratings:
    +12
    My sense is you are not making the switch quick enough. Try this:




    Once you open Root Explorer go to the sdcard directory. Rename the framework-res.apk to framework-res.ap (so you can change it quickly once you move it). After you have renamed it, long press on framework-res.ap and choose "Move". Now, just click the back button on your phone once and you should see the "Mount R/W" button on the top. Click that button (so that it reads "Mount R/O" after you click on it). Next, go to the system directory on the bottom. Then, click on the "Mount R/W" button on the top again. After that, go to the framework directory. In there, you will paste the framework-res.ap file. Once it's in there, rename the current framework-res.apk to framework-res.bak (or .old, whichever you prefer). Once you rename that, you must act quickly to rename the framework-res.ap file into framework-res.apk (this will be the new file now). After you have renamed it, long press on the new framework-res.apk and choose "Permissions". Make sure you have "Read" and "Write" checked for User, "Read" for "Group", and "Read" for "Others". Just take out the other checks marks if you see them that aren't needed. Reboot your phone after that. After you have rebooted, go to the Settings of your phone. Go to Accounts and sync to enter your accounts again and sync them again. That should do it.
     
  12. o0HERO0o

    o0HERO0o Member

    Joined:
    Mar 1, 2010
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virginia
    Ratings:
    +0
    I don't get it the screen goes black immediately. Also I downloaded the Android SDK and when I go to use it the terminal shuts down a few seconds after I open it.........I hate my life:icon_ cry:
     
  13. mwhartman

    mwhartman Super Moderator/RS Premium Member

    Joined:
    Jan 15, 2010
    Messages:
    10,737
    Likes Received:
    12
    Trophy Points:
    153
    Location:
    South FL
    Ratings:
    +12
    I do not have any other suggestions, sorry.

    Mike
     
  14. Jim 777

    Jim 777 Silver Member

    Joined:
    Dec 26, 2009
    Messages:
    2,273
    Likes Received:
    2
    Trophy Points:
    103
    Ratings:
    +2
    This has worked for me many times without fail. You will only have to sign in to your gmail and FB once you've boot back up.

    Once you've edited your framework, put it on your root of your sdcard. Then in Terminal Emulator, type in the following, pressing [enter] after each line:

    su
    mount -o rw,remount /dev/block/mtdblock4 /system
    busybox cp -R /sdcard/framework-res.apk /system/framework
    reboot

    That's worked for me with the last three ROMs.
     
  15. o0HERO0o

    o0HERO0o Member

    Joined:
    Mar 1, 2010
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virginia
    Ratings:
    +0
    I'm going to try this again but the first time I tried it, my phones screen went black again before I could type - reboot. I'm wondering what is happening with my phone, why does it keep doing this?
     
Search tags for this page
android sdk framework.apk
,
apk framework
,
copied framework res apk to the wrong folder
,

framework apk

,
framework res ap
,
how to fix framework rename on android
,
how to repair renamed framework-res
,
location of framework-res.ap
,
root framework.apk
,
vending apk netframe