Skip to content

Skip Google Play in-app update check for non-Google Play installs#206

Draft
aveao wants to merge 1 commit into
coredevices:masterfrom
aveao:no-play-update-check
Draft

Skip Google Play in-app update check for non-Google Play installs#206
aveao wants to merge 1 commit into
coredevices:masterfrom
aveao:no-play-update-check

Conversation

@aveao

@aveao aveao commented May 20, 2026

Copy link
Copy Markdown
Contributor

Nicety for #184. It's harmless but no point in checking and no point in resulting scary logs if it isn't installed through gplay.

@aveao aveao marked this pull request as ready for review May 21, 2026 07:01

@sjp4 sjp4 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think there's any risk this doesn't work? The code looks sensible, but unfortunately it's an epic pain to test this flow (creating a dedicated build, sending that to the play store on a special internal channel, installing it, publishing an update, etc, etc) so I'm kinda scared to touch it.

@aveao

aveao commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

What if we first merge a debug line that just logs what it's installed through, then a release or two later we merge this?

@sjp4

sjp4 commented May 22, 2026

Copy link
Copy Markdown
Member

That should work

@aveao aveao force-pushed the no-play-update-check branch from 8782c00 to 8d5c086 Compare May 22, 2026 18:08
@aveao aveao marked this pull request as draft May 22, 2026 18:08
@aveao

aveao commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

Opened #210 for that. This PR now builds on that, so it's marked as draft until that's merged, feel free to undraft later.

Resolve the installer at init and only build the Play requestUpdateFlow()
pipeline when it is com.android.vending. Sideloaded/adb/other-store/debug
installs short-circuit to NoUpdateAvailable, avoiding the Play update API
call and its notification on builds that can't be updated through Play.

The installer is logged as debug in both branches.
@aveao aveao force-pushed the no-play-update-check branch from 8d5c086 to fc0b786 Compare June 5, 2026 21:41
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.

2 participants