Four years ago, Xiaomi was a successful smartphone business and its car business consisted of nothing more than a plan approved by the board and a vow by billionaire founder Lei Jun to make it work.