Skip to content

Support app updates for non-Play Android builds - #416

Merged
linroid merged 2 commits into
mainfrom
android-direct-app-updates
Oct 6, 2026
Merged

linroid merged 2 commits into
mainfrom
android-direct-app-updates

Conversation

@linroid

@linroid linroid commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Android APKs distributed outside Google Play currently have no in-app update flow. Add direct and play distribution flavors: the direct build offers GitHub updates in Settings → About, while Play builds leave updates to Google Play and exclude the updater dependency, installation permission, activity, and file provider.

The direct updater reuses release discovery and SHA-256 verification, validates the APK's package, release version, and increasing version code, and opens Android's permission screen and package installer only after the user chooses to install. It supports automatic checks, progress, retries, and activity recreation. The GitHub release workflow now builds assembleDirectRelease under the existing asset name; Play uses bundlePlayRelease.

Validation:

  • 17 Android updater/validation tests and 33 shared updater tests passed.
  • Both debug APKs, the minified direct release APK, and the Play release bundle built successfully; release vital lint passed.
  • Inspected packaged manifests to verify the updater permission and components appear only in direct builds, including after shrinking.
  • A signed on-device upgrade, including permission denial and installer cancellation, still needs manual smoke testing.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T10:57:14.986039Z 46ce066 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Test Results

 1 392 files  + 2   1 419 suites  +2   10m 58s ⏱️ +22s
 9 143 tests +18   8 914 ✅ +18  229 💤 ±0  0 ❌ ±0 
10 482 runs  +18  10 253 ✅ +18  229 💤 ±0  0 ❌ ±0 

Results for commit e91127f. ± Comparison against base commit 0a6a9c8.

@linroid
linroid merged commit 081b28e into main Oct 6, 2026
13 checks passed
@linroid
linroid deleted the android-direct-app-updates branch October 6, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant