Technology at the company is advancing faster than its Chinese rivals’ due in part to close collaboration with contract chipmakers.