# PAGalaxyLab/YAHFA

Yet Another Hook Framework for ART

Repository: https://github.com/PAGalaxyLab/YAHFA
Canonical: https://ross.abutalabs.com/products/yahfa
Language: Java
License: GPL-3.0
License Family: copyleft
Topics: android, hook-framework, hook
Last push: 2024-07-22T23:50:28+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3443, "days_push": 772, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1674, forks 355 (observed 2026-08-28T04:05:20.410911+00:00)

## What it is
YAHFA is a hook framework for Android ART that enables efficient Java method hooking and replacement. It is distributed as an Android library (AAR) via Maven Central and powers VirtualHook for rootless app hooking.

## Use cases
- hook java methods in android apps
- replace method implementations at runtime on art
- build a rootless hooking tool like virtualhook
- instrument android app behavior for analysis
- intercept android api calls without root
- patch third-party app methods on android 7 through 12

## When to choose
- you need to hook Java methods on Android 7.0-12 ART
- you want a lightweight library dependency rather than a full Xposed setup
- you need rootless hooking via a virtual environment like VirtualHook
- you need support for x86, x86_64, armeabi-v7a and arm64-v8a

## When to avoid
- you need to hook Android 6.0 or lower (support is broken)
- you need active development or support for the newest Android versions
- you want a non-copyleft license (it is GPL-3.0)
- you need native (C/C++) function hooking rather than Java method hooking

## Facets
- artifact type: library
- maturity: maintenance
- function: security, reverse-engineering, developer-tools
- domain: android-tools, security, developer-tools
- platform: -
- tags: hook-framework, art, java-method-hooking, xposed-alternative, mobile-security, android

## Member repositories
- PAGalaxyLab/YAHFA (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:20.410911+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-30T03:42:31.014968+00:00, confidence not recorded.
  - readme: https://github.com/PAGalaxyLab/YAHFA (fetched 2026-08-28T04:05:20.410911+00:00, sha 7252b601c45c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
