public class ApkParser
extends java.lang.Object
Parses the 'compressed' binary form of Android XML docs, such as AndroidManifest.xml, that are contained within an APK file.
| Modifier and Type | Field and Description |
|---|---|
static int |
endDocTag |
static int |
endTag |
static int |
startTag |
| Constructor and Description |
|---|
ApkParser() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
compXmlString(byte[] xml,
int sitOff,
int stOff,
int strInd) |
java.lang.String |
compXmlStringAt(byte[] arr,
int strOff) |
java.lang.String |
decompressXML(byte[] xml)
Returns the result of decompression of XML as a
String. |
int |
LEW(byte[] arr,
int off)
LEW (Little-Endian Word)
|
public static int endDocTag
public static int startTag
public static int endTag
public java.lang.String decompressXML(byte[] xml)
String.xml - A Byte[] containing the XML to be decompressed.String containing the result of the decompression action.public java.lang.String compXmlString(byte[] xml,
int sitOff,
int stOff,
int strInd)
xml - sitOff - stOff - strInd - public java.lang.String compXmlStringAt(byte[] arr,
int strOff)
public int LEW(byte[] arr,
int off)
arr - The Byte[] to process.off - An int value indicating the offset from which the return value should be
taken.int Little Endian 32 bit word taken from the input Byte[] at the
int offset provided.