15 lines
490 B
Bash
Executable File
15 lines
490 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Starting patch"
|
|
|
|
set -euo pipefail
|
|
|
|
apktool b -f patched_app
|
|
zipalign -f 4 patched_app/dist/app-release.apk patched_app/dist/app-release-aligned.apk
|
|
apksigner sign -out patched_app/dist/app-release-signed.apk --ks-key-alias 'apk' --ks apk.keystore --key-pass 'pass:password' --ks-pass 'pass:password' -v patched_app/dist/app-release-aligned.apk
|
|
adb uninstall com.example.oxidized_intentions
|
|
adb install patched_app/dist/app-release-signed.apk
|
|
|
|
echo "Patched successfully"
|
|
|