From dc740dcf5cc90936c563d695d52d48f0d9a1548d Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Mon, 7 Apr 2025 16:59:31 +0200 Subject: [PATCH] add some doc --- README.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5161193..81ce06b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,23 @@ -Test cfg +# Test + +## Install + ``` -cargo run --bin dump_cfg -- -a /home/histausse/workspace/scool/cs/maltoy/maltoy/build/wanna_play_a_game.apk -m 'Lcom/game/MainActivity;->startGame()V' | dot -Tpdf | zathura - +python -m venv venv +source venv/bin/activate +pip install 'theseus-autopatcher[grodd] @ git+ssh://git@gitlab.inria.fr/androidoftheseus/android-of-theseus.git#subdirectory=theseus_autopatcher/' +``` + +## Run + +``` +theseus-autopatch -a test_dynloading.apk -o patched.apk -k keystore.ks --keypass 'P@ssw0rd!' +``` + + Note: `theseus-autopatch` embed a patcher binary that will only work on x86_64 linux computer, en even then, the binary is optimized for size instead of speed. You should probably build your own patcher binary for your own architecture and pass it to `theseus-autopatch` with `--patch`: + +``` +cd patcher +cargo build --release +theseus-autopatch -a test_dynloading.apk -o patched.apk -k keystore.ks --keypass 'P@ssw0rd!' --patch target/release/patcher ```