Upstart Xiaomi was the top smartphone company in China last year with a 12.5 percent market share, narrowly outpacing South Korea’s Samsung, market intelligence firm International Data Corp said on Tuesday.