Apple’s iPhone sales are sinking while a new player is rewriting the rules of smartphone economics.