Interface IDexFile


public interface IDexFile
Representation of a single classesX.dex file of an APK. Those objects are indicative and contains, e.g. header information of individual DEX files of an APK. They are managed and can be retrieved by their owner DEX unit.
  • Method Details

    • getData

      byte[] getData()
      Retrieve the bytes of the underlying classes?.dex file.
      Returns:
    • getOwnerUnit

      IDexUnit getOwnerUnit()
      Retrieve the owner DEX unit.
      Returns:
    • getVersion

      int getVersion()
      Get the DEX version number.
      Returns:
    • getHeaderSize

      int getHeaderSize()
      Get the size of header.
      Returns:
    • getEndianness

      Endianness getEndianness()
      Get the endianness of this file. Currently, all DEX files use a little-endian byte ordering.
      Returns:
    • getExpectedFileSize

      int getExpectedFileSize()
      Get the header provided file size for this DEX file.
      Returns:
    • getExpectedChecksum

      int getExpectedChecksum()
      Get the header provided file checksum.
      Returns:
    • getActualChecksum

      int getActualChecksum()
      Get the computed checksum. It may differ from the expected one.
      Returns:
    • getExpectedSignature

      byte[] getExpectedSignature()
      Get the header provided SHA-1 file signature.
      Returns:
    • getActualSignature

      byte[] getActualSignature()
      Get the computed signature. It may differ from the expected one.
      Returns:
    • getLinkSectionSize

      int getLinkSectionSize()
    • getLinkSectionOffset

      int getLinkSectionOffset()
    • getMapOffset

      int getMapOffset()
    • getMap

      IDexMap getMap()
      Get a map object for this file.
      Returns:
    • getStringsPoolSize

      int getStringsPoolSize()
    • getStringsPoolOffset

      int getStringsPoolOffset()
    • getTypesPoolSize

      int getTypesPoolSize()
    • getTypesPoolOffset

      int getTypesPoolOffset()
    • getPrototypesPoolSize

      int getPrototypesPoolSize()
    • getPrototypesPoolOffset

      int getPrototypesPoolOffset()
    • getFieldsPoolSize

      int getFieldsPoolSize()
    • getFieldsPoolOffset

      int getFieldsPoolOffset()
    • getMethodsPoolSize

      int getMethodsPoolSize()
    • getMethodsPoolOffset

      int getMethodsPoolOffset()
    • getClassesPoolSize

      int getClassesPoolSize()
    • getClassesPoolOffset

      int getClassesPoolOffset()
    • getDataSectionSize

      int getDataSectionSize()
    • getDataSectionOffset

      int getDataSectionOffset()
    • getCallSitesPoolSize

      int getCallSitesPoolSize()
      Convenience method. Always return 0 for DEX files version 37-.
      Returns:
    • getCallSitesPoolOffset

      int getCallSitesPoolOffset()
      Convenience method. Always return 0 for DEX files version 37-.
      Returns:
    • getMethodHandlesPoolSize

      int getMethodHandlesPoolSize()
      Convenience method. Always return 0 for DEX files version 37-.
      Returns:
    • getMethodHandlesPoolOffset

      int getMethodHandlesPoolOffset()
      Convenience method. Always return 0 for DEX files version 37-.
      Returns: