No project description provided
Project description
Stitch
Stitch is a powerful APK patching python library that allows you to inject your own java module into any APK, bundle or XAPK file.
How it works
Will be added soon.
Projects using Stitch:
- WhatsAppPatcher- A patcher for WhatsApp Android app.
- MoovitPatcher- A patcher for Moovit app.
- MakoPatcher- A patcher for 12+ app.
How to use
Installation
You can install Stitch using pip:
# For now, install the test version from TestPyPI
pip install stitch
Basic Usage
Create an Android Gradle project like my smali_generator (Check it out in on of the examples) that generates the java module you want to inject.
Then, use the following code to patch an APK:
from stitch import Stitch
from stitch.common import ExternalModule
from pathlib import Path
with Stitch(
apk_path='./input.apk',
output_apk='./output.apk',
external_modules=[ExternalModule(Path(__file__).parent / './smali_generator',
'invoke-static {}, Lcom/smali_generator/TheAmazingPatch;->on_load()V')]
) as stitch:
stitch.patch()
And that's it! Your APK will be patched with the injected module.
Contributing
I will be happy if you want to contribute to this project. Feel free to open issues or submit pull requests.
Disclaimer
For educational purpose only or something like that. I am not responsible for any misuse of this software.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stitch-1.0.0.tar.gz.
File metadata
- Download URL: stitch-1.0.0.tar.gz
- Upload date:
- Size: 27.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70c9d508d72d2045a26c9ba347aa3b0bff6bd960b1cdfcde53514df913ff4109
|
|
| MD5 |
eb10f730a9a70fe82716083b0f386462
|
|
| BLAKE2b-256 |
d75214c8cdd404eefaa737df2f37312563bcf92768b4ab1c0955fdd55abacf70
|
File details
Details for the file stitch-1.0.0-py3-none-any.whl.
File metadata
- Download URL: stitch-1.0.0-py3-none-any.whl
- Upload date:
- Size: 27.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc55522918f038fe92b20d9d2a795889338466e926869a3325ac9471ac3f734f
|
|
| MD5 |
7d9f7c0378fe4e6142e8c8e6c2c05394
|
|
| BLAKE2b-256 |
ac8757168b9d503aae5825971ad55e2e3b0444f4d6f4532c455c60882b3efd40
|