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>.

<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.40.tar.gz (47.3 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.40-py3-none-any.whl (46.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for apkpatcher-0.1.40.tar.gz
Algorithm Hash digest
SHA256 dbb0c244a677b5b71e0693378a5a7e3bacc1eaea072fcbecb4c84b8c6e8cb82b
MD5 0d8faa728f30876d5ed9aa50a8f4c00a
BLAKE2b-256 0577cdaa20a081290ce288f05f9ac43b8db45d3e1c225206051129b40fb4a3ef

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for apkpatcher-0.1.40-py3-none-any.whl
Algorithm Hash digest
SHA256 ec1ea3682b5efbdf1b2499df3a5283ff3a3c144326a0e98a8f1e14ac1a2d51ec
MD5 8dcaafabe647e772ec1613d6a498032e
BLAKE2b-256 516ca21694c4b173fc856fb6ad59e589f9f717797c051a6c86b0a758c32083e3

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