For all who are holding "But Apple supports iPhones for 5 years" up, I want to remind you, that Fairphone release a new Android version for the almost 6 year old Fairphone 2 just 2 weeks ago.
Yes, it's android 9, but that's fine, that's supported. (it was also just ported to Android 9 just in April. And if it falls out of official support, there can still be custom ROMs.)
Oh and obviously you can still buy replacement parts directly.
@Crocmagnon which I think is fair, as Apple is also the only iOS manufacturer. So I'm not sure if I want to go down the road of "unless more Android manufacturers do this, it's worthless/not good enough/…".
If Google and Samsung don't provide these updates for their devices, don't buy them. Buy a fairphone instead. I mean, some people argue that this is what the benefit of the free market is, that you can choose your device.
This is my personal microblog. It's filled with my fun, joy and silliness.