Metadata-Version: 2.1
Name: apkpatcher
Version: 0.0.6b0
Summary: Decompile APK to Java
Home-page: https://ci-yow.com
Author: MadSquirrel
Author-email: benoit.forgette@ci-yow.com
License: UNKNOWN
Download-URL: https://gitlab.com/MadSquirrels/mobile/apkpatcher
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 1 - Planning
Requires-Python: >=3.5
Description-Content-Type: text/markdown

# README


## GENERAL INFO


  Project: Library to patch apk (inject frida gadget)  
  Contributors: 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:  
  ```python3
  import apkpatcher

  patcher = apkpatcher.Patcher(<apk_path>, <sdktools>, <version>)
  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>
  ```



## EXEMPLE

  ```python3
  import apkpatcher

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

## INSTALL

  ```python3
  sudo python3 setup.py install
  ```

### Requirement
  setup your sktools as follow:
  - https://madsquirrels.gitlab.io/mobile/asthook/how.install.html#setup-sdktools
  install:
  - apktool
  - pip install -r requirements.txt


## CHANGELOG



