Can't push a new framework

Discussion in 'UltimateDroid' started by Ghost1990, Nov 4, 2010.

  1. Ghost1990

    Ghost1990 New Member

    Joined:
    Nov 4, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Well first off I wanted to say that I'm really new to the phone customization thing, actually just rooted my droid over the weekend and I've had to do like 6-10 sprecoveries already, So I know I make mistakes, but part of the learning process.
    Ok, now I've managed to get my phone all setup with the ROM/ Kernal I want, but now I want to do a little more customizing, before I installed UD i was able to change the carrier name (on the stock ROM) but when I tried to change it on UD using the same process I did before I get a constant boot loop, so I scrapped that idea for a while, than I wanted to change the UD png on the lock screen, So I made a new PNG with the same dimensions as the stock PNG, pushed the framework to the phone using terminal Enumulator, but I still get a boot loop. Any ideas or suggestions?
     
  2. kingpg

    kingpg Member

    Joined:
    Jul 23, 2010
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    your not the only one having that kinda of issue because I tried making mods to Nex Theme on the new UD 1.0.0 and I keep getting boot loops even after properly editing the framework.
     
  3. xkape

    xkape Premium Member
    Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,883
    Likes Received:
    37
    Trophy Points:
    163
    Location:
    OH-IO
    Ratings:
    +37
    Not much of a Terminal user but I do know how to put a framework on a phone. 1st question... how are you incorporating your new png file into the framework? Are you decompiling the framework? Are you just making a new image and merging it into the framework? Also, just an FYI... there are 3 of those images, not just 1. (pulling from memory here).. rotary_land_lock, lockscreen_land and lockscreen
     
  4. Ghost1990

    Ghost1990 New Member

    Joined:
    Nov 4, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I was opening the apk with 7zip like I was told to, to change the carrier id.
    and i was just overwriting the android-logo-mask.png
     
  5. DF Smod

    DF Smod Silver Member

    Joined:
    Apr 23, 2010
    Messages:
    11,454
    Likes Received:
    93
    Trophy Points:
    163
    Ratings:
    +93
    I have edited the framework on UD 1.0.0 through and through with no problems - instead of pushing the framework-res via Terminal I suggest using an update.zip file...if you cannot get ahold of one I can upload one for you this afternoon

    Sent from my Droid
     
  6. xkape

    xkape Premium Member
    Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,883
    Likes Received:
    37
    Trophy Points:
    163
    Location:
    OH-IO
    Ratings:
    +37
    when you open it with 7zip, are you opening it as "open archive"? If not, you should. Also, editing an xml while still zipped up... I can't even do that. You can change the images though. My guess is that you are just opening the zip file and it's breaking the signing of it.
     
  7. czerdrill

    czerdrill Silver Member

    Joined:
    Jan 2, 2010
    Messages:
    4,825
    Likes Received:
    12
    Trophy Points:
    153
    Ratings:
    +12
    that's what i'm thinking too...i've made edits to both images and xml files in UD's framework and have had no issues. somewhere it's being broken and when you push it you're pushing a broken one...as tp76 mentioned maybe an update.zip is the best idea?
     
  8. xkape

    xkape Premium Member
    Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,883
    Likes Received:
    37
    Trophy Points:
    163
    Location:
    OH-IO
    Ratings:
    +37
    By the way, if you want to make an xml edit, the best way would be to decompile it, make your edit and then recompile it. That way nothing gets broken. Images you can just move back and forth with 7zip. (Most images anyway)
     
  9. Ghost1990

    Ghost1990 New Member

    Joined:
    Nov 4, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Ok, so When i have my framework file on the root of the SD card I move it to my desktop, right click -> 7 Zip -> open Archive, then when I find the file(s) I want to edit I copy them to my desktop, edit, save, than copy back to the .apk (kept open, while editing files) and overwrite the existing files in the apk, close .apk, remount SD card to phone, open terminal enumulator execute the following commands
    su
    mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
    cp /sdcard/framework-res.apk /system/framework
    reboot
    than I get the boot loop, than I do a full nandroid restore.

    Can someone help post a link(s) to what I need todo, Like i said I'm really new to all of this, and this is the only method that I know. Someone said something about decompiling the apk, I looked at APK Manager, and was looking at screenshots and one of the options was to sign the apk, but only if it wasn't a system apk, which ones are system? I don't know..
    TP said something about an update.zip, now I know those are really easy to install, how do I set one up? is it just the files and directories I want to update/ overwrite? do I need to do anything special to the zip or is it just a plain ol' zip file
     
  10. xkape

    xkape Premium Member
    Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,883
    Likes Received:
    37
    Trophy Points:
    163
    Location:
    OH-IO
    Ratings:
    +37
    eh I don't know about pthat pulling it to the desktop thing. You open that file up and it's broken. Just decompile the UD, make your xml edites, recompile it and then use 7zip to merge your images in.
     
  11. teddyearp

    teddyearp Senior Member

    Joined:
    Jan 13, 2010
    Messages:
    1,808
    Likes Received:
    12
    Trophy Points:
    83
    Location:
    Pinetop, AZ
    Ratings:
    +13
    Current Phone Model:
    Motorola XT1103 (Nexus 6)
    For what it's worth, any time you edit the framework-res.apk file and do NOT try to apply it via the recovery system either an update.zip as tp76 or manually you are most likely to have the FC's, and random reboots.

    Understand that applying it via an update.zip (as tp76 offered) means that you are applying it while your phone is booted into the recovery system, so for what it's worth, I'll call that auto apply.

    Manually applying here (requires adb, but hey, that should have already been a pre-requisite to modding our android phone, lol):

    Plug your phone in to your computer. Manually boot into your custom recovery. Depending on which custom recovery you have, find and select the option to mount /system. Then push your framework-res.apk to /system/framework/framework-res.apk. Again, using the recovery system's menu's, unmount system. Reboot. Profit.

    Tiny little final note. If you haven't ever used adb, nor thought about using it, theres no time like the present to start, or better yet, before this. You would be suprised how much this little app can do to your phone. root, unroot, fix, un"brick", install, uninstall, push, pull, theme, what? You haven't got it yet, lol?

    good luck
     
  12. DF Smod

    DF Smod Silver Member

    Joined:
    Apr 23, 2010
    Messages:
    11,454
    Likes Received:
    93
    Trophy Points:
    163
    Ratings:
    +93
    Sorry I didn't get back lastnight - here is an update.zip for CW and one for SPR, they are both empty, just place the .apk into the according folder ie the framework-res.apk goes in the system/framework folder and applications go in the system/app folder - and then flash it as an update.zip through recovery with no wipe...the only changes that will take place are the changes you made to the according .apk that was placed in the update.zip...you can use these over and over


    Any questions feel free to ask -
     

    Attached Files: