LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
LIEF::runtime::android::Process Class Reference

This class exposes Android-specific API for the current process. More...

#include <Process.hpp>

Inheritance diagram for LIEF::runtime::android::Process:
Collaboration diagram for LIEF::runtime::android::Process:

Public Types

using properties_t = std::vector<Property>

Static Public Member Functions

static std::string cmdline ()
 Return the content of /proc/cmdline.
static optional< Propertyget_system_property (const std::string &name)
 Return the value of the Android system property with the given name (e.g. ro.build.version.sdk).
static properties_t properties ()
 Get all the system properties.
static constexpr bool classof (const runtime::Process *)
Static Public Member Functions inherited from LIEF::runtime::Process
static int32_t pid ()
 Get the Process ID of the current process.
static uint32_t tid ()
 Get the Thread ID of the current thread.
static constexpr ARCH arch ()
 Return the target architecture of the current process.
static constexpr PLATFORMS platform ()
 Return the target platform of the current process.
static uint32_t page_size ()
 Return the number of bytes in a memory page.
static optional< std::string > get_env (const std::string &key)
 Return the environment variable associated with the given key.
static EnvVars get_envs ()
 Return the environment variables present in the current process.
static assembly::Enginedefault_engine ()
 Return the assembler/disassembler for the current process.

Detailed Description

This class exposes Android-specific API for the current process.

Member Typedef Documentation

◆ properties_t

Member Function Documentation

◆ classof()

constexpr bool LIEF::runtime::android::Process::classof ( const runtime::Process * )
inlinestaticconstexpr

◆ cmdline()

std::string LIEF::runtime::android::Process::cmdline ( )
static

Return the content of /proc/cmdline.

◆ get_system_property()

optional< Property > LIEF::runtime::android::Process::get_system_property ( const std::string & name)
static

Return the value of the Android system property with the given name (e.g. ro.build.version.sdk).

◆ properties()

properties_t LIEF::runtime::android::Process::properties ( )
static

Get all the system properties.


The documentation for this class was generated from the following file: