Hi guys,
I'm trying to mod an arm64-v8a android game. I used these tools: apktool and Il2CppDumper.
I already tried to hook the multiple offsets but it doesn't work.
When I used Il2CppDumper, I found that doesn't have the file Assembly-CSharp.dll, this means that's that it has some kind of protection and my hooks don't work because of that?
Does someone have any idea why this is happening?
Code:
Thanks
I'm trying to mod an arm64-v8a android game. I used these tools: apktool and Il2CppDumper.
I already tried to hook the multiple offsets but it doesn't work.
When I used Il2CppDumper, I found that doesn't have the file Assembly-CSharp.dll, this means that's that it has some kind of protection and my hooks don't work because of that?
Does someone have any idea why this is happening?
Code:
C++:
// already tried without param_2, param_3 and param_4... I put the params because Ghidra shows them
void (*old_Update)(void *instance, float param_2, float param_3, long param_4);
void Update(void *instance, float param_2, float param_3, long param_4) {
if(instance != NULL) {
LOGD("Inside update...");
}
old_Update(instance, param_2, param_3, param_4);
}
__attribute__((constructor))
void libhook_main() {
do {
sleep(1);
} while (!utils::is_library_loaded(libName));
A64HookFunction((void*)utils::get_absolute_address(OFFSET), (void*)Update, (void**)&old_Update);
A64HookFunction((void*)utils::get_absolute_address(OFFSET_2), (void*)Update, (void**)&old_Update);
}
Thanks
Last edited: