KittyMemoryEx 1.0.0
Dedicated library for runtime code patching, memory scanning, tracing, injection and some more useful memory utilities. works for both Android and Linux
Loading...
Searching...
No Matches
NativeBridgeScannerMgr Class Reference

Manager class for scanning native bridge. More...

#include <KittyScanner.hpp>

Public Member Functions

 NativeBridgeScannerMgr (IKittyMemOp *pMem, KittyScannerMgr *memScanner, ElfScannerMgr *elfScanner)
 Constructor for NativeBridgeScannerMgr.
bool init ()
 Initializes the native bridge scanner.
bool isValid () const
 Returns true if initialized, false otherwise.
kitty_soinfo_offsets_t soinfo_offsets () const
 Returns the soinfo offsets.
ElfScanner & nbElf ()
 Getter for 'libnativebridge.so' Elf.
ElfScanner & nbImplElf ()
 Getter for the native bridge implementaion Elf (e.g, 'libhoudini.so' or 'libndk_translation.so').
ElfScanner & soheadElf ()
 Getter for the first loaded emulated so Elf.
bool isHoudini () const
 Check if the native bridge implementaion is Houdini.
uintptr_t sohead () const
 Returns the first loaded emulated so address.
kitty_soinfo_t soheadInfo () const
 Returns the first loaded emulated soinfo.
std::vector< kitty_soinfo_t > allSoInfo () const
 Returns all emulated soinfo.
kitty_soinfo_t findSoInfo (const std::string &name) const
 Finds a soinfo by name.
size_t nbItfDataSize () const
 Returns native bridge callbacks data size.
nbItf_data_t nbItfData () const
 Returns native bridge callbacks data.

Public Attributes

bool(* fnNativeBridgeInitialized )()

Detailed Description

Manager class for scanning native bridge.

Constructor & Destructor Documentation

◆ NativeBridgeScannerMgr()

NativeBridgeScannerMgr::NativeBridgeScannerMgr ( IKittyMemOp * pMem,
KittyScannerMgr * memScanner,
ElfScannerMgr * elfScanner )

Constructor for NativeBridgeScannerMgr.

Parameters
pMemPointer to the memory operation interface.
memScannerA pointer to a KittyScannerMgr object.
elfScannerA pointer to an ElfScannerMgr object.

Member Function Documentation

◆ findSoInfo()

kitty_soinfo_t NativeBridgeScannerMgr::findSoInfo ( const std::string & name) const

Finds a soinfo by name.

Parameters
nameThe name of the soinfo.
Returns
The soinfo if found or empty object.

◆ init()

bool NativeBridgeScannerMgr::init ( )

Initializes the native bridge scanner.

Returns
True if initialization is successful, false otherwise.

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