By David Kirton SHENZHEN, China -Smartphone maker Xiaomi Corp's second-quarter revenue rose a record 64% from a year earlier, it said on Wednesday, announcing the purchase of an autonomous driving startup as it prepares to expand into the competitive market. Sales reached 87.8 billion yuan ($13.56 billion), up from 53.54 billion a year earlier and beating analyst expectations of 84.53 billion yuan. Net income reached 6.32 billion yuan, up 87.4% year on year and above analyst expectations. U.S. government sanctions against Xiaomi's rival Huawei Technologies effectively crippled the tech giant's smartphone division and has allowed Xiaomi, along with Chinese Android makers Oppo and Vivo, to grow their market shares. Xiaomi's share of the global smartphone market grew 83% year-on-year in the quarter, ended in June, according to research firm Canalys.