This commit is contained in:
Jean-Marie Mineau 2025-04-04 15:08:28 +02:00
parent ba02e70dcc
commit a6a0740c61
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
11 changed files with 466 additions and 171 deletions

View file

@ -0,0 +1,25 @@
#!/usr/bin/bash
FOLDER=$(dirname "$(realpath $0)")
if adb devices | grep -q 'emulator-'; then
echo 'Emulator already started'
else
echo 'Emulator no started'
QT_QPA_PLATFORM=xcb alacritty -e ~/Android/Sdk/emulator/emulator -avd root34 &
fi
env --chdir "${FOLDER}" poetry build
TMP=$(mktemp -d)
python -m venv "${TMP}"
source "${TMP}/bin/activate"
pip install "${FOLDER}/dist/theseus_autopatcher-0.1.0-py3-none-any.whl"
#source .venv/bin/activate
adb wait-for-device
theseus-autopatch -a "${FOLDER}/../test_apks/dynloading/build/test_dynloading.apk" -o /tmp/patched_dynloading.apk -k "${FOLDER}/../test_apks/dynloading/ToyKey.keystore"
rm -rf "${TMP}"