# APatch

The patching of Android kernel and Android system

Repository: https://github.com/bmax121/APatch
Canonical: https://ross.abutalabs.com/products/apatch
Language: Kotlin
License: GPL-3.0
License Family: copyleft
Topics: android, inline-hook, root, kernel, patch, magisk, magisk-module
Last push: 2026-08-25T19:17:19+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 72, longevity 79
- inputs: {"age_days": 1108, "days_push": 8, "days_rel": 26, "gap_med": 135.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7862, forks 762 (observed 2026-08-28T04:10:07.849078+00:00)

## What it is
APatch is a kernel-based root solution for Android devices that patches the Android kernel and system, relying on KernelPatch. It supports Magisk-like system modules (APM) and kernel modules (KPM) that can inject code into the kernel via inline-hook and syscall-table-hook.

## Use cases
- root my android device without unlocking boot image modifications
- run magisk-style modules on my android phone
- hook syscalls in the android kernel
- get kernel-level root access on arm64 android
- hide root from apps on android
- patch android kernel to gain superuser

## When to choose
- you need kernel-level root on an ARM64 Android device with kernel 3.18-6.12
- you want Magisk-like module support plus deeper kernel code injection
- KernelSU or Magisk is not suitable for your device or threat model

## When to avoid
- your device is not ARM64 or runs an unsupported kernel version
- you only need userspace root without kernel patching
- you cannot risk bootloader or kernel modifications on your device

## Facets
- artifact type: application
- maturity: active
- function: security, developer-tools
- domain: android-tools, operating-systems, security
- platform: -
- tags: root, kernel-patching, magisk-modules, inline-hook, syscall-hook, superuser, arm64, android, linux

## Member repositories
- bmax121/APatch (main) score 86
- bmax121/KernelPatch (backend) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:07.849078+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-29T17:33:46.261209+00:00, confidence not recorded.
  - readme: https://github.com/bmax121/APatch (fetched 2026-08-28T04:10:07.849078+00:00, sha 31eb1fd705fc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
