A few months before the U.S.-China trade war started in July 2018, local media coverage of President Xi Jinping was focused on his efforts to rally the country's top scientists and engineers to pursue breakthroughs in core technologies, as tensions simmered between Beijing and Washington.