Engine

Reseam

Reseam applies community-written patches to Android apps on-device. A bundle is the unit patch authors build, sign, and publish; the engine (reseam-patcher) loads a bundle, resolves patch order, and runs each patch against a mutable APK. Reseam Manager on Android invokes the engine for end users; the reseam CLI invokes it during development.

These docs are for patch authors. Read in order:

  1. Setup. Prerequisites and first build.
  2. Bundles. How a bundle project is laid out on disk and what ships in the signed archive.
  3. Patches. Writing Kotlin patches.
    1. Overview. The patch(...) DSL, metadata, lifecycle, options, dependencies.
    2. Runtime. What PatchRuntime exposes: bytecode, manifest, resources, files, log.
    3. Queries And Bindings. Structural matching, runtime extraction, diagnostics, and mutation.
    4. Instructions. Building DEX bytecode sequences with labels and branches.
  4. Extensions. Java or Kotlin code compiled to DEX and injected at patch time.
  5. Publishing. Build, apply locally, benchmark, generate patches.json, host.
Reseam Reseam © 2026 Reseam Team