Upstart Xiaomi was the top smartphone company in China last year with a 12.5 per cent market share, narrowly outpacing South Korea's Samsung, market intelligence firm International Data Corporation (IDC) said today.