The PC ecosystem is the exception to the rule. 20 year lifetimes are typical, but in the smartphone world 10 years is treated as an impossibility. It is all disposable by design
I'm not sure about today's conventions, but it used to be that every component inside a car had a minimum standard of 10-year-life. The Toyota Landcruiser famously had a minimum 25-year-life for each and every single component. I have worked closely with some older Toyota engineers in Japan. It is possible but not conventional.
I am running the latest LineageOS on my OnePlus 5, which is eight years old. I intend to be using it for some time.
https://en.wikipedia.org/wiki/OnePlus_5