WIP
This commit is contained in:
parent
ba02e70dcc
commit
a6a0740c61
11 changed files with 466 additions and 171 deletions
25
theseus_autopatcher/test.sh
Normal file
25
theseus_autopatcher/test.sh
Normal 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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue