I get a bootloop when I try to add a new button background to framework-res.apk. Why?

Discussion in 'Android Hacks and Help' started by ronamadeo, Nov 22, 2010.

  1. ronamadeo
    Offline

    ronamadeo New Member

    Joined:
    Dec 22, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    (I'm new at this, any help, or even wild guesses, would be appreciated)

    I'm using Daneshm90's (very awesome) APK Manager to mess around with my framework-res.apk file. I've sucessfully reskinned some pngs and changed some xml files and stuff like that. But any time I try to add a file to framework-res I get a bootloop.

    So why does the following cause a bootloop?

    1) Decompile Framework-res.apk

    2) Make a copy of res\drawable\btn_default_small.xml and rename it btn_default_small2.xml

    3) Change the background of something to android:background="@drawable/btn_default_small2"

    4) Compile\flash to phone etc, watch it bootloop

    I can edit existing files just fine, but whenever I try to add and use a new file everything grinds to a halt, even if its just a copy of a working 'stock' file. What am I missing? Is there a list of files somewhere I need to add my new xml file to? Should I be building from source instead of using apk manager?
     
  2. droidman101
    Offline

    droidman101 Member

    Joined:
    Feb 25, 2010
    Messages:
    711
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    you have to resign it and flash it to /system/framework/framework-res.apk
     
  3. Logan3824
    Offline

    Logan3824 Member

    Joined:
    Jan 28, 2010
    Messages:
    449
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston
    Ratings:
    +0

    When you say resign, what do you mean?
     
  4. ronamadeo
    Offline

    ronamadeo New Member

    Joined:
    Dec 22, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I guess I have no way of knowing if it's signed correctly, but I tried signing it and it still bootlooped.

    Thank you for replying though. This question just sinks to the bottom when I ask at XDA.
     
  5. es0tericcha0s
    Offline

    es0tericcha0s Premium Member Theme Developer Premium Member

    Joined:
    Aug 6, 2010
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Orlando, Fl.
    Ratings:
    +0
    -Misunderstood the OP. Sorry. LoL
     
    Last edited: Dec 6, 2010
  6. ronamadeo
    Offline

    ronamadeo New Member

    Joined:
    Dec 22, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I'm not trying to edit the 9.png files yet. I'm trying to add a new xml file to the framework. I need to add a new background, not modify an existing one.
     
  7. es0tericcha0s
    Offline

    es0tericcha0s Premium Member Theme Developer Premium Member

    Joined:
    Aug 6, 2010
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Orlando, Fl.
    Ratings:
    +0
    My guess then would be that you need to add something to the Public.XML found in the Values folder (only available once you decompile framework-res) to let it know that you added something to the mix.
     
  8. ronamadeo
    Offline

    ronamadeo New Member

    Joined:
    Dec 22, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I put an entry for it in public.xml with the next available ID, it still bootlooped. =/
     
  9. es0tericcha0s
    Offline

    es0tericcha0s Premium Member Theme Developer Premium Member

    Joined:
    Aug 6, 2010
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Orlando, Fl.
    Ratings:
    +0
    Sorry. I'm in the middle of learning this stuff too. I found that you also will need to add the button or whatever too and add the button in the public xml. Otherwise it's calling for something it can't find. At least that is my limited understanding of how it works.
     
  10. kevdog
    Offline

    kevdog Member

    Joined:
    Nov 14, 2009
    Messages:
    722
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Here is my understanding.

    I don't think you can add new things to the xml files -- simply replace them. You would have to compile from source to do what you want.

    Using apkmanager is how I did things in the past. However what I did with the newly compiled framework.apk was to simply use winrar to drag the changed xml files to an unmodified framework-res.apk -- that way I never ran into any snags with signatures as I found apk manager's signing ability to be buggy for me.

    And remember -- if using apk manager -- you can not work with a themed framework-res.apk since likely the themed apk will not compile -- you need to work with a stock framework-res.apk for what ROM you are using.
     
Search tags for this page

boot loop after changing framework res.apk

,

boot loop after changing framework-res.apk

,

bootloop after change background

,

bootloop cause by framework

,

framework-res.apk boot loop

,

galaxy s3 framework-res.apk boot loop