Python¶
Utilities¶
- lief.is_art(*args) bool¶
- lief.is_art(raw: collections.abc.Sequence[int]) bool
Overloaded function.
is_art(path: str) -> bool
Check if the file given in parameter is an ART
is_art(raw: collections.abc.Sequence[int]) -> bool
Check if the raw data given in parameter is an ART
- lief.ART.version(*args) int¶
- lief.ART.version(raw: collections.abc.Sequence[int]) int
Overloaded function.
version(file: str) -> int
Return the ART version of the file given in parameter
version(raw: collections.abc.Sequence[int]) -> int
Return the ART version of the raw data given in parameter
- lief.ART.android_version(art_version: int) lief.Android.ANDROID_VERSIONS¶
Return the
ANDROID_VERSIONSassociated with the given ART version
Parser¶
- lief.ART.parse(*args) lief.ART.File | None¶
- lief.ART.parse(raw: collections.abc.Sequence[int], name: str = '') lief._lief.ART.File | None
- lief.ART.parse(obj: str | io.IOBase | os.PathLike | bytes | list[int], name: str = '') lief._lief.ART.File | None
- lief.ART.parse(raw: collections.abc.Sequence[int], name: str = '') lief._lief.ART.File | None
Overloaded function.
parse(filename: str) -> Optional[lief._lief.ART.File]
Parse the given filename and return an
Fileobjectparse(raw: collections.abc.Sequence[int], name: str = '') -> Optional[lief._lief.ART.File]
Parse the given raw data and return an
Fileobjectparse(obj: Union[str | io.IOBase | os.PathLike | bytes | list[int]], name: str = '') -> Optional[lief._lief.ART.File]
File¶
- class lief.ART.File¶
Bases:
ObjectART File representation
- property header lief.ART.Header¶
Return the ART
Header
Header¶
- class lief.ART.Header¶
Bases:
ObjectART Header representation
- property boot_image_begin int¶
- property boot_image_size int¶
- property boot_oat_begin int¶
- property boot_oat_size int¶
- property compile_pic bool¶
- property data_size int¶
- property image_begin int¶
- property image_roots int¶
- property image_size int¶
- property magic list[int]¶
- property nb_methods int¶
- property nb_sections int¶
- property oat_checksum int¶
- property oat_data_end int¶
- property oat_file_begin int¶
- property oat_file_end int¶
- property patch_delta int¶
- property pointer_size int¶
- property storage_mode lief.ART.STORAGE_MODES¶
- property version int¶