And if samsung pushes out a software update that breaks the original experience (adding adverts for example) you are entitled for at least a partial refund. So if you owned it for 9 years and on the 9th they added adverts, you get a 1/10th refund.
That way it becomes unprofitable to pump out IoT junk and then discontinue support a year later.
Maybe, but laws so far are slow and being circumvented in some areas of significant commercial interest. Maybe some technological approach could be better. A crude example - we already have more and more available spectrometers, which can analyze surface composition of many things, from which some properties can be estimated; of course, it's a long way to "quality meter".
With software we can have some differential analysis systems. Maybe we can have a working system where the software is analyzable - say, is stored on an easily analyzable module. Then we can try to check changes...