Metadata-Version: 2.4
Name: stitch
Version: 0.0.21
Author-email: Alon Schwartzblat <alon.ponch@gmail.com>
License-Expression: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyYAML
Requires-Dist: androguard
Dynamic: license-file

# 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:
- [MakoPatcher][https://github.com/Schwartzblat/MakoPatcher]- A patcher for 12+ app.

## How to use
### Installation
You can install Stitch using pip:
```bash
# 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:
```python
from stitch import Stitch

with Stitch(
        apk_path='./input.apk',
        output_apk='./output.apk',
        temp_path='./temp',
        external_module='./smali_generator'
) 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.
