Malaysia’s Prime Minister Mahathir Mohamad came out in support of Huawei Technologies Co., the Chinese technology giant blacklisted by the U.S. amid claims the group aids Beijing in espionage.

The Southeast Asian country will use Huawei’s gear “as much as possible” as they offer “tremendous advance over American technology,” Mahathir said at a forum in Tokyo on Thursday.

The public comments by Mahathir are a snub to the Trump administration’s campaign against the telecommunications network-gear maker. They also signal U.S. efforts to win allies against Huawei are flopping in some countries that are prioritizing development of 5G wireless networks, one of the firm’s specialties.

The targeting of Huawei by the U.S. has also complicated the trade war between Washington and Beijing, leaving telecom operators around the world to decide whether to shun the Chinese equipment maker.

This week, Singapore-based mobile phone carrier M1 Ltd. said it’s open to more dealings with the Chinese company, while flagging that there will be alternative providers as well for 5G infrastructure. A day later, Japan-based SoftBank Corp. selected Nokia Oyj and Ericsson AB as vendors for its next-generation wireless network, excluding long-time supplier Huawei.

Mahathir had also visited Huawei’s Beijing office in late April.

“We found that Huawei is very advanced” in the use of artificial intelligence, he said at the time. “We see there is an opportunity for us, together with Huawei, to improve our capacity in the fields of communication and AI.”

Outside Asia, the U.K.’s BT Group Plc announced plans to remove Huawei gear from the core of its mobile network soon after the head of Britain’s foreign intelligence agency MI6 said the U.K. warned about the risks of using Chinese equipment.