It's quite easy and I think most manufacturers of electronic devices, electric appliances and even cars are doing it.
You just have to calculate what the average working time during the warranty period and adjust the quality of materials and the build quality so the MTBF is just a bit higher than that time.