Package: xmltree2xml
xmltree2xmlxmltree2xml convert a compile xmltree from android to classic xmlUsageusage: xmltree2xml [-h] [-n] [-r RESOURCES] [-o OUTPUT_DIR] [-f] file [file ...]

convert android xmltree to classic xml.

positional arguments:
  file                  xmltree file.

options:
  -h, --help            show this help message and exit
  -n, --no-header       do not add an xml header.
  -r RESOURCES, --resources RESOURCES
                        resource file for replace every hexa reference to human redable reference.
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        output directory.
  -f, --rename-file     rename output file with resource name.Input file syntaxthe android xml compile look like thisE: list (line=16)
  A: name="carrier_config_list" (Raw: "carrier_config_list")
    E: pbundle_as_map (line=17)
        E: string-array (line=19)
          A: name="mccmnc" (Raw: "mccmnc")
            E: item (line=20)
              A: value="TEST" (Raw: "TEST")
    E: pbundle_as_map (line=24)
        E: string-array (line=26)
          A: name="mccmnc" (Raw: "mccmnc")
            E: item (line=28)
              A: value=20601
            E: item (line=30)
              A: value=20810
            E: item (line=31)
              A: value=20826
        E: string (line=33)
          A: name="feature_flag_name" (Raw: "feature_flag_name")
            T: 'vvm_carrier_flag_el_telecom'
        E: int (line=34)
          A: name="vvm_port_number_int" (Raw: "vvm_port_number_int")
          A: value=5499
        E: string (line=37)
          A: name="vvm_destination_number_string" (Raw: "vvm_destination_number_string")
            T: '8860'
        E: string (line=38)
          A: name="vvm_type_string" (Raw: "vvm_type_string")
            T: 'vvm_type_omtp_1_3'
    E: pbundle_as_map (line=41)
        E: string-array (line=43)
          A: name="mccmnc" (Raw: "mccmnc")and output look like this<?xml version="1.0" encoding="utf-8"?><listname="carrier_config_list"><pbundle_as_map><string-arrayname="mccmnc"><itemvalue="TEST"/></string-array></pbundle_as_map><pbundle_as_map><string-arrayname="mccmnc"><itemvalue="20601"/><itemvalue="20810"/><itemvalue="20826"/></string-array><stringname="feature_flag_name">vvm_carrier_flag_el_telecom</string><intname="vvm_port_number_int"value="5499"/><stringname="vvm_destination_number_string">8860</string><stringname="vvm_type_string">vvm_type_omtp_1_3</string></pbundle_as_map><pbundle_as_map><string-arrayname="mccmnc"/></pbundle_as_map></list>Resource fileWith resource file the reference@0x7f08013fhas converted to real value@drawable/ic_shortcut_add_contact.#  dump resource file with android sdkaapt2dumpresourceYOUR_APK>resourcefile.txt#xmltree2xmlxmltree2xml-rresourcefile.txtLR.xmltreeWithout<shortcutsxmlns:android="http://schemas.android.com/apk/res/android"><shortcutandroid:icon="@0x7f08013f"android:enabled="true"android:shortcutId="dialer-shortcut-add-contact"android:shortcutShortLabel="@0x7f150287"android:shortcutLongLabel="@0x7f150286"><intentandroid:action="android.intent.action.INSERT"android:data="content://com.android.contacts/contacts"/></shortcut></shortcuts>with<shortcutsxmlns:android="http://schemas.android.com/apk/res/android"><shortcutandroid:icon="@drawable/ic_shortcut_add_contact"android:enabled="true"android:shortcutId="dialer-shortcut-add-contact"android:shortcutShortLabel="@string/dialer_shortcut_add_contact_short"android:shortcutLongLabel="@string/dialer_shortcut_add_contact_long"><intentandroid:action="android.intent.action.INSERT"android:data="content://com.android.contacts/contacts"/></shortcut></shortcuts>LicenseMIT