Compiling .xml's for system level mods

Discussion in 'Android Custom & Themes' started by crdnilfan, Jan 2, 2010.

  1. kevdog

    kevdog Member

    Joined:
    Nov 14, 2009
    Messages:
    722
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Can you make your changes as above and recompile the kernel?
     
  2. RichStevenson

    RichStevenson Member

    Joined:
    Nov 11, 2009
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Medina, OH
    Ratings:
    +1
    No it runs from a command line. So copy theAXMLPrinter2.jar and whatever .xml file into the same directory, say c:\droid. Then Start|Run|cmd - then type:
    cd \droid
    java -jar AXMLPrinter2.jar filename.xml > file.txt
    Where filename.xml is the name of the .xml file
    And file.txt is whatever name you want to give the text file that will contain the xml contents.
     
  3. RichStevenson

    RichStevenson Member

    Joined:
    Nov 11, 2009
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Medina, OH
    Ratings:
    +1
    No, it can't recompile. I THINK what you can do with this is once you find what you're looking for, say the color of some text, you can convert it to hex and then search for that hex value in a hex editor on the .xml file, change it, and save. Not positive on that though.
     
  4. Topsy

    Topsy Member

    Joined:
    Dec 28, 2009
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Rio Rancho, New Mexico
    Ratings:
    +0
    I've actually got this working recently by making the changes in source code then compiling the framework-res.apk.

    have battery states at 5% increments, too lazy to make 100 png's for 1%.
     
  5. lucas.hohmann

    lucas.hohmann New Member

    Joined:
    Mar 15, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    How did you do that? I've been trying to do some stuff like that but never had sucess.
     
  6. crdnilfan

    crdnilfan Member

    Joined:
    Dec 22, 2009
    Messages:
    207
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    compiled.zip

    I believe this will be helpful. (1-100% .png's)
     
  7. ashkev843

    ashkev843 Member

    Joined:
    Nov 22, 2009
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    The cyanogen rom already has this displayed in 10% increments. I put in my custom battery images and the increments where still overlaying my new images. If you like cyanogen then that is one way to go.
     
  8. Topsy

    Topsy Member

    Joined:
    Dec 28, 2009
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Rio Rancho, New Mexico
    Ratings:
    +0
    I fail to understand why people discussing a hack are constantly told just run this rom over here.

    Yes I know what cyanogen has, no i don't use him rom.
    It's also done in java on his rom, which is more system intensive than an xml edit, but thanks for your input.

    As for the 1-100 % states, i'm not a fan of red myself, but if you include the resources.arc file with that it should work in any compatible (version ese81 i assume) rom.
     
  9. ashkev843

    ashkev843 Member

    Joined:
    Nov 22, 2009
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    I wasn't really directing this at you. More to the op that was looking for 10% increments. I know I was able to edit the framework-res file with my own images and it will show the battery left percentages over top of them......they are not part of the actual image. Thought he might be able to look at the code and .xml files on that rom to help him out with getting what he wants on his.
     

    Attached Files:

  10. woodyman

    woodyman Senior Member
    Developer

    Joined:
    Jan 27, 2010
    Messages:
    1,610
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    Ohio
    Ratings:
    +4
    any progress..?
     
  11. johnny quest

    johnny quest New Member

    Joined:
    Jul 6, 2010
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Port Saint Lucie
    Ratings:
    +0
    here's a question for you, ok lets say I use root explorer and go into the apk that I want to edit, can I make a copy of the xml file save it into another folder. Make a copy of the apk and dump it on my computer. take the copy of the xml and then open lets say notepad++ and type the xml or copy paste it and then change it on my notepad++ when done put that back to the apk file. then sign it over again back to my phone. Is this possible?
     
  12. Lock-N-Load

    Lock-N-Load Member

    Joined:
    Feb 7, 2010
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Westsiiide
    Ratings:
    +0
    I want to do this as well, but I do not think it is as easy as editing the xml file and putting it back. doing so ends up with no battery icons since it makes the xml file invalid.

    I wish there was a simplier way to just edit that file, note the location and addition of the new images - which I can easily put into the right folder in res - and recompile it and place it. that seems not the case.
     
Search tags for this page
7f02000a
,
android xml compiler
,
android xml without recompile
,
compile android xml
,

edit stat sys battery xml

,
how to compile xml file android
,
moding xml android
,
recompile edit xml
,
stat sys battery xml
,
xml compiler for android