Repository navigation
Fix release APK installability - #5
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
versionNameand monotonicversionCodefrom thevX.Y.Zrelease tag/workflow inputapksignerbefore publishing itWhy
The current release workflow can fall back to Gradle's debug key. On GitHub-hosted runners that key is generated per runner, so two release APKs can be signed with different certificates. Android then rejects an update over an existing Sploot install, which matches the observed Play Protect warning followed by the app not installing.
This does not remove Play Protect's generic "unknown developer" warning for sideloaded APKs; avoiding that properly requires Play distribution/reputation. It does fix the install/update path after choosing "install anyway", provided the repo has a stable release keystore configured.
Required repository secrets
The release workflow now fails fast unless these are configured:
RELEASE_KEYSTORE_BASE64RELEASE_KEYSTORE_PASSWORDRELEASE_KEY_ALIASRELEASE_KEY_PASSWORDFor the first fixed release, use a new version tag above the currently installed APK, for example
v0.1.1or later. If the currently installed APK was signed by a different key, Android will still require uninstalling the old package once before installing the new stable-signed stream.