patch-apk
patch-apk copied to clipboard
Wrapper to inject an Objection/Frida gadget into an APK, with support for app bundles/split APKs.
Hi @NickstaDB, $ apktool --version 2.6.1 $ objection version objection: 1.11.0 $javac -version javac 11.0.14 $java -version openjdk version "11.0.14" 2022-01-18 OpenJDK Runtime Environment (build 11.0.14+9-post-Debian-1) OpenJDK 64-Bit Server VM...
I got your script to work without exceptions when trying to patch an apk (bundle) from google play, but when installing, the app just flickers and then closes down... I...
It also crashes for the Revolut App. Output: Getting APK path(s) for package: com.revolut.revolut [+] APK path: /data/app/com.revolut.revolut-fY1VPzXK25HyfeIpJwuHxg==/base.apk [+] APK path: /data/app/com.revolut.revolut-fY1VPzXK25HyfeIpJwuHxg==/split_config.arm64_v8a.apk [+] APK path: /data/app/com.revolut.revolut-fY1VPzXK25HyfeIpJwuHxg==/split_config.de.apk [+] APK path: /data/app/com.revolut.revolut-fY1VPzXK25HyfeIpJwuHxg==/split_config.xxhdpi.apk...
**./patch-apk.py dk.midttrafik.mobilbillet** ``` Getting APK path(s) for package: dk.midttrafik.mobilbillet [+] APK path: /data/app/dk.midttrafik.mobilbillet-bkxymTQogFQdAr90Pfs4lA==/base.apk Pulling APK file(s) from device. [+] Pulling: dk.midttrafik.mobilbillet-base.apk Patching dk.midttrafik.mobilbillet-base.apk with objection. Patching APK to enable support...
If we don't, all apks with a tarfet Sdk version to 30+ will not be installed by adb. Something like : `adb: failed to install base.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Scanning Failed.:...
- This was added to objection specifically for split apks: https://github.com/sensepost/objection/pull/375 - Required to install patched apk on android 11+ https://developer.android.com/about/versions/11/behavior-changes-11#minimum-signature-scheme
Really great tool! Unfortunately it produces an error if I try to patch the Number26 app. Output: Getting APK path(s) for package: de.number26.android [+] APK path: /data/app/de.number26.android-volni_2uSzOHIPhw6yihkA==/base.apk [+] APK path:...
there is a stage where the apk might be build by apktool in enableUserCerts() that may not work because --use-aapt2 is not implemented
I'll give Duolingo as an example. I tried with 3 versions of apktools and i get the same error. Using windows 11 and Powershell. **While writing this I found a...
args "apktool.bat" instead "apktool" for windows nt Same method as runApkTool() to avoid apktool PAUSE