Usually get 3 years. Pixel 3 launched in October 2018, and its updates end in about a month. I feel like that's still way too short, and causes many millions of still-usable phones to be trashed or recycled every year. Aftermarket OSes aren't an option for a lot of people, because some apps will refuse to run on an unofficial OS.