# ax/apk.sh

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/ax-apk-sh).**

3,795 stars · 228 forks · Shell · GPL-3.0

## Links

- GitHub: https://github.com/ax/apk.sh
- awesome-repositories: https://awesome-repositories.com/repository/ax-apk-sh.md

## Topics

`android` `android-reverse-engineering` `apk` `frida` `frida-gadget` `objection` `reverse-engineering` `split-apk`

## Description

apk.sh is a mobile application patching framework and reverse engineering tool designed to inject custom instrumentation and logic into compiled Android binaries. It serves as a workflow manager for modifying application packages without requiring access to the original source code.

The toolkit focuses on automating the process of injecting the Frida gadget into Android packages, enabling dynamic analysis and function hooking on non-rooted devices. It handles the end-to-end lifecycle of deconstructing, modifying, and resigning binaries to facilitate security research, malware analysis, and behavioral testing.

The project covers several core capability areas, including bytecode manipulation, resource decoding, and package management. It provides utilities to pull application files from devices, modify package identifiers, and recompute cryptographic signatures to ensure modified packages remain installable on target operating systems.

## Tags

### Operating Systems & Systems Programming

- [Frida-Based Instrumentation](https://awesome-repositories.com/f/operating-systems-systems-programming/system-instrumentation-frameworks/android-instrumentation/frida-based-instrumentation.md) — Patches Android packages to load the Frida gadget for dynamic instrumentation on non-rooted devices. ([source](https://github.com/ax/apk.sh#readme))
- [Library Injection](https://awesome-repositories.com/f/operating-systems-systems-programming/dynamic-library-loading/library-injection.md) — Inserts shared objects into application binaries to enable runtime instrumentation and behavioral monitoring.
- [APK Signers](https://awesome-repositories.com/f/operating-systems-systems-programming/signed-binary-modules/android-system-module-signing/apk-signers.md) — Recomputes cryptographic signatures to ensure modified Android packages remain installable on target devices.
- [Startup Instrumentation](https://awesome-repositories.com/f/operating-systems-systems-programming/system-instrumentation-frameworks/android-instrumentation/dynamic-process-instrumentation/startup-instrumentation.md) — Updates application configuration files to load instrumentation agents before the application starts.
- [Workflow Orchestration Scripts](https://awesome-repositories.com/f/operating-systems-systems-programming/terminal-command-line-environments/shells-scripting/workflow-orchestration-scripts.md) — Coordinates sequential command-line operations to automate the lifecycle of downloading, unpacking, patching, and rebuilding packages.

### Part of an Awesome List

- [Resource-Aware Decompilation](https://awesome-repositories.com/f/awesome-lists/security/reverse-engineering-and-decompilation/resource-aware-decompilation.md) — Extracts and reconstructs binary structures to preserve functional integrity during modification and repackaging.
- [Instrumentation Toolkits](https://awesome-repositories.com/f/awesome-lists/security/mobile-application-security/instrumentation-toolkits.md) — Provides a collection of scripts to inject libraries and modify bytecode for observing application behavior.

### Mobile Development

- [Android APK Repackaging Tools](https://awesome-repositories.com/f/mobile-development/android-apk-repackaging-tools.md) — Provides a framework for decompiling, modifying, and rebuilding Android application packages for security research.
- [Android APK Signers](https://awesome-repositories.com/f/mobile-development/android-apk-signers.md) — Applies digital signatures to modified APKs so the Android operating system accepts them for installation. ([source](https://github.com/ax/apk.sh#readme))
- [Android App Rebuilding](https://awesome-repositories.com/f/mobile-development/android-app-rebuilding.md) — Compiles decoded resources and modified bytecode back into a functional binary APK or JAR file. ([source](https://github.com/ax/apk.sh#readme))
- [Android Patching Utilities](https://awesome-repositories.com/f/mobile-development/android-app-rebuilding/android-patching-utilities.md) — Provides automated utilities for patching Android application packages to integrate custom logic and instrumentation.
- [Patching Frameworks](https://awesome-repositories.com/f/mobile-development/android-app-rebuilding/android-patching-utilities/patching-frameworks.md) — Acts as a workflow manager for injecting custom instrumentation and logic into compiled Android binaries.
- [Android Resource Decoding](https://awesome-repositories.com/f/mobile-development/android-resource-decoding.md) — Converts compiled binary resources and bytecode from APK files into human-readable formats for analysis. ([source](https://github.com/ax/apk.sh#readme))
- [Mobile Patching Frameworks](https://awesome-repositories.com/f/mobile-development/mobile-infrastructure-security/mobile-patching-frameworks.md) — Implements a framework for applying code transformations and instrumentation to compiled mobile applications.
- [APK Extraction Utilities](https://awesome-repositories.com/f/mobile-development/apk-extraction-utilities.md) — Extracts APKs from connected devices and merges split bundles into a single file for patching. ([source](https://github.com/ax/apk.sh#readme))
- [Application Instrumentation](https://awesome-repositories.com/f/mobile-development/application-instrumentation.md) — Inserts custom libraries into mobile applications at startup to enable monitoring and script execution. ([source](https://github.com/ax/apk.sh#readme))
- [Application Package Management](https://awesome-repositories.com/f/mobile-development/application-package-management.md) — Automates the downloading, unpacking, and resigning of Android application packages. ([source](https://github.com/ax/apk.sh#readme))
- [Manifest Instrumentation](https://awesome-repositories.com/f/mobile-development/manifest-permission-injection/manifest-instrumentation.md) — Programmatically updates application configuration files to trigger the execution of custom instrumentation libraries during startup.
- [Android Security Tools](https://awesome-repositories.com/f/mobile-development/mobile-infrastructure-security/mobile-security-tools/android-security-tools.md) — Includes automated scripts for modifying and reassembling packages to facilitate behavioral testing and auditing.

### Security & Cryptography

- [Android Application Reverse Engineering](https://awesome-repositories.com/f/security-cryptography/android-application-reverse-engineering.md) — Facilitates the analysis and extraction of code from Android applications to understand internal logic without source code.
- [Android Package Signing](https://awesome-repositories.com/f/security-cryptography/android-package-signing.md) — Recomputes cryptographic signatures after binary modification to ensure the package remains valid and installable.
- [Package Signing](https://awesome-repositories.com/f/security-cryptography/package-signing.md) — Computes cryptographic signatures for modified archives to ensure security compliance and OS compatibility.
- [Android Security Auditors](https://awesome-repositories.com/f/security-cryptography/android-security-auditors.md) — Analyzes Android binary behavior through bytecode manipulation and security auditing in controlled environments.
- [Malware Analysis](https://awesome-repositories.com/f/security-cryptography/malware-analysis.md) — Allows deconstruction of suspicious Android packages to inspect bytecode and observe behavior for malware analysis.
- [Mobile App Security Auditing](https://awesome-repositories.com/f/security-cryptography/vulnerability-assessment-testing/security-testing-auditing/mobile-app-security-auditing.md) — Enables security auditing of Android binaries by injecting custom monitoring tools to test resilience against modifications.

### Software Engineering & Architecture

- [Application Binary Patching](https://awesome-repositories.com/f/software-engineering-architecture/binary-patching-utilities/source-level-patch-integration/binary-patch-toolchains/application-binary-patching.md) — Streamlines the repetitive workflow of decompiling, patching, and rebuilding software binaries.
- [Bytecode Manipulation](https://awesome-repositories.com/f/software-engineering-architecture/bytecode-manipulation.md) — Modifies compiled application instructions directly to inject custom logic without requiring access to source code.
- [Bytecode Patching](https://awesome-repositories.com/f/software-engineering-architecture/bytecode-patching.md) — Provides capabilities to modify compiled Android binaries to inject custom logic without original source code access.
