Huawei began building its own phone-testing system, xDeviceRobot, in early 2012. The Chinese company hoped to improve the quality of its mobile hardware, which tended to fail far more often than competitors' devices in third-party trials. In May 2012…