AXMLParser

An AXMLParser compatible with aapt2

License

License

GroupId

GroupId

com.shazam
ArtifactId

ArtifactId

axmlparser
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

AXMLParser
An AXMLParser compatible with aapt2
Project URL

Project URL

https://github.com/shazam/axmlparser
Source Code Management

Source Code Management

https://github.com/shazam/axmlparser

Download axmlparser

How to add to project

<!-- https://jarcasting.com/artifacts/com.shazam/axmlparser/ -->
<dependency>
    <groupId>com.shazam</groupId>
    <artifactId>axmlparser</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.shazam/axmlparser/
implementation 'com.shazam:axmlparser:1.0'
// https://jarcasting.com/artifacts/com.shazam/axmlparser/
implementation ("com.shazam:axmlparser:1.0")
'com.shazam:axmlparser:jar:1.0'
<dependency org="com.shazam" name="axmlparser" rev="1.0">
  <artifact name="axmlparser" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.shazam', module='axmlparser', version='1.0')
)
libraryDependencies += "com.shazam" % "axmlparser" % "1.0"
[com.shazam/axmlparser "1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.google.guava : guava jar 19.0
org.apache.commons : commons-lang3 jar 3.4

Project Modules

There are no modules declared in this project.

AXML parser

An updated version of AXMLParser, compatible with aapt2.

The library allows you to parse binary XML (such as the AndroidManifest.xml) from a generated APK file.

The current implementation is based on the android4me project, on the work of Ryszard Wiśniewski and Dmitry Skiba: https://code.google.com/archive/p/android4me/

Gradle dependency

dependencies {
    compile 'com.shazam:axmlparser:1.0'
}

Example

AXMLParser parser = new AXMLParser(apkFileInputStream);
int eventType = parser.getType();
while (eventType != AXMLParser.END_DOCUMENT) {
    String parserName = parser.getName();
    boolean isManifest = "manifest".equals(parserName);
    [...]
    eventType = parser.next();
}
com.shazam

Shazam

Versions

Version
1.0