DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18

Thread: [Howto] Framework-Res Crash Fix

  1. Junior Droid
    altGRAF's Avatar
    Member #
    57037
    Join Date
    Apr 2010
    Posts
    11
    Phone
    Motorola Droid
    #1

    [Howto] Framework-Res Crash Fix

    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.

    >

    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 by altGRAF; 04-09-2010 at 03:38 PM.
  2. Beta Team
    Flomaster's Avatar
    Member #
    27560
    Join Date
    Jan 2010
    Location
    East Texas
    Posts
    1,073
    Liked
    2 times
    Twitter
    _Flomaster
    Phone
    DROOOOOOOOOOOiid
    Premium Member
    #2
    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. Junior Droid
    altGRAF's Avatar
    Member #
    57037
    Join Date
    Apr 2010
    Posts
    11
    Phone
    Motorola Droid
    #3
    LOL! Thanks. Sorry a bit too many beers early in the day! Thanks for the other workaround!
  4. Master Droid
    gotta have that funk's Avatar
    Member #
    16788
    Join Date
    Dec 2009
    Posts
    870
    Phone
    Thunderbolt
    #4
    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.

    Das B.A.M.F. @ 1.4Ghz
  5. Rescue Squad
    Jonny Kansas's Avatar
    Member #
    29890
    Join Date
    Jan 2010
    Location
    Michigan's Upper Peninsula
    Posts
    2,684
    Liked
    13 times
    Twitter
    Jonny_Ks
    Phone
    Galaxy S4
    Premium Member
    #5

    Re: [Howto] Framework-Res Crash Fix

    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
    Ran into a little snag? Have a question? Think your phone is only good to hold down rogue papers in a wind storm now? Visit the Rescue Squad!
  6. Junior Droid
    altGRAF's Avatar
    Member #
    57037
    Join Date
    Apr 2010
    Posts
    11
    Phone
    Motorola Droid
    #6
    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. Master Droid
    gotta have that funk's Avatar
    Member #
    16788
    Join Date
    Dec 2009
    Posts
    870
    Phone
    Thunderbolt
    #7
    Quote Originally Posted by altGRAF View Post
    However I have not tried with the /SDCARD/ for the second field.
    what do you mean?

    Das B.A.M.F. @ 1.4Ghz
  8. Junior Droid
    altGRAF's Avatar
    Member #
    57037
    Join Date
    Apr 2010
    Posts
    11
    Phone
    Motorola Droid
    #8
    Quote Originally Posted by gotta have that funk View Post
    Quote Originally Posted by altGRAF View Post
    However I have not tried with the /SDCARD/ for the second field.
    what do you mean?
    changing the path below framework-res.apk from /system/framework/ to /sdcard/ as suggested by Flomaster.
  9. Master Droid
    gotta have that funk's Avatar
    Member #
    16788
    Join Date
    Dec 2009
    Posts
    870
    Phone
    Thunderbolt
    #9
    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...

    Das B.A.M.F. @ 1.4Ghz
  10. Beta Team
    Flomaster's Avatar
    Member #
    27560
    Join Date
    Jan 2010
    Location
    East Texas
    Posts
    1,073
    Liked
    2 times
    Twitter
    _Flomaster
    Phone
    DROOOOOOOOOOOiid
    Premium Member
    #10
    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=-
Page 1 of 2 1 2 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. HowTo play 3gp voice? HowTo convert 2 mp3? VoiceRecorder or What?
    By Mel_3 in forum Android General Discussions
    Replies: 9
    Last Post: 09-27-2013, 12:13 AM
  2. Browser crash
    By MarkDF in forum Android Tech Support
    Replies: 21
    Last Post: 08-09-2011, 09:30 AM
  3. Email crash
    By allenbirnbach in forum Android Tech Support
    Replies: 1
    Last Post: 05-21-2010, 02:26 AM
  4. Messaging Crash
    By Brightersiderock in forum Android Tech Support
    Replies: 1
    Last Post: 03-15-2010, 12:45 AM
  5. Crash, Crash, Crash
    By swaldrop in forum Android Tech Support
    Replies: 18
    Last Post: 11-08-2009, 08:13 PM

Search tags for this page

android framework crash

,
android framework crashing
,
chrashed rooted phone fix
,
corrupted framework-res.apk
,
corrupted framework.apk
,

framework android crash

,

framework-res.apk corrupted

,
framework-res.apk crash
,
how fix framework res.apk
,
how to fix android framework
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+