Python

Utilities

lief.is_art(*args) bool
lief.is_art(raw: collections.abc.Sequence[int]) bool

Overloaded function.

  1. is_art(path: str) -> bool

Check if the file given in parameter is an ART

  1. is_art(raw: collections.abc.Sequence[int]) -> bool

Check if the raw data given in parameter is a ART

lief.ART.version(*args) int
lief.ART.version(raw: collections.abc.Sequence[int]) int

Overloaded function.

  1. version(file: str) -> int

Return the ART version of the file given in parameter

  1. 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_VERSIONS associated 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: io.IOBase | os.PathLike, name: str = '') lief._lief.ART.File | None

Overloaded function.

  1. parse(filename: str) -> Optional[lief._lief.ART.File]

Parse the given filename and return an File object

  1. parse(raw: collections.abc.Sequence[int], name: str = '') -> Optional[lief._lief.ART.File]

Parse the given raw data and return an File object

  1. parse(obj: Union[io.IOBase | os.PathLike], name: str = '') -> Optional[lief._lief.ART.File]


File

class lief.ART.File

Bases: Object

ART File representation

property header lief.ART.Header

Return the ART Header