Class ApkXmlResourceHelper

java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.XmlResourceHelper
com.pnfsoftware.jeb.core.units.code.android.ApkXmlResourceHelper
Direct Known Subclasses:
ApkManifestHelper

public class ApkXmlResourceHelper extends XmlResourceHelper
This helper class facilitates access to the data contained in an Android XML resource. In particular, the readAttributeXxx methods allow easy retrieval of attribute values by tag names, throughout the entire document.
  • Field Details

    • androidAttrPrefixes

      protected Set<String> androidAttrPrefixes
      Android XML namespace prefixes used for resource attributes. For standard APKs, there should be just one entry ("android").
  • Constructor Details

    • ApkXmlResourceHelper

      public ApkXmlResourceHelper(IXmlUnit xml)
      Create a manifest helper around the provided manifest unit.
      Parameters:
      xml - XML unit
    • ApkXmlResourceHelper

      public ApkXmlResourceHelper(Document doc)
      Create a manifest helper around the provided low-level XML document object.
      Parameters:
      doc - XML document
  • Method Details