# iqiyi/xHook

🔥 A PLT hook library for Android native ELF.

Repository: https://github.com/iqiyi/xHook
Canonical: https://ross.abutalabs.com/products/xhook
Language: C
License: NOASSERTION
License Family: other
Topics: android, hook, elf, plt, got
Last push: 2025-06-27T05:34:48+00:00

## Health v2 (maintenance only)
Score: 45/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 28, release rhythm 35, longevity 100
- inputs: {"age_days": 3059, "days_push": 432, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4348, forks 789 (observed 2026-08-28T04:08:46.250303+00:00)

## What it is
xHook is a PLT (Procedure Linkage Table) hook library for Android native ELF binaries and shared libraries, written in C. It lets native code intercept calls to imported symbols in loaded ELFs without root permissions, supporting Android 4.0-10 across major ABIs.

## Use cases
- hook native library function calls in an Android app
- intercept libc calls like malloc or open in my NDK project
- monitor or replace PLT symbol calls in loaded ELF shared libraries
- debug and trace native API usage on Android without root
- patch third-party native library behavior at runtime

## When to choose
- you need to hook imported (PLT/GOT) symbol calls in Android native code without root
- you need broad compatibility with Android 4.0-10 and multiple ABIs
- you want a small C library with no third-party dependencies

## When to avoid
- you need to hook non-PLT calls such as inline or function-entry hooks
- you target Android versions above 10 or need active feature development
- you need a general-purpose instrumentation framework like Frida

## Facets
- artifact type: library
- maturity: maintenance
- function: security, developer-tools
- domain: developer-tools, mobile-development, operating-systems
- platform: cpp, c
- tags: plt-hook, elf, native-code, android-ndk, inline-hooking-alternative, android

## Member repositories
- iqiyi/xHook (main) score 45

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:46.250303+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-29T18:21:33.530656+00:00, confidence not recorded.
  - readme: https://github.com/iqiyi/xHook (fetched 2026-08-28T04:08:46.250303+00:00, sha 7d1ad97e1868)
- Data as of 2026-08-30T08:39:29.467469+00:00.
