more ctf stuff
This commit is contained in:
14
2025/tfc/rev/patch_apk.sh
Executable file
14
2025/tfc/rev/patch_apk.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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"
|
||||
|
||||
Reference in New Issue
Block a user