Hugo Barra, former Android chief, now works at Xiaomi. Photo: Xiaomi