The shift from rules to data to cognition, compressed into two years, underscores the pressure Xiaomi faced. In the ...