AXMLPrinter2 - Convert Android binary XML to human-readable XML

Search This thread

Overloaded

Senior Member
Apr 23, 2009
503
82
That's why xml needs other file to work, you have to get apk, xml isn't enough :/

What is your xml file name and from which app is it??

I want to edit status_bar.xml from SystemUI.apk

I can open and edit the AndroidManifest.xml file from the SystemUI.apk but i can't seem to open or edit the status bar file :(
 

Actura

Senior Member
Dec 30, 2010
651
220
Bogor
Realme 9 5G SE
OnePlus Nord CE 3
i have a problem when i launched a command like in the first page, the xml files won't decompiled or converted , the *.txt files that converted just had this lines on it
Code:
<?xml version="1.0" encoding="utf-8"?>
where is the other lines ? :confused:

note : i'm trying to open *.xml on browser.apk
 

funeral666

Member
Sep 3, 2007
29
5
Fuvahmulah
I'm getting the same problem when i'm trying to edit status_bar.xml file.
I only get this

<?xml version="1.0" encoding="utf-8"?>

no other lines. Anyone found a solution?
 

jackfrost3821

Senior Member
Oct 5, 2010
356
104
Sacramento, CA
I have extracted whole framework-res.apk When I run axmlprinter2 from \apk_manager_4.9\projects\framework-res.apk\res\layout I get nothing more than :

<?xml version="1.0" encoding="utf-8"?> :(
 
I have a problem with this.
When I try to run it I get this
Code:
C:\Users\Username\Desktop\APP Modification\Project\Statusbar>java -jar AXMLPrinter2.
jar status_bar.xml > status_bar.txt
java.lang.ArrayIndexOutOfBoundsException: 180
        at android.content.res.StringBlock.getShort(StringBlock.java:231)
        at android.content.res.StringBlock.getString(StringBlock.java:91)
        at android.content.res.AXmlResourceParser.getName(AXmlResourceParser.jav
a:140)
        at test.AXMLPrinter.main(AXMLPrinter.java:56)
Got any help?
 

Tefel

New member
Aug 25, 2012
1
0
when i read xml files i get ID's
android:label="@7F090014"
android:icon="@7F020061"

how can i check what String it involve?

i want to get 4ex:
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"

or just names from resources:
ic_launcher.png
name of application

Is it possible? How PackageManager makes it?
 

And42

New member
Sep 17, 2012
1
0
Moscow
My version

Hello. I tried this app, but it can't normally convert text with Japanese. Also indents are quite awfull. I modified the app and now decoded file looks like this:
Example.jpg

Download link: View attachment AXMLPrinter2.jar
New command line is: java -jar AXMLPrinter2.jar "path to file" "write to file"
Example: java -jar AXMLPrinter2.jar "C:\file.xml" true
Result file will be: "C:\file.xml.normal"
I hope you'll like it :)
 
Last edited:

Avitohol

Senior Member
Jan 3, 2014
171
75
Varna
Hi mates,

I've got a problem with viewing .xml files inside an .apk file.
I tried to decompile whole SamsungIME.apk file from deodexed XXLTC ROM but without success. Just few .xml files were decompiled correct. The others were missed. Then I've tried to extract just a .xml file with ZIP and tried to decompile it with AXMLPrinter2.jar using:
c:\and_test\java -jar AXMLPrinter2.jar compiled_file.xml > decompiled_file.txt
The result was again awful like reported few posts back.

Just 1 row in new file.
<?xml version="1.0" encoding="utf-8"?>
And the rest part of file is missing.

Please somebody help and tell how to decompile cerrect .xml files.
THANKS in advance.

... or if somebody can fully decompile SamsungIME.apk and send me it in .zip will be helpful (even it won't solve the problem)
Thanks again.

Here is the file for decompiling.
 

Attachments

  • SamsungIME.apk
    7 MB · Views: 36

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    I've been poking around HTC's key.apk and HTC_CIME.apk in the hopes of somehow finding a way to activate the XT9 functionality (aka "Compact qwerty" and "20-key"). Still working on that. In the process, I found a neat little java app called AXMLPrinter2 which as the title suggests, converts Android's binary XML files back to human-readable XML. Take a look:

    Code:
    c:\and_test\java -jar AXMLPrinter2.jar p1220_symbol_sip.xml > p1220_symbol_sip.txt
    Contents of p1220_symbol_sip.txt said:
    <?xml version="1.0" encoding="utf-8"?>
    <keyboard
    width="53.0px"
    hgap="0.0px"
    vgap="0.0px"
    height="55.0px"
    keyTextSize="24.0px"
    popupTextSize="32.0px"
    accentPage="4"
    keyboardBackground="@7F020074"
    keyboardPadding="0,2,0,4"
    functionKeyBackground="@7F020032"
    commonKeyBackground="@7F020031"
    pageKeyBackground="@7F02008A"
    >
    <row
    >
    <key
    codes="0x0028,0x0040,0x005E,-14"
    label="("
    hgap="1.0px"
    leftEdge="true"
    popupCharacters="@7F08006B"
    popupDelay="0"
    accentType="3"
    alignIndex="0"
    >
    </key>

    ...

    Edit: there's supposed to be tabbing but xda forum code stripped em.
    1
    good question. anyone?

    yea i answered this in another thread .. lemme go look for my answer ;)

    EDIT: they talk about it here