Skip to main content

# 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

This project has received funding from the OSINT Got Talent program of <a href=”https://epieos.com”>EPIEOS</a>. ![Sponsor](https://img.shields.io/badge/sponsor-nlnet-blue?style=for-the-badge&link=https%3A%2F%2Fnlnet.nl%2F)

<img src=”docs/source/images/Osint_Got_Talent_by_Epieos.svg” width=200px>

## USAGE

To use as library you just need to:

`python3 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: `bash 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:

`bash 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

`python3 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

`python3 sudo python3 -m pip install . `

### Requirement

setup your sktools as follow: - https://asthook.ci-yow.com/how.install.html#setup-sdktools install: - apktool - pip install -r requirements.txt

## CHANGELOG

Download files

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

Source Distribution

apkpatcher-0.1.41.tar.gz (52.1 kB view details)

Uploaded Source

Built Distribution

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

apkpatcher-0.1.41-py3-none-any.whl (51.5 kB view details)

Uploaded Python 3

File details

Details for the file apkpatcher-0.1.41.tar.gz.

File metadata

  • Download URL: apkpatcher-0.1.41.tar.gz
  • Upload date:
  • Size: 52.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.0

File hashes

Hashes for apkpatcher-0.1.41.tar.gz
Algorithm Hash digest
SHA256 90ae434e8e6b357e6aeab2e786de7f35136e56740c860a354da2be563a87f3f8
MD5 5f54a9f1e9e0ba507104c2f2098bd288
BLAKE2b-256 4d434105c2c0c027e9bc19991ecc23c2abfc26a7c2c2a10bf5519ff6185c1498

See more details on using hashes here.

File details

Details for the file apkpatcher-0.1.41-py3-none-any.whl.

File metadata

  • Download URL: apkpatcher-0.1.41-py3-none-any.whl
  • Upload date:
  • Size: 51.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.0

File hashes

Hashes for apkpatcher-0.1.41-py3-none-any.whl
Algorithm Hash digest
SHA256 9704ec5445fd0d4f7aadbcad2f3aa8fb5297403a420d8977712dd5eddbd207fa
MD5 d8a0119f711cd9679fa7fc579df2c65b
BLAKE2b-256 9c19f97fdb053788ea8481f0f70c6175f1a1888a5c894d0f493115938bfa312c

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