{"id":33196942,"url":"https://github.com/ele7enxxh/android-inline-hook","last_synced_at":"2025-11-25T21:01:05.908Z","repository":{"id":50323370,"uuid":"46104921","full_name":"ele7enxxh/Android-Inline-Hook","owner":"ele7enxxh","description":"thumb16 thumb32 arm32 inlineHook in Android","archived":false,"fork":false,"pushed_at":"2020-06-23T01:56:06.000Z","size":329,"stargazers_count":1361,"open_issues_count":15,"forks_count":420,"subscribers_count":70,"default_branch":"master","last_synced_at":"2025-03-13T14:36:46.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ele7enxxh.com/Android-Arm-Inline-Hook.html","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ele7enxxh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-13T06:45:24.000Z","updated_at":"2025-03-04T22:20:08.000Z","dependencies_parsed_at":"2022-08-13T05:50:08.917Z","dependency_job_id":null,"html_url":"https://github.com/ele7enxxh/Android-Inline-Hook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ele7enxxh/Android-Inline-Hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ele7enxxh%2FAndroid-Inline-Hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ele7enxxh%2FAndroid-Inline-Hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ele7enxxh%2FAndroid-Inline-Hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ele7enxxh%2FAndroid-Inline-Hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ele7enxxh","download_url":"https://codeload.github.com/ele7enxxh/Android-Inline-Hook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ele7enxxh%2FAndroid-Inline-Hook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-25T02:00:05.816Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-16T08:00:28.999Z","updated_at":"2025-11-25T21:01:05.899Z","avatar_url":"https://github.com/ele7enxxh.png","language":"C","funding_links":[],"categories":["\u003ca id=\"2110ded2aa5637fa933cc674bc33bf21\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"63fd2c592145914e99f837cecdc5a67c\"\u003e\u003c/a\u003e新添加的1"],"readme":"# Android-Inline-Hook\nthumb16 thumb32 arm32 inlineHook\n\n# Build\n```ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_APPLICATION_MK=./Application.mk```\n\n# Example\n```C\n#include \u003cstdio.h\u003e\n\n#include \"inlineHook.h\"\n\nint (*old_puts)(const char *) = NULL;\n\nint new_puts(const char *string)\n{\n    old_puts(\"inlineHook success\");\n}\n\nint hook()\n{\n    if (registerInlineHook((uint32_t) puts, (uint32_t) new_puts, (uint32_t **) \u0026old_puts) != ELE7EN_OK) {\n        return -1;\n    }\n    if (inlineHook((uint32_t) puts) != ELE7EN_OK) {\n        return -1;\n    }\n\n    return 0;\n}\n\nint unHook()\n{\n    if (inlineUnHook((uint32_t) puts) != ELE7EN_OK) {\n        return -1;\n    }\n\n    return 0;\n}\n\nint main()\n{\n    puts(\"test\");\n    hook();\n    puts(\"test\");\n    unHook();\n    puts(\"test\");\n}\n\n```\n\n# Contact\nIf you find any bugs, please contact me(ele7enxxh@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fele7enxxh%2Fandroid-inline-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fele7enxxh%2Fandroid-inline-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fele7enxxh%2Fandroid-inline-hook/lists"}