Skip to main content

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:

  • [MakoPatcher][https://github.com/Schwartzblat/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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stitch-0.0.21.tar.gz (27.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stitch-0.0.21-py3-none-any.whl (27.5 MB view details)

Uploaded Python 3

File details

Details for the file stitch-0.0.21.tar.gz.

File metadata

  • Download URL: stitch-0.0.21.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

Hashes for stitch-0.0.21.tar.gz
Algorithm Hash digest
SHA256 6cfd2b3335822506fcb237df0e519eb1108a2d2a74f4e2e974edf2d96e42a919
MD5 8545f3529ad0d714b9c31fe12f6e874f
BLAKE2b-256 2c8be19f1e2910b32a15d5c20963b30f1e873887cc20730a3bafd624bf61c17c

See more details on using hashes here.

File details

Details for the file stitch-0.0.21-py3-none-any.whl.

File metadata

  • Download URL: stitch-0.0.21-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

Hashes for stitch-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 a624daccdf8ece6eabd5c9d7e3c3cebfc4b8945df9d8dddff5a76fba17d9a121
MD5 23754b1cd415b6df20b861d660da67a9
BLAKE2b-256 0dc83dfa365760570357a795f586e5a490f53f9d1d062a779257335b073555cc

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