The vast majority of the market isn't in flagship phones, and even in those the last few generations of flagship features have been mostly based around software anyway.
I'm guessing we're one or two more big nudges away (i.e. - EU regulation/gigantic privacy kerfuffle/Google breakup) from a standard open-source phone software stack being a viable standalone business model almost by necessity. App stores currently take something around 30%? Maybe in the future you'll pay $25 up front for the phone software, and this open source software stack will take a 15% cut from the developer side instead.
Or maybe I'm just dreaming.
The hardware is too slow to use as my main phone (it's like 10 years behind normal phone HW), but I assume that as the performance needs of average users plateaus "10 year old hardware" will be more than enough eventually. Look at how modern phones have not changed much in the past 5 years.
Manufacturing a low-volume, open device isn't going to be cost-competitive without the hardware being a commodity.
I think we're getting closer to that point, though.