# Android-Inline-Hook **Repository Path**: simon_haha/Android-Inline-Hook ## Basic Information - **Project Name**: Android-Inline-Hook - **Description**: thumb16 thumb32 arm32 inlineHook in Android - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2019-05-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Android-Inline-Hook thumb16 thumb32 arm32 inlineHook # Build ```ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_APPLICATION_MK=./Application.mk``` # Example ```C #include #include "inlineHook.h" int (*old_puts)(const char *) = NULL; int new_puts(const char *string) { old_puts("inlineHook success"); } int hook() { if (registerInlineHook((uint32_t) puts, (uint32_t) new_puts, (uint32_t **) &old_puts) != ELE7EN_OK) { return -1; } if (inlineHook((uint32_t) puts) != ELE7EN_OK) { return -1; } return 0; } int unHook() { if (inlineUnHook((uint32_t) puts) != ELE7EN_OK) { return -1; } return 0; } int main() { puts("test"); hook(); puts("test"); unHook(); puts("test"); } ``` # Contact If you find any bugs, please contact me(ele7enxxh@qq.com)