So I have a debug APK produced by Gradle. I used zip tool to unpack it:
unzip debg_app.apk -d some-folder
After that I have packed it back into apk using zip command:
zip -r new_debug_app.apk some-folder
When I try to install the new APK (via adb) it gives an error:
base.apk is signed using APK Signatur e Scheme v2, but no such signature was found. Signature stripped?
Does anybody know if repackaging APK breaks the signature? And if so - is it possible to avoid it?