Gadget

class apkinjector.gadget.Gadget

Frida Gadget utils.

static get_gadget_dir() → Optional[str]

Get the path where the gadgets are saved.

Returns

The path to the gadgets directory if found, otherwise None.

Return type

Union[str, None]

static get_gadget_path(arch: apkinjector.arch.ARCH) → Optional[str]

Gets the gadget path for the specified architecture.

Parameters

arch (apkinjector.arch.ARCH) – The target architecture.

Returns

The path to the gadgets file if found, otherwise None.

Return type

Union[str, None]

static update(progress_callback: Callable = None) → bool

Downloads and updates the gadgets.

Parameters

progress_callback (Callable, optional) – Function to call when download progress changes, defaults to None.

Returns

True if the gadgets were successfully downloaded, False otherwise.

Return type

bool

static version() → str

Get recommended gadget version.

Returns

The recommended gadget version as string.

Return type

str