Xiaomi is one of the world’s largest smartphone and consumer-electronics companies. It has a large global hardware and software-engineering workforce.