Being able to control the supply chain in China is a key to the rapid success of Xiaomi.