Class AndroidManifestXMLReader

java.lang.Object
com.ibm.wala.dalvik.util.AndroidManifestXMLReader

public class AndroidManifestXMLReader extends Object
Read in an extracted AndroidManifest.xml.

The file has to be in the extracted (human readable) XML-Format. You can extract it using the program `apktool`.

Tags and Attributes not known by the Parser are skipped over.

To add a Tag to the parsed ones: You have to extend the enum Tags: All Tags on the path to the Tag in question have to be in the enum. Eventually you will have to adapt the ParserItem of the Parent-Tags and add it to their allowed Sub-Tags.

To add an Attribute to the handled ones: You'll have to extend the Enum Attrs if the Attribute-Name is not yet present there. Then add the Attribute to the relevant Attributes of it's containing Tag.

You will be able to access it using attributesHistory.get(Attr).peek()

TODO: TODO: Handle Info in the DATA-Tag correctly!

Since:
2013-10-13
Author:
Tobias Blaschke <code@tobiasblaschke.de>
  • Constructor Details

    • AndroidManifestXMLReader

      public AndroidManifestXMLReader(File xmlFile)
    • AndroidManifestXMLReader

      public AndroidManifestXMLReader(InputStream xmlFile)