Samsung Galaxy S5 checks all of these. I prefer it with Lineage 14 (Android 7), but ran it with Android 8, and it can support up to Android 10 or 11 IIRC, although later versions are somewhat slow.
Samsung Galaxy J7 (2015) might also fit the criteria, even though it’s not a “flagship”.
If you’re looking for alternate OS list for smartphones and tablets, I compiled a list.
Samsung Galaxy S5 checks all of these. I prefer it with Lineage 14 (Android 7), but ran it with Android 8, and it can support up to Android 10 or 11 IIRC, although later versions are somewhat slow.
Samsung Galaxy J7 (2015) might also fit the criteria, even though it’s not a “flagship”.
If you’re looking for alternate OS list for smartphones and tablets, I compiled a list.