apk-patchx

apk-patchx

Leader posted 1 min read

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

Pull APK from device

apk-patchx pull com.example.app

Decode APK

apk-patchx decode app.apk

Build APK from source

apk-patchx build app_src/

Patch APK with Frida gadget

apk-patchx patch app.apk --arch arm64

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

Looking for contributors and debugger

License

MIT License - see LICENSE file for details.

If you read this far, tweet to the author to show them you care. Tweet a Thanks
0 votes

More Posts

Monitor HTTP Response Headers Like a Pro: Header Change Notifier for Burp Suite

mohamed.cybersec - Oct 24

The Complete Roadmap to Master Cryptography From Beginner to Expert

mohamed.cybersec - Oct 23

Risk Assessment Reporting: 6 Ways to Make Your Reports Clear and Actionable for Stakeholders

Mahadi Islam - Oct 12

Why String Concatenation in SQL Queries Can Expose You to Injection Attacks

Sunny - Oct 11

The Unspoken Conversation: When Your Code Attracts the Wrong Kind of Attention

GnomeMan4201 - Oct 6
chevron_left