The primary reason I moved to iPhones was because I got absolutely sick and tired of my android phones being abandoned by the manufacturer after a year. I'm sure it is better these days, but those earlier days of extremely slow Carrier-based updates completely ruined my trust and I know I'm not the only one.
Yeah it was pretty terrible until recently. It at least seems to be changing now. The Pixel 8 line and up now get 7 years of support, and Samsung followed shortly afterwards by doing the same with the S24 series (but not their lower end devices). There's still plenty of other Android devices that get barely any support though, so it's getting there, slowly.
Yeah, I won't trust Google on that unless they actually deliver. Too many canned projects by that company.
The iPhone 6S got iOS 9 to iOS 15, so 7 years of mainline software support and as of now it's still getting security updates - 9 years later (latest version as of now is 15.8.3 released end of July this year). The iPhone XS entered year 7 of mainline software support with iOS 18.
Sure, some phones only got 6 years of mainline software support, namely the iPhone 7 or iPhone X. They're all still receiving security updates though.
Google just now promised to more or less match that starting with the Pixel 8 series, but they didn't retroactively apply that policy to their previous devices. The Pixel 8 now has just shy of 6 years of mainline software support to go to fulfill Google's promise and we'll see how long they'll release security updates after that.
The S10 stopped receiving Android security updates in March 2022. The issue here is with an issue with a SmartThings app update on Android 12. Not sure if there's any Samsung devices that both run that version of Android and are still supported, and that's likely why the issue wasn't caught.
I suppose with an issue this serious, they're probably compelled to fix it regardless of whether or not the affected devices are still supported.