MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / DobbyDestroy

Function DobbyDestroy

Bcore/src/main/cpp/Dobby/source/dobby.cpp:21–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21PUBLIC int DobbyDestroy(void *address) {
22 // check if we already hook
23 HookEntry *entry = Interceptor::SharedInstance()->FindHookEntry(address);
24 if (entry) {
25 uint8_t *buffer = entry->origin_chunk_.chunk_buffer;
26 uint32_t buffer_size = entry->origin_chunk_.chunk.length;
27#if defined(TARGET_ARCH_ARM)
28 address = (void *)((addr_t)address - 1);
29#endif
30 CodePatch(address, buffer, buffer_size);
31 Interceptor::SharedInstance()->RemoveHookEntry(address);
32 return RT_SUCCESS;
33 }
34
35 return RT_FAILED;
36}
37
38#endif

Callers

nothing calls this directly

Calls 2

FindHookEntryMethod · 0.80
RemoveHookEntryMethod · 0.80

Tested by

no test coverage detected