← ClaudeAtlas

apmlisted

Build APatch modules (APM) — Magisk-style systemless modules for APatch on Android. Use when creating a module.prop, laying out an APM zip, writing customize.sh / service.sh / post-fs-data.sh / boot-completed.sh / action.sh, doing systemless system changes via overlayfs (REPLACE / REMOVE), sepolicy.rule, system.prop, WebUI (webroot), or porting a Magisk/KernelSU module to APatch. Triggers on "APM", "APatch module", "APatch 模块", "module.prop", "customize.sh", "systemless", "把 Magisk 模块移植到 APatch".
yspbwx2010/skills · ★ 2 · Web & Frontend · score 74
Install: claude install-skill yspbwx2010/skills
# APatch module (APM) An APM is a **Magisk-style systemless module** for [APatch](https://github.com/bmax121/APatch). It modifies `/system` without touching the real partition, runs boot scripts, and installs from a zip through the APatch manager. APatch's module engine is derived from KernelSU's, so if you know Magisk/KernelSU modules this is familiar — the differences are the ones that bite, and they are called out below. This skill is written against **APatch manager 11224** (its `apd` daemon and installer). APM is **not** KPM: a KPM is kernel-space C (see the `kpm` skill); an APM is files + shell. ## The two things that make an APM 1. A directory installed at `/data/adb/modules/<id>/` containing at least a **`module.prop`**. 2. Optionally a **`system/`** tree (mounted over `/system`), boot **scripts**, and metadata files. Distributed as a **zip** flashed in the APatch manager. Minimum viable module: ``` mymodule.zip ├── module.prop # required — without it, it is not a module ├── customize.sh # optional install-time script ├── system/... # optional, overlaid on /system └── service.sh # optional, runs late in boot ``` Use `scripts/new_module.py <dir> --id my_module --name "My Module"` to scaffold a valid zip layout. ## module.prop (required) ``` id=my_module name=My Module version=v1.0 versionCode=1 author=you description=What it does ``` - **`id`** must match `^[a-zA-Z][a-zA-Z0-9._-]+$` (verified in `apd`). It is the d