So I fear, that we need stronger consumer protection for software products. I do not know the situation in the US, but in the EU we have a mandated 2 year warranty for almost every product with very few sensible exceptions (food and the like).
We need the same for software. Features that are advertised have to be guaranteed. Of course software has bugs, so the law has to be about software getting fixed, not being perfect. Actually that is the same with physical products as they do not have to be replaced, they can be repaired, so this does not even make a difference.
There has to be some lightweight definition of non-functional requirements. This one is difficult and dangerous as the big players could unite and regulate the small ones out.
Related to that, double or triple the warranty periods. This is not so much an issue with smartphones and the like, as they become obsolete by superior successors or fashion, but with stuff like printers, vacuum cleaners or electric toothbrushes. Of course, this would hurt companies like hell and will never happen. I imagine in the long run, it would actually be super beneficial to those, who remain, because it would create a brand "Sold in the EU" much like "Made in Germany" with all the mythos of the deregulated Autobahn but the highly regulated warranties :D