I agree with this in principle.
However this would only make Apple stronger and android weaker.
Apple already does 6 years of updates, whereas android manufacturers are lucky to provide 2 years. Imposing such terms of android manufacturers will make them leave the market - thus reducing competition.