# bytedance/bhook

通用的Android PLT hook库，支持armeabi-v7a，arm64-v8a，x86，x86_64

Repository: https://github.com/bytedance/bhook
Canonical: https://ross.abutalabs.com/products/bhook
Homepage: https://github.com/bytedance/bhook/tree/main/doc#readme
Language: C
License: MIT
License Family: permissive
Topics: android, hook, plthook, plt, gothook, got, native, ndk, hooking, bytedance, androidplthook, androidgothook, androidhook
Last push: 2026-06-16T06:47:41+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 87, release rhythm 57, longevity 100
- inputs: {"age_days": 1848, "days_push": 78, "days_rel": 78, "gap_med": 293.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 2570, forks 400 (observed 2026-08-28T04:07:01.385568+00:00)

## What it is
ByteHook is a production-grade Android PLT hook library written in C, supporting armeabi-v7a, arm64-v8a, x86, and x86_64. It lets native code intercept calls to functions in dynamic libraries via GOT/PLT hooking, with automatic handling of recursive calls and newly loaded libraries.

## Use cases
- hook native functions in Android dynamic libraries
- intercept libc calls in an Android app at runtime
- monitor or replace native library function calls on Android
- patch native behavior without modifying library source
- debug native crashes with backtrace unwinding in proxy functions
- hook all or selected .so libraries in an Android process

## When to choose
- you need stable, production-ready PLT/GOT hooking on Android 4.1+
- you need multi-architecture support including x86 and x86_64
- you want automatic hooking of newly loaded dynamic libraries
- you need to hook the same function from multiple callers safely

## When to avoid
- you need inline hooking of arbitrary code addresses - use ByteDance's shadowhook instead
- you target platforms other than Android
- you need Java-level method hooking rather than native PLT hooking

## Facets
- artifact type: library
- maturity: active
- function: security, reverse-engineering, developer-tools
- domain: android-tools, developer-tools, mobile-development
- platform: cpp, c
- tags: plt-hook, got-hook, ndk, native-hooking, hooking, android-native, android

## Member repositories
- bytedance/bhook (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:01.385568+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:23:18.993575+00:00, confidence not recorded.
  - readme: https://github.com/bytedance/bhook (fetched 2026-08-28T04:07:01.385568+00:00, sha 07ea22050fe6)
  - homepage: https://github.com/bytedance/bhook/tree/main/doc#readme (fetched 2026-08-29T10:05:36.326098+00:00, sha 661462ebea01)
- Data as of 2026-08-30T08:39:29.467469+00:00.
