I'm not sure how we could enforce that, but maybe the law could stipulate that a certain minimum percentage of users must use 3rd party app stores, or use web apps. They should pay a fine if less than say 5% of apps are distributed outside the app store, or if less than 5% of people use a 3rd party browser engine.