public class AndroidElfLoader extends AbstractLoader<AndroidFileIO> implements Memory, Loader
| Modifier and Type | Field and Description |
|---|---|
static int |
MAP_ANONYMOUS |
static int |
MAP_FIXED |
backend, callInitFunction, emulator, hookListeners, libraryResolver, memoryMap, mmapBaseAddress, mMapListener, moduleListeners, sp, stackSize, syscallHandler, threadStackMapMAX_THREADS, MMAP_BASE, STACK_BASE, STACK_SIZE_OF_MAIN_PAGE, STACK_SIZE_OF_PAGE, STACK_SIZE_OF_THREAD_PAGE| Constructor and Description |
|---|
AndroidElfLoader(Emulator<AndroidFileIO> emulator,
UnixSyscallHandler<AndroidFileIO> syscallHandler) |
| Modifier and Type | Method and Description |
|---|---|
int |
brk(long address) |
protected LibraryFile |
createLibraryFile(File file) |
boolean |
dlclose(long handle) |
Module |
dlopen(String filename)
dlopen调用init_array会崩溃
|
Module |
dlopen(String filename,
boolean calInit) |
Symbol |
dlsym(long handle,
String symbolName) |
int |
getLastErrno() |
Collection<Module> |
getLoadedModules() |
String |
getMaxLengthLibraryName() |
long |
getMaxSizeOfLibrary() |
protected LinuxModule |
loadInternal(LibraryFile libraryFile,
boolean forceCallInit) |
Module |
loadVirtualModule(String name,
Map<String,UnidbgPointer> symbols) |
MemoryBlock |
malloc(int length,
boolean runtime) |
long |
mmap2(long start,
int length,
int prot,
int flags,
int fd,
int offset) |
void |
setErrno(int errno) |
void |
setLibraryResolver(LibraryResolver libraryResolver) |
addHookListener, addModuleListener, allocateMapAddress, allocateStack, allocateThreadIndex, allocateThreadStack, disableCallInitFunction, dump, findModule, findModuleByAddress, freeThreadIndex, getMemoryMap, getMMapListener, getModuleBase, getStackBase, getStackPoint, getStackSize, load, load, load, load, mem_map, mmap, mprotect, munmap, notifyModuleLoaded, pointer, serialize, setCallInitFunction, setMMapBaseAddress, setMMapListener, setStackPoint, writeStackBytes, writeStackStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallocateStack, allocateThreadIndex, allocateThreadStack, freeThreadIndex, getMemoryMap, getMMapListener, getStackBase, getStackPoint, getStackSize, mmap, mprotect, munmap, pointer, setMMapListener, setStackPointaddHookListener, addModuleListener, disableCallInitFunction, findModule, findModuleByAddress, load, load, load, load, setCallInitFunctionwriteStackBytes, writeStackStringserializepublic static final int MAP_FIXED
public static final int MAP_ANONYMOUS
public AndroidElfLoader(Emulator<AndroidFileIO> emulator, UnixSyscallHandler<AndroidFileIO> syscallHandler)
public void setLibraryResolver(LibraryResolver libraryResolver)
setLibraryResolver in interface LoadersetLibraryResolver in class AbstractLoader<AndroidFileIO>protected LibraryFile createLibraryFile(File file)
createLibraryFile in class AbstractLoader<AndroidFileIO>protected final LinuxModule loadInternal(LibraryFile libraryFile, boolean forceCallInit)
loadInternal in class AbstractLoader<AndroidFileIO>public Module loadVirtualModule(String name, Map<String,UnidbgPointer> symbols)
loadVirtualModule in interface LoaderloadVirtualModule in class AbstractLoader<AndroidFileIO>public MemoryBlock malloc(int length, boolean runtime)
public long mmap2(long start,
int length,
int prot,
int flags,
int fd,
int offset)
public int getLastErrno()
getLastErrno in interface Memorypublic String getMaxLengthLibraryName()
getMaxLengthLibraryName in interface Loaderpublic long getMaxSizeOfLibrary()
getMaxSizeOfLibrary in interface Loaderpublic Collection<Module> getLoadedModules()
getLoadedModules in interface LoaderCopyright © 2026. All rights reserved.