Open IzzySoft opened 4 days ago
Signing the APK fails in your example, because the password for the keystore and the key are different: https://developer.android.com/studio/known-issues#ki-key-keystore-warning
But yeah, the README is not up-to-date with this. I'll look into it
Would be great if signing could be skipped altogether. I'd need an unsigned APK anyway. But are you saying passwords for store and key must be identical (then why separate variables for them)? The error message at the place you've linked to is different. But OK, I can give that a try, though I'd be surprised… Oh: surprise! WTF…
Holy crap, a second surprise: it's even reproducible!
"upstream_signed_apk_sha256": "0f349ab94afa1e9eea1253d95fb94dab669e647e146c3e634cfb8e92a399b36f",
"built_unsigned_apk_sha256": "f16322056e8b754caf071fa024dbf5208e59b7ac572f8adcede5bbf59d1bb8f6",
"signature_copied_apk_sha256": "0f349ab94afa1e9eea1253d95fb94dab669e647e146c3e634cfb8e92a399b36f"
(the hashes match) NIIICE!
(source)
Green shield is up already in the IzzyOnDroid repo. Thanks a lot for your help!
PS: I leave this issue open as reminder for the Readme update. Feel free to close – my problem was solved :star_struck:
The reason it failed is because sed -r '/signingConfig.release/d' -i app/build.gradle
is wrong; it should be sed -r '/signingConfigs.release/d' -i app/build.gradle
(note the "s" before the ".").
Fixed, thanks!
I've tried building the fdroid flavor from source but failed, as it seemingly insists on signing the APK but fails. Recipe:
Build error:
Even if I remove the signing call using
sed -r '/signingConfig.release/d' -i app/build.gradle
, same result. If I instead use./gradlew buildFdroidRelease
, as the Readme says, I don't get any APK.Can you please explain how to build an unsigned APK of the fdroid flavor? The hint from the Readme seems not to produce it.