android_of_theseus/theseus_autopatcher
Jean-Marie Mineau e34415857d
wip
2025-03-26 11:56:10 +01:00
..
src/theseus_autopatcher wip 2025-03-26 11:56:10 +01:00
.gitignore wip 2025-03-26 11:56:10 +01:00
poetry.lock use relative path 2025-03-14 18:20:05 +01:00
pyproject.toml use relative path 2025-03-14 18:20:05 +01:00
README.md glueware 2025-03-14 17:47:02 +01:00

Android Theseus Patcher

This is mostly glueware between the theseus frida python package (used to get runtime information) and the theseus patcher (rust binary used tp patch the apk).

This package embed the patcher binary for ease of use. The embedded version is build for linux x86_64, statically linked to musl. For other target platform (windows, arm, ect), a different patcher binary can provided at runtime.

Build

TODO: use nix build the project

Before building this package, the patcher binary must be built with the musl target. This require the x86_64-unknown-linux-musl to be installed, as well as musl-gcc:

rustup target add x86_64-unknown-linux-musl
doas pacman -S musl

Build the patcher:

cd ../patcher
cargo build --release --target=x86_64-unknown-linux-musl
cd -

Copy to patcher to the python directory:

cp ../patcher/target/x86_64-unknown-linux-musl/release/patcher src/theseus_autopatcher/patcher_86_64_musl

Build the package:

poetry build