Xiaomi will invest RMB 3.3 billion in R&D for the first phase of its self-driving project and will deploy 140 test vehicles.