Decompile APK to Java
Project description
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:
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:
apkpatcher -a <apk_path> -g <path_gadget> -s <sdktools> -b <version> -r <arch> -o <output_file>
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 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
Project details
Release history Release notifications | RSS feed
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.0.10.tar.gz
(32.0 kB
view hashes)
Built Distribution
Close
Hashes for apkpatcher-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ec11a82777f99a76f1a453ca0a91a5868084eaa20e36a7ccb7ff38a40f721c3 |
|
MD5 | 399ba3374e6e3f7fa20109f999ecc6ae |
|
BLAKE2b-256 | 4afd8b1ba90c5f596788c5ca76806ac3e18ce22f1df7dfc87db49d21c21dfff0 |