British Prime Minister Boris Johnson has granted China's Huawei a limited role in the UK's 5G mobile network.

Boris Johnson resisted US pressure to exclude the company from next generation communications on fears China could use it to steal secrets.

In the biggest test of his post-Brexit foreign policy to date, Mr Johnson ruled that "high-risk vendors" would be allowed into the "non-sensitive" parts of 5G networks, but their involvement would be capped at 35%.

They would be excluded from the sensitive core of networks, where data is processed, and banned from all critical networks and sensitive locations such as nuclear sites and military bases, the government said.

The United States has said that it is "disappointed" by the decision.

"There is no safe option for untrusted vendors to control any part of a 5G network," a senior administration official said in a statement to AFP. "The United States is disappointed by the UK's decision."

Washington has banned Huawei from the rollout of the next generation mobile network that offers almost instantaneous data transfer because of concerns that the firm could be under the control of Beijing, an allegation it strongly denies.

The US had warned that if London gives Huawei a role then it could scale back intelligence cooperation. 

"This is a UK-specific solution for UK-specific reasons and the decision deals with the challenges we face right now," Communications Secretary Nicky Morgan said following a meeting of the National Security Council chaired by Mr Johnson.

We need your consent to load this rte-player contentWe use rte-player to manage extra content that can set cookies on your device and collect data about your activity. Please review their details and accept them to load the content.Manage Preferences

Huawei was not mentioned by name in the British government's statement, but British cyber security officials said they had always treated the company as a "high risk" vendor. 

Huawei said it was happy with the UK decision.

"Huawei is reassured by the UK government's confirmation that we can continue working with our customers to keep the 5G roll-out on track," said Victor Zhang, Vice-President, Huawei.

"This evidence-based decision will result in a more advanced, more secure and more cost-effective telecoms infrastructure that is fit for the future. It gives the UK access to world-leading technology and ensures a competitive market," he added.

Sources last week said that senior British officials had proposed granting Huawei a limited role in the 5G network.

This "calculated compromise" could be presented to Washington as a tough restriction but also accepted by British operators already using the company's equipment.

Huawei, the world's biggest producer of telecoms equipment, says the US wants it blocked from Britain's 5G network because no US company can offer the same range of technology at a competitive price.

The US has argued that as 5G technology evolves, the distinction between the "edge" and "core" will blur as data is processed throughout the network, making it difficult to contain any security risks.

Huawei's equipment is already used by Britain's biggest telecoms companies such as BT and Vodafone, but it has been largely deployed at the "edge" of the network and excluded in the "core" where data is processed.