For the Galaxy S series, Samsung said it would provide at least seven generations of OS updates and seven major security updates, so you're looking at about seven years of support.
Major updates are usually released on a yearly basis so you could avoid buying a new phone and save hundreds for up to seven years by simply keeping up with them, as well as taking care of the handset and its battery.
Samsung promises to offer a whopping seven Android updates and seven major security updates.
At the launch of the OnePlus 13, OnePlus committed to at least four years of Android updates and six years of security updates.
Xiaomi offers four years off Android updates and five years security updates.