JINJIANG, China (NYTIMES) - With a dragnet closing in, engineers at a Taiwanese chipmaker holding US secrets did their best to conceal a daring case of corporate espionage.

As police raided their offices, human resources workers gave the engineers a warning to scramble and get rid of the evidence. USB drives, laptops and documents were handed to a lower-level employee, who hid them in her locker. Then she walked one engineer's phone out the front door.

What those devices contained was more valuable than gold or jewels: designs from a U.S. company, Micron Technology, for microchips that have helped power the global digital revolution.

According to Taiwanese authorities, the designs were bound for China, where they would help a new, US$5.7 billion microchip factory the size of several airplane hangars rumble into production.

China has ambitious plans to overhaul its economy and compete head-to-head with the United States and other nations in the technology of tomorrow. The heist of the designs two years ago and the raids last year, which were described by Micron in court filings and police in Taiwan, represent the dark side of that effort - and explain in part why the United States is starting a trade war with China.

A plan known as Made in China 2025 calls for the country to become a global competitor in an array of industries, including semiconductors, robotics and electric vehicles. China is spending heavily to both innovate and buy up technology from abroad.

Politicians in Washington and US companies accuse China of veering into intimidation and outright theft to get there. And they see Micron, an Idaho company whose memory chips give phones and computers the critical ability to store and quickly retrieve information, as a prime example of that aggression.

Three years ago, Micron spurned a US$23 billion takeover offer from a state-controlled Chinese company. Today it faces a lawsuit and an investigation in China, which accounts for about half its US$20 billion in annual sales.

Then Micron was the target of the heist in Taiwan, according to officials there and a lawsuit the company has brought against the Taiwanese company that employed the engineers, UMC, and the Chinese company it says wanted access to the technology, Fujian Jinhua Integrated Circuit Co.

Other companies may face similar predicaments to Micron, industry experts said.

One state-backed factory in the city of Wuhan, owned by Yangtze Memory Technology Co., or YMTC, will be turning out chips that look similar to those made by Samsung, the South Korean chipmaker, said Mark Newman, an analyst at Sanford Bernstein.

"The YMTC one is virtually identical to Samsung's, which makes it pretty clear they've been copying," Newman said.

A Samsung spokeswoman declined to comment, and YMTC officials did not return calls for comment.

Earlier this year, President Xi Jinping of China visited YMTC's production facilities, one way China's leaders show their endorsement for projects.

China defends Made in China 2025 as necessary for its economic survival. It still depends on other countries for crucial goods like chips and software, and China is offering funding for homegrown labs and for entrepreneurs who hope to grab a piece of the future.

But Trump administration officials in a report earlier this year recounted how Chinese officials have at times helped local companies get intellectual property from U.S. firms, including in the energy, electronics, software and avionics sectors.

US business groups worried about Made in China 2025 point to Micron. The account of its struggles was based on Taiwanese and US legal documents.

In 2015, representatives from Tsinghua Unigroup, a Chinese chipmaker with major state backing, approached Micron with an acquisition offer, which the company rejected. It later also turned down several partnership offers from Chinese companies out of concern for protecting its technology, said a person with knowledge of the situation, who asked not to be identified because the person lacked authorisation to speak publicly.

That was when one Chinese company resorted to theft, Micron said in documents filed last December in the US District Court for the Northern District of California.

Micron's accusations focus on efforts by Fujian Jinhua Integrated Circuit, a state-backed chipmaker, to build a US$5.7 billion factory in China's Fujian province.

Two years ago, Jinhua tapped UMC, a Taiwanese company, to help it develop technology for the factory. Instead of going through the lengthy steps required to design the technology, Micron said in its suit, UMC and Jinhua decided to steal it.

A UMC spokesman denied the allegations and declined to comment further. Jinhua did not respond to requests for comment.

First, UMC lured away engineers from Micron's Taiwan operations with promises of raises and bonuses, according to Taiwanese authorities. Then, it asked them to bring some of Micron's secrets with them, according to Micron's court filings and authorities.

The engineers illegally took with them more than 900 files that contained key specifications and details about Micron's advanced memory chips, authorities said.

Micron grew suspicious, according to its court documents, after discovering one of its departing engineers had turned to Google for instructions on how to wipe a company laptop. Later, at a recruiting event in the United States aimed at Micron employees, Jinhua and UMC showed PowerPoint slides that used Micron's internal code names when discussing future chips it would make, according to the court documents.

Alerted by Micron, Taiwanese police tapped the phone of one Micron engineer, Kenny Wang, who was being recruited by UMC. According to an indictment in Taiwan against Wang and others, UMC reached out to Wang in early 2016 using Line, the smartphone messaging app, while he was still working for Micron.

UMC explained it was having problems developing its memory chip technology. Wang then grabbed the information it needed from Micron's servers, and later used it to help UMC's design. Police said Wang received a promotion at UMC.

When investigators showed up at UMC's offices early last year, police said, some employees rushed to hide what they had taken from Micron. Wang and another former Micron employee gave laptops, USB flash drives and documents to an assistant engineer, who locked them in her personal locker. She then left the office with Wang's phone - the one that police had tapped, which was quickly tracked down.

UMC filed its own criminal complaint against Wang last year, which Taiwanese prosecutors rejected. Wang and other engineers who were charged said they had taken the trade secrets for personal research. Wang did not respond to emails and phone calls for comment.

In January, Micron was hit with a patent infringement suit by Jinhua and UMC over several types of memory. As part of the suit, the companies requested the court ban Micron from making and selling the products and pay them damages.The case is being heard by a court in Fujian province. The Fujian provincial government is an investor in Jinhua.

In a letter sent to President Donald Trump, Sens. James Risch and Mike Crapo, R-Idaho, expressed concern about the entire case and specifically the rapid pace with which the patent lawsuit has proceeded. The case could block Micron from selling some products in China.

"If the case against Micron moves forward, and the Chinese government once again rules in favor of itself, it would cause substantial damage to Micron and the U.S. tech industry as a whole," said the letter, which was viewed by The New York Times.

In May, China's market regulator opened a price-fixing investigation into Micron, along with the South Korean memory makers SK Hynix and Samsung Electronics.

Memory prices have jumped over the past year, because of spiking demand and limited production by the three companies, which dominate the market. Another China regulator, which has said it is also monitoring the price jump, also gave a multimillion-dollar grant to Jinhua.

Jinhua and other Chinese chipmakers face hurdles in catching up. Production of semiconductors involves a highly complex and automated production process that controls everything down to the atomic level.

Jinhua and others are spending big to get there. In Jinjiang, a city in Fujian province once known as a shoe-manufacturing centre, Jinhua's new factory is almost finished. Rising five stories and stretching several football fields long, the structure boasts 100,000 square feet of new office space.

Economic planners in Jinjiang said they were hoping to attract more talent from Taiwan. In addition to adding more flights there, the town was in the process of building out a bilingual international school, a hospital with international accreditation, and new upscale apartments. The new plant is just a short drive from the airport.

"Most of Made in China 2025 is likely to succeed. Not all technologies are rocket science," said Dan Wang, a technology analyst in Beijing with Gavekal Dragonomics, a research firm. "With enough subsidies, Chinese firms have a good shot at catching up to the technological frontier."