Xiaomi Corp. made headlines in early August after it took the crown from Samsung Electronics Co. in sales of smartphones in China in the second quarter of 2014. The result might vary depending on estimates calculated in different ways, but it came as a large shock that this only four-year old Chinese company is threatening Samsung Electronics, which has been the largest smartphone seller in the Chinese market for years where it successfully beat rival Apple Inc.