This is just an experimental code to convert between android xml formats (abx and xml). functionality is not guaranteed.
abx2xml
andxml2abx
binaries found generally in /system/bin/ of android devices is just a shell script that acts as a wrapper for executing abx.jar. It depends on Java and app_process, making it reliant on Android’s runtime environment. Since it invokes Java code, it cannot run independently in environments where Java isn’t available and also the overhead of launching a Java process adds extra execution time.
- This
abx2xml
andxml2abx
binary performs the same function—converting between ABX and XML but in a fully standalone manner. Unlike default android binaries ,this binary does not require Java, or abx.jar to function.
- Clone the Branch.
git clone --branch refactor https://github.com/rhythmcache/android-xml-converter && cd android-xml-converter && mkdir build && cd build
cmake ..
make
- To enable pretty-printing in abx2xml (automatically re-indents XML output):
cmake .. -DPRETTY_PRINT=ON
make
-
Similar to default abx2xml and xml2abx
-
abx2xml [-i] input [output]
-
xml2abx [-i] [--collapse-whitespaces] input [output]
BinaryXmlPullParser.java BinaryXmlSerializer.java