That's where LineageOS comes in. This is an open source operating system based on Android and compatible with many Android devices. Installing it isn't necessarily straightforward; you need to be familiar with the command line and follow directions specific to your device. But when you're done you'll have a modern operating system running on your older device. It's weird that we treat smartphones as disposable. Think about all the effort people put into keeping classic...
