Skip to main content

Android APK manipulation toolkit with Frida gadget injection support

Project description

APK-Patchx

⚡ apk-patchx



🔥 What is apk-patchx?

apk-patchx is a command-line tool that makes APK manipulation fast, modular, and developer-friendly.
Whether you’re a security researcher, reverse engineer, or power user — it gives you a one-stop solution for:

  • 📦 Pulling & merging split APKs directly from connected Android devices
  • 🔍 Decoding & rebuilding APKs with apktool
  • 🧩 Injecting Frida gadgets into any architecture (arm, arm64, x86, x86_64)
  • 📝 Patching smali/dex code with your own hooks
  • 🔑 Auto-signing APKs for immediate deployment
  • 🎛️ Custom decode/build options for advanced workflows

apk-patchx Terminal Example

Installation

pip install apk-patchx

Usage

apk-patchx --help # For help regarding available commands
apk-patchx <COMMAND> --help # For help regarding options usage
apk-patchx patch --help # e.g.

Available Commands

Command Description
build Build APK from decoded directory.
decode Decode APK file.
patch Patch APK with Frida gadget.
pull Pull APK from connected device.
rename Rename APK package.
sign Sign APK file.

Patch Command (Full Options)

Options

Flag Description
-a, --arch [arm,arm64,x86,x86_64] Required. Target architecture.
-g, --gadget-conf PATH Custom Frida gadget config JSON file.
--net Add permissive network security config.
-s, --no-src Skip DEX disassembly.
--only-main-classes Only disassemble main DEX.
--frida-version TEXT Specify Frida version to use.
--apktool-decode-args TEXT Extra arguments for apktool decode.
--apktool-build-args TEXT Extra arguments for apktool build.
--help Show help and exit.

Rename APK package

apk-patchx rename app.apk com.newpackage.name

Sign APK

apk-patchx sign app.apk

Architecture Support

  • ARM (arm)
  • ARM64 (arm64)
  • x86 (x86)
  • x86_64 (x86_64)

Requirements

  • Python 3.8+
  • Java Runtime Environment (JRE 8+)
  • ADB (for device operations)

Tool Management

APK-Patchx automatically downloads and manages required tools in ~/.apk-patchx/tools/:

  • apktool
  • Android SDK build-tools
  • Platform tools (adb)
  • dexpatch
  • Frida gadgets

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apk_patchx-21.11.2025.1.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apk_patchx-21.11.2025.1-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file apk_patchx-21.11.2025.1.tar.gz.

File metadata

  • Download URL: apk_patchx-21.11.2025.1.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for apk_patchx-21.11.2025.1.tar.gz
Algorithm Hash digest
SHA256 19c2ba94d181023062b4d723bba19a074f54ea7d60ad6ff1f2000aeee976e7bc
MD5 836a0b93bb07ec1bfefbe03188d0d35b
BLAKE2b-256 96c991a4324dc54eca11bf0bd59d7f7f31731a9a822676567c804a6efa54e754

See more details on using hashes here.

File details

Details for the file apk_patchx-21.11.2025.1-py3-none-any.whl.

File metadata

File hashes

Hashes for apk_patchx-21.11.2025.1-py3-none-any.whl
Algorithm Hash digest
SHA256 536032fc1cf08b07f47eaaccaaad4ae1442e7153df16b5d96a3d0b22cd970b4a
MD5 d8e4de8d909182852ee206223476c017
BLAKE2b-256 f6f839a43519bd6b065af543b9f91c69b7f1bc3416dd9be57a62789e3af7038c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page