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 Summary
Modifier and TypeMethodDescriptionint
Get the computed checksum.byte[]
Get the computed signature.int
Convenience method.int
Convenience method.int
int
byte[]
getData()
Retrieve the bytes of the underlyingclasses?.dex
file.int
int
Get the endianness of this file.int
Get the header provided file checksum.int
Get the header provided file size for this DEX file.byte[]
Get the header provided SHA-1 file signature.int
int
int
Get the size of header.int
int
getMap()
Get a map object for this file.int
int
Convenience method.int
Convenience method.int
int
Retrieve the owner DEX unit.int
int
int
int
int
int
int
Get the DEX version number.
-
Method Details
-
getData
byte[] getData()Retrieve the bytes of the underlyingclasses?.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:
-