New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apkpatcher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apkpatcher

Tool use as library or in cli to patch an APK, inject some libraries inside the APK or add a custom certificate

  • 0.1.19
  • PyPI
  • Socket score

Maintainers
1

README

GENERAL INFO

Project: Library to patch apk (inject frida gadget)
Author: MadSquirrel
License: GNU General Public License v3.0
Version: v1.0
Date: 02-06-21

GOAL

Library to patch apk (inject frida gadget) this code is inspired by this project :https://github.com/badadaf/apkpatcher.

The improvements added by this fork are the following:

  • modification of xml files such as AndroidManifest without extracting the resources. Extracting the resources usually prevents to rebuild the apk.
  • Use as an API
  • Installation as a package

USAGE

To use as library you just need to:

import apkpatcher
patcher = apkpatcher.Patcher(<apk_path>, <version>, <sdktools>)
patcher.patching(<path_gadget>, <arch>, output_file=<output_file>, user_certificate=<true|false>)

To use as a program you just need to:

apkpatcher -a <apk_path> -g <path_gadget> -s <sdktools> -b <version> -r <arch> -o <output_file>

You could use it as docker with this command line:

docker run --rm -v .:/pwd -it madsquirrels/apkpatcher -a base.apk --download_frida_version 16.3.3

For more information please visit https://apkpatcher.ci-yow.com/

EXEMPLE

import apkpatcher
patcher = apkpatcher.Patcher(<apk_path>, <sdktools>, <version>)
# not mandatory
patcher.add_network_certificate(<custom_certificate>)
patcher.set_arch(<arch>)
patcher.pause(<True|False>)
# end not mandatory
patcher.patching(<path_gadget>, <arch>, output_file=<output_file>, user_certificate=<true|false>)

INSTALL

sudo python3 -m pip install .

Requirement

setup your sktools as follow:

CHANGELOG

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc