Apple is losing ground in the world’s third-largest smartphone market