Just to add another post, I still use my Note 3 once in a while - September 2013, more than 5 years old. It didn't get any updates past 5.0.1, and because it's an AT&T, there;s no way to get a LineageOS on it, but it works as well as the day I got it (except for the battery - that had to be replaced once, but the postage was about as much as the battery). Rooted and all tricked out, 32GB of internal storage (no SD card at the moment, but I can pop any of several into it), and plenty of internal space left, even though I'm a software junkie.
Android phones last only 2 years? That's Apple hype. Not that iPhones don't last a long time, but try putting iOS 12 on an iPhone 4. Granted, some manufacturers of Android phones put out garbage (and probably all of them put out some cheap phones that don't last, but that's the individual model, not Android). And since Marshmallow, rooting any Android phone (which is important to me - how can you run Linux without being able to elevate to root?) is a bit trivial, thanks to Topjohnwu.