Right to repair is increasingly hitting people outside of agrarian/industrial contexts. This month, Google shipped the last update for my Pixel phone. The hardware is functional and in great shape, but I don't think there are any truly viable ways for me to keep it secure. I have a tablet that long-ago met the same fate. This is in the same world where I can 'apt-get update' my seven-year old desktop and work with ap…
The original Pixel is just over 3 years old and is now EOL for official releases.
iOS 13 (current version) has minimum hadware of the iPhone 6S, released September 2015. That may only be a year but it will continue to receive iOS 13 updates for probably another year or so at least (rumour has it iOS 14 will be released late 2020 and no one yet knows the minimum hardware spec for that).
Android has always been terrible for OS updates. Google's hardware was at least significantly better than, say, Samsung (for older phones getting the latest Android) but still... not great.