Nexus OTA Updater does not check if $new_version > $old_version #713

Closed
jadoro opened this Issue Aug 27, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@jadoro

jadoro commented Aug 27, 2017

My Nexus 5X just asked me to install updates – available were

  • bullhead-2017.08.21.*
  • bullhead-incremental-2017.08.14.*

I went with 2017.08.21.* first, as I thought the more recent image will include old updates. Installing the update worked, however: bullhead-incremental-2017.08.14.* is still shown as available update.
If one tries to install it, the Updater does not recognize that the phone's version is actually newer. The process fails somewhere in Recovery mode.

Failing in recovery mode is a bit late imho, I would much prefer if

  • old updates are no longer shown as available
  • trying to install old updates fails early
@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Aug 27, 2017

Contributor

The legacy updater isn't going to receive any substantial changes anymore. https://github.com/CopperheadOS/platform_packages_apps_Updater is the modern updater and works much better. It resumes downloads that are interrupted, performs downgrade checks (by necessity since recovery isn't there to do it), works fully in the background without the user needing to manage updates at all, etc.

Contributor

thestinger commented Aug 27, 2017

The legacy updater isn't going to receive any substantial changes anymore. https://github.com/CopperheadOS/platform_packages_apps_Updater is the modern updater and works much better. It resumes downloads that are interrupted, performs downgrade checks (by necessity since recovery isn't there to do it), works fully in the background without the user needing to manage updates at all, etc.

@jadoro

This comment has been minimized.

Show comment Hide comment
@jadoro

jadoro Aug 27, 2017

Thanks for your explanation.
Is the new updater designed for usage on the Nexus devices?

jadoro commented Aug 27, 2017

Thanks for your explanation.
Is the new updater designed for usage on the Nexus devices?

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Aug 27, 2017

Contributor

It currently only targets devices with support for A/B updates but we have a pending change to make it work for devices with the legacy update infrastructure. However, we lack the resources to deploy it.

Contributor

thestinger commented Aug 27, 2017

It currently only targets devices with support for A/B updates but we have a pending change to make it work for devices with the legacy update infrastructure. However, we lack the resources to deploy it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment