15
Open Source Alternatives to Accubattery?
(sh.itjust.works)
F-Droid is an installable catalogue of FOSS (Free and Open Source Software) applications for the Android platform. The client makes it easy to browse, install, and keep track of updates on your device.
Matrix space | forum | IRC
If it's a flagship you can go way farther than five years. My last flagship lasted 7 years or so with very heavy use. I expect my current one to last longer.
It's the OnePlus Nord N200. It was actually released in 2021, but I purchased it new in 2023, since I could get Lineage OS on it.
So it's decidedly mid-range, but it gets the job done.
I would personally rather not spend two or three Monero on a phone if I can avoid it.