# bytedance/android-inline-hook

通用的Android inline hook库，支持thumb，arm32，arm64

Repository: https://github.com/bytedance/android-inline-hook
Canonical: https://ross.abutalabs.com/products/android-inline-hook
Homepage: https://github.com/bytedance/android-inline-hook/blob/main/doc/manual.md
Language: C
License: MIT
License Family: permissive
Topics: android, inline, hook, inlinehook, androidinlinehook, arm, arm64, thumb, security, ndk, jni
Last push: 2026-08-26T04:45:33+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 57, longevity 100
- inputs: {"age_days": 1665, "days_push": 7, "days_rel": 79, "gap_med": 295.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2372, forks 408 (observed 2026-08-28T04:06:41.866972+00:00)

## What it is
Shadowhook is an Android inline hook library written in C, supporting armeabi-v7a (thumb/arm32) and arm64-v8a architectures on Android 4.1 through 17. It provides stable, production-ready hooking and interception of native functions, with features like automatic handling of newly loaded ELFs, recursive call prevention, and unwind compatibility.

## Use cases
- hook native functions in Android apps
- intercept native library calls at runtime
- instrument native code for debugging or monitoring
- hook functions by address or by library name plus symbol name
- bypass linker namespace restrictions to resolve symbols
- monitor .init and .fini execution of newly loaded ELFs

## When to choose
- you need stable inline hooking of native ARM/ARM64 code in production Android apps
- you need broad Android version compatibility from 4.1 onward
- you want automatic hooking of functions in newly loaded ELFs
- you need to intercept native calls without modifying source code

## When to avoid
- you need PLT/GOT hooking instead of inline hooking (use ByteHook)
- you target non-ARM architectures such as x86
- you need hooking on platforms other than Android
- your project requires a license other than MIT

## Facets
- artifact type: library
- maturity: active
- function: security, developer-tools
- domain: android-tools, security, developer-tools
- platform: cpp, c
- tags: inline-hook, shadowhook, arm, arm64, thumb, ndk, jni, native-code, hooking, reverse-engineering, android

## Member repositories
- bytedance/android-inline-hook (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:41.866972+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:35:09.323499+00:00, confidence not recorded.
  - readme: https://github.com/bytedance/android-inline-hook (fetched 2026-08-28T04:06:41.866972+00:00, sha 9d1f3159dc11)
  - homepage: https://github.com/bytedance/android-inline-hook/blob/main/doc/manual.md (fetched 2026-08-29T10:16:06.527567+00:00, sha c2bea23e4a3a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
