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

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

  1. Droid Newbie
    ronamadeo's Avatar
    Member #
    18244
    Join Date
    Dec 2009
    Posts
    4
    Phone
    Enter Current Phone Here
    #1

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

    (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.  
     
     
     
  3. Master Droid
    droidman101's Avatar
    Member #
    40871
    Join Date
    Feb 2010
    Posts
    711
    Phone
    DROID
    #2
    Quote Originally Posted by ronamadeo View Post
    (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?
    you have to resign it and flash it to /system/framework/framework-res.apk
  4. Master Droid
    Logan3824's Avatar
    Member #
    32451
    Join Date
    Jan 2010
    Location
    Houston
    Posts
    451
    Liked
    1 times
    Phone
    Droid - Rooted.
    #3
    Quote Originally Posted by droidman101 View Post
    Quote Originally Posted by ronamadeo View Post
    (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?
    you have to resign it and flash it to /system/framework/framework-res.apk

    When you say resign, what do you mean?
  5. Droid Newbie
    ronamadeo's Avatar
    Member #
    18244
    Join Date
    Dec 2009
    Posts
    4
    Phone
    Enter Current Phone Here
    #4
    Quote Originally Posted by droidman101
    you have to resign it and flash it to /system/framework/framework-res.apk
    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.
  6. Beta Team
    es0tericcha0s's Avatar
    Member #
    100371
    Join Date
    Aug 2010
    Location
    Orlando, Fl.
    Posts
    283
    Phone
    OG Droid
    DroidForums.net Theme Developer
    Premium Member
    #5
    -Misunderstood the OP. Sorry. LoL
    Last edited by es0tericcha0s; 12-06-2010 at 12:43 AM.
  7. Droid Newbie
    ronamadeo's Avatar
    Member #
    18244
    Join Date
    Dec 2009
    Posts
    4
    Phone
    Enter Current Phone Here
    #6
    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.
  8. Beta Team
    es0tericcha0s's Avatar
    Member #
    100371
    Join Date
    Aug 2010
    Location
    Orlando, Fl.
    Posts
    283
    Phone
    OG Droid
    DroidForums.net Theme Developer
    Premium Member
    #7
    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.
  9. Droid Newbie
    ronamadeo's Avatar
    Member #
    18244
    Join Date
    Dec 2009
    Posts
    4
    Phone
    Enter Current Phone Here
    #8
    I put an entry for it in public.xml with the next available ID, it still bootlooped. =/
  10. Beta Team
    es0tericcha0s's Avatar
    Member #
    100371
    Join Date
    Aug 2010
    Location
    Orlando, Fl.
    Posts
    283
    Phone
    OG Droid
    DroidForums.net Theme Developer
    Premium Member
    #9
    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.
  11. Master Droid
    kevdog's Avatar
    Member #
    4295
    Join Date
    Nov 2009
    Posts
    722
    Phone
    moto droid
    #10
    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.

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. pro stuck in bootloop
    By blarsen1620 in forum Motorola Droid Pro
    Replies: 5
    Last Post: 12-24-2010, 09:30 AM
  2. Bootloop?
    By gibby540 in forum ChevyNo1
    Replies: 13
    Last Post: 09-24-2010, 02:40 PM
  3. Stuck on bootloop
    By jim2244 in forum Droid Rooted Help
    Replies: 4
    Last Post: 09-21-2010, 09:17 PM
  4. Bootloop Issues
    By Degree in forum Android Tech Support
    Replies: 0
    Last Post: 07-13-2010, 09:34 PM
  5. Bootloop all of a sudden
    By rickt1152 in forum Rescue Squad Help
    Replies: 0
    Last Post: 05-18-2010, 09:06 PM

Search tags for this page

add buttons in for loop android

,

add stock wallpaper to framework-res.apk

,

android boot loop after altering framework

,

boot loop after modifying framework-res.apk

,

droid bionic stuck in reboot loop after replacement framewor

,

framework-res.apk boot loop

,

framework-res.apk causing bootloop after changing

,

framework-res.apk+boot loop

,

phone bootloops when modifying framework apk

,

what to do after adding .xml files in framework.apk

Click on a term to search our site for related topics.
Find us on Google+