add some doc

This commit is contained in:
Jean-Marie Mineau 2025-04-07 16:59:31 +02:00
parent 287ddb0a34
commit dc740dcf5c
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -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
```