Amid trade and diplomatic tensions between China and the U.S., Beijing has been keen to replace Western-made technology with domestic alternatives.