Skip to content

REapk

A native, zero-Java APK toolkit. REapk parses and rewrites Android's binary formats directly in Python, with no third-party tools and no JVM. It handles recon, manifest and DEX edits, repackaging, zipalign, and v2/v3 signing.

pip install reapk

Pipeline

REapk pipeline: ingest an APK or XAPK, branch on the requested operation into a read-only recon lane or a rewrite lane, then zipalign and v2/v3 sign.

Where to start

  • DEX engine overview explains what the engine does and the read, disassemble, assemble, patch, sign mental model.
  • Concepts covers the DEX file format and the constant pool.
  • Getting started opens an APK and disassembles a method in a few lines.
  • Guide is task-oriented: patch a method, bypass SSL pinning, intern new entries, repackage and sign.
  • API reference lists the public classes and functions.
  • Playground is a runnable notebook tour against a real app.

License

MIT. See the LICENSE file.