Samsung has shipped 3.1 billion smartphones over the past decade, outpacing Apple by 700 million. But can it hold onto its lead?