[Howto] Framework-Res Crash Fix

Discussion in 'Android Themes' started by altGRAF, Apr 9, 2010.

  1. altGRAF
    Offline

    altGRAF New Member

    Joined:
    Apr 9, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Intro:
    So I've not have much luck with Metamorph with patching the Framework-Res.
    It will attempt to patch it but then the droid would just reboot. So after trying
    every which way to get it to work, I've found a working solution and I hope it
    works for you. I'm currently on a windows box, so the tools used are such.
    However you can also use adb to do this as well, on any platform.

    :motdroidvert: > :iphone:

    Tools Needed:
    Rooted Device
    Android SDK [SITE]
    Android Commander [SITE]
    7-Zip [SITE]
    Phone in USB Debug Mode - Unmounted

    Step One:
    Plug your device in, make sure its in USB Debug Mode.
    -To Enable USB Debug Mode navigate to [Settings > Applications > Development] and check USB Debug Mode.

    Step Two:
    Launch Android Commander. It will ask where your TOOLS folder
    of your SDK is located. Point it in the right directory and re-launch.

    Step Three:
    In the right pane, navigate to [System > Framework] and drag your
    Framework-Res.apk file over.
    -Now mind you this is the CURRENT framework in use. So if you're using
    a theme, you will get a themed Framework. Most roms include a default
    droid theme as a update.zip. Do this if you wish to start fresh, otherwise continue.


    Step Four:
    Now you can open the apk file with 7ZIP. You can navigate it as a zip/rar/etc.
    and such you can replace files easily. Right with 7ZIP. So drag what PNG's
    you want to edit out of the apk, Edit them and drag them back into the .apk. Done!
    -Always keep a backup!

    Step Five:
    Now simply drag the Framework-Res.apk back over to the [System > Framework] folder.
    -Your device will reboot automatically upon overwrite completion

    Congratulations! You've edited your Framework-Res. By now your device
    should be rebooted and hopefully you see the changes you made.

    Happy Hacking.
    Last edited: Apr 9, 2010
  2. Flomaster
    Offline

    Flomaster Premium Member Premium Member

    Joined:
    Jan 14, 2010
    Messages:
    1,073
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    East Texas
    here is how I do it via adb and root explorer

    Code:
    adb remount
    adb shell cp /system/framework/framework-res.apk /sdcard/
    open THM file using root explorer
    change the path below framework-res.apk
    from /system/framework/ to /sdcard/
    run the MM framework theme not not reboot
    Code:
    adb shell cp /sdcard/framework-res.apk /system/framework/framework-res.apk
    adb shell sync
    adb shell reboot
    PROFIT....

    OP its not a Pak file its an APK file just sayin'


    -=Jason=-
  3. altGRAF
    Offline

    altGRAF New Member

    Joined:
    Apr 9, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    LOL! Thanks. Sorry a bit too many beers early in the day! Thanks for the other workaround!
  4. gotta have that funk
    Offline

    gotta have that funk New Member

    Joined:
    Dec 18, 2009
    Messages:
    870
    Likes Received:
    0
    Trophy Points:
    0
    my goodness. none of this is necessary.

    if all you're trying to change is pictures in the framework you can never mess up.

    all you keep in the frameworks theme folder is the res/drawable-hdpi folder and make sure theres no .xml files in it. the names of the icons never change, they're the same for every device. no rom changes them. no theme changes them. they never change.

    example:

    if i want to change the battery on ANY rom, with ANY theme, 2.0 2.0.1 or 2.1...all you change is the 14 icons that the battery uses:

    stat_sys_battery_0
    stat_sys_battery_10
    stat_sys_battery_20
    stat_sys_battery_40
    stat_sys_battery_60
    stat_sys_battery_80
    stat_sys_battery_100
    stat_sys_battery_charge_anim0
    stat_sys_battery_charge_anim1
    stat_sys_battery_charge_anim2
    stat_sys_battery_charge_anim3
    stat_sys_battery_charge_anim4
    stat_sys_battery_charge_anim5
    stat_sys_battery_unknown

    thats it. its impossible to mess up.

    if you want to change the status bar all you need are the icons you want to change...no xml files, nothing but the images you want to replace should be in the drawable-hdpi...i could use a theme for 2.0.1 and in 2 minutes could have it on 2.1.

    just stop overthinking metamorph. if you just want pictures changed, you can do it yourself, just put it together. anything in the drawable-hdpi can be changed and everything in drawable-hdpi is all you need.
  5. Jonny Kansas
    Offline

    Jonny Kansas Premium Member Premium Member

    Joined:
    Jan 21, 2010
    Messages:
    2,686
    Likes Received:
    10
    Trophy Points:
    0
    Location:
    Michigan's Upper Peninsula
    Lol...here's how I do it...

    http://www.droidforums.net/forum/droid-hacks/29287-metamorph-wont-apply-framework-res-ese53-noob-guide-adb-pull-push-theming.html

    Sent from my Droid using Tapatalk
  6. altGRAF
    Offline

    altGRAF New Member

    Joined:
    Apr 9, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Gotta have that funk; Thats exactly what I'm doing man! And it doesnt apply it. I'm not messing with any XML just that folder and the png in question. Just like making a theme for summerboard. However it fails to apply it. However I have not tried with the /SDCARD/ for the second field.

    Even then, simply dragging a apk file from my desktop after i just got done editing it, seems a hell of a lot faster than launching metamorph. Considering I'm working a theme I will be testing a lot...

    Thanks for the replies and the help guys!
  7. gotta have that funk
    Offline

    gotta have that funk New Member

    Joined:
    Dec 18, 2009
    Messages:
    870
    Likes Received:
    0
    Trophy Points:
    0
    what do you mean?
  8. altGRAF
    Offline

    altGRAF New Member

    Joined:
    Apr 9, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    changing the path below framework-res.apk from /system/framework/ to /sdcard/ as suggested by Flomaster.
  9. gotta have that funk
    Offline

    gotta have that funk New Member

    Joined:
    Dec 18, 2009
    Messages:
    870
    Likes Received:
    0
    Trophy Points:
    0
    it has to be /system/framework/ for it to work, that part he posted was for copying it from the sdcard back to system/framework/ in adb..framework-res.apk isnt on the sdcard...
  10. Flomaster
    Offline

    Flomaster Premium Member Premium Member

    Joined:
    Jan 14, 2010
    Messages:
    1,073
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    East Texas
    gotta have that funk

    when trying to apply a lockscreen theme via MM it would not work I had to apply the theme to my framework-res.apk that resided in my sdcard. that is for those using CM 5.0.5.7 not sure about others roms. but I think with the new ese81 roms you can't MM framework-res.apk while the phone is on.

    -=jason=-
  11. thebowers
    Offline

    thebowers Premium Member Theme Developer Premium Member

    Joined:
    Nov 24, 2009
    Messages:
    2,548
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Iowa
    Many of the 2.1 bases have this issue of not applying the theme to framework. The work arounds have been listed in many places. With either doing it on the PC or moving to sdcard to theme it. Maybe we should all just make update.zip themes instead of MM ones!!!
  12. altGRAF
    Offline

    altGRAF New Member

    Joined:
    Apr 9, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Yeah as a new comer to android (Got my droid yesterday) I'm still just a noob to the platform. I've tried every way possible and MM will not patch the framework. So I guess I'll just use the workaround in the OP.

    I wish there were just an simple repository for kernals, tweaks and themes with the software to apply them to the phone.
  13. altGRAF
    Offline

    altGRAF New Member

    Joined:
    Apr 9, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    [​IMG]

    Heres a little snapshot of what I've hacked up so far. I'll be releasing that widget skin when I complete a few different font/color packages.
  14. n6oli147
    Offline

    n6oli147 New Member

    Joined:
    Apr 8, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Wow!
    Thanks for the info and the link to the fantastic Android Commander program.
    It couldn't get any easier than this!
    I was doing it the old fashion way, but now I can mod away with just a few clicks.
    Thank you!
  15. jed607
    Offline

    jed607 New Member

    Joined:
    Apr 2, 2010
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    I'd just like to say to the OP that you're awesome. I now have bugless beast v1.0 ese81 running with full smoked glass blue theme $$$
  16. altGRAF
    Offline

    altGRAF New Member

    Joined:
    Apr 9, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    No problem! You're very welcome!

    Very nice. Glad you got it the way you wanted :) Good luck!

    I no longer have a droid... I couldn't resist the incredible. dancedroid
  17. jed607
    Offline

    jed607 New Member

    Joined:
    Apr 2, 2010
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    How did you change? Did you just buy the incredible at retail cost? What are you going to do with your droid now?? :)
  18. altGRAF
    Offline

    altGRAF New Member

    Joined:
    Apr 9, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Luck my man. I had canceled my contract with AT&T due to them constantly f'ing up my bill. So I got the Droid. Well the Incredible came out within the 30 days of my purchase of the Droid, and since they're the same price all I had to do is pay a $35 re-stocking fee, I could have had the Incredible drop-shipped and they would have waived the $35 fee but who is going to wait? :icon_ banana:
Search tags for this page
android framework corrupted
,
auto restart android system framework-res.apk
,
droid incredible framework crash
,
fix res framework android
,
fix, framework.apk
,

framework-res.apk crash

,
how to fix missing frameworks on android 2.3.6
,
how to fix my droid x2 for my games crashes