#android #xml #decode #decoder

axmldecoder

Decode Android’s binary XML format

4 releases (breaking)

Uses new Rust 2021

0.4.0 Oct 29, 2021
0.3.0 Jun 13, 2021
0.2.0 Jun 10, 2021
0.1.0 Jun 6, 2021

#63 in #android

MIT/Apache

57KB
2K SLoC

axmldecoder

Crates.io

Decoder for the binary XML format used by Android.

This library implements the minimal amount of parsing required obtain useful information from a binary AndroidManifest.xml. It does not support parsing generic binary XML documents and does not have support for decoding resource identifiers. In return, the compiled footprint of the library is much lighter as it does not have to link in Android's resources.arsc file.

For a full-featured Rust binary XML parser, abxml-rs is highly recommended if it is acceptable to link a 30MB resources.arsc file into your compiled binary.

Please file an issue with the relevant binary AndroidManifest.xml if if any issues are encountered.


lib.rs:

Decoder for the binary XML format used by Android.

This library implements the minimal amount of parsing required obtain useful information from a binary AndroidManifest.xml. It does not support parsing generic binary XML documents and does not have support for decoding resource identifiers. In return, the compiled footprint of the library is much lighter as it does not have to link in Android's resources.arsc file.

For a full-featured Rust binary XML parser, abxml-rs is highly recommended if it is acceptable to link a 30MB resources.arsc file into your compiled binary.

Please file an issue with the relevant binary AndroidManifest.xml if if any issues are encountered.

Dependencies

~2.5MB
~59K SLoC

{a