Overloaded function.
is_dex(path: str) -> bool
Check if the file given in parameter is a DEX
is_dex(raw: collections.abc.Sequence[int]) -> bool
Check if the raw data given in parameter is a DEX
Overloaded function.
version(file: str) -> int
Return the DEX version of the file given in parameter
version(raw: collections.abc.Sequence[int]) -> int
Return the DEX version of the raw data given in parameter
Overloaded function.
parse(filename: str) -> Optional[lief._lief.DEX.File]
Parse the given filename and return a File
object
parse(raw: collections.abc.Sequence[int], name: str = '') -> Optional[lief._lief.DEX.File]
Parse the given raw data and return a File
object
parse(obj: Union[io.IOBase | os.PathLike], name: str = '') -> Optional[lief._lief.DEX.File]
Bases: Object
DEX File representation
Iterator over Dex Class
Iterator over Dex Field
Check if a class with a name given in parameter exists
Dex File Header
Bases: object
Iterator over lief._lief.DEX.Class
Bases: object
Iterator over lief._lief.DEX.Field
Bases: object
Iterator over lief._lief.DEX.Method
Bases: object
Iterator over lief._lief.DEX.Prototype
Bases: object
Bases: object
Iterator over lief._lief.DEX.Type
Original location of the dex file
Dex MapList
Iterator over Dex Method
Name of the dex file
Iterator over Dex Prototype
Original raw file
Save the original file into the file given in first parameter
Iterator over Dex strings
Iterator over Dex Type
Dex version
Bases: Object
DEX Header
Classess identifiers
Raw data. Should be align on 32-bits
Endianness tag. Should be ENDIAN_CONSTANT
Fields identifiers
Size of the current DEX file
Size of this header. Should be 0x70
Link (raw data)
Magic value
Offset from the start of the file to the map item
Methods identifiers
Number of classes in the current DEX
Number of methods in the current DEX
Prototypes identifiers
String identifiers
Type identifiers
Bases: Object
DEX Method representation
List of ACCESS_FLAGS
Dalvik Bytecode as a list of bytes
Class
associated with this method
Offset to the Dalvik Bytecode
Check if the given ACCESS_FLAGS
is present
True if a class is associated with this method
Original DEX file index of the method
Insert de-optimization information
True if the method is a virtual (not private, static, final, constructor)
Method’s name
Prototype
of this method
Bases: Object
DEX Field representation
List of ACCESS_FLAGS
Class
associated with this field
Check if the given ACCESS_FLAGS
is present
True if a class is associated with this field
Original DEX file index of the field
True if the field is static
Field’s name
Type
of this field
Bases: Object
DEX Class representation
List of ACCESS_FLAGS
De-optimize information
Iterator over Field
in this class
Mangled class name (e.g. Lcom/example/android/MyActivity;
)
Iterator over Field
(s) having the given name
Iterator over Method
(s) having the given name
Check if the given ACCESS_FLAGS
is present
True if the current class extends another one
Original index in the DEX class pool
Bases: object
Iterator over lief._lief.DEX.Field
Bases: object
Iterator over lief._lief.DEX.Method
Bases: object
Iterator over lief._lief.DEX.Field
Bases: object
Iterator over lief._lief.DEX.Method
Iterator over Method
implemented in this class
Class name (e.g. MyActivity
)
Package Name (e.g. com.example.android
)
Class
parent class
Demangled class name (e.g. com.example.android.MyActivity
)
Original filename
Bases: Object
DEX CodeInfo representation
Bases: Object
DEX Prototype representation
Bases: object
Iterator over lief._lief.DEX.Type
Iterator over parameters Type
Type
returned
Bases: Object
DEX Type representation
Bases: Enum
Bases: Enum
If the current type is an array, return its dimension otherwise 0
TYPES
of this object
Underlying type of the array
Depending on the TYPES
, return Class
or PRIMITIVES
or array
Bases: Object
DEX MapList representation
Check if the given TYPES
is present
Bases: object
Iterator over lief._lief.DEX.MapItem
Iterator over MapItem
Bases: Object
DEX MapItem representation
Bases: Enum
Offset from the start of the file to the items in question
count of the number of items to be found at the indicated offset
TYPES
of the item
Bases: Enum