Facebook has data-sharing partnerships with at least four Chinese electronics companies, including a manufacturing giant that has a close relationship with China's government, the social media company said on Tuesday.

The agreements, which date to at least 2010, gave private access to some user data to Huawei, a telecommunications equipment company that has been flagged by American intelligence officials as a national security threat, as well as to Lenovo, Oppo and TCL.

The four partnerships remain in effect, but Facebook officials said in an interview that the company would wind down the Huawei deal by the end of the week.

Facebook gave access to the Chinese device makers along with other manufacturers — including Amazon, Apple, BlackBerry and Samsung — whose agreements were disclosed by The New York Times on Sunday.

Read more from the New York Times:

For 'Columbiners,' school shootings have a deadly allure

The evangelical fight to win back California

With 'Spygate,' Trump shows how he uses conspiracy theories to erode trust

The deals gave Facebook an early foothold in the mobile market starting in 2007, before stand-alone Facebook apps worked well on phones, and allowed device makers to offer some Facebook features, such as address books, "like" buttons and status updates.

Facebook officials said the agreements with the Chinese companies allowed them access similar to what was offered to BlackBerry, which could retrieve detailed information on both device users and all of their friends — including work and education history, relationship status and likes.

Facebook officials said that the data shared with Huawei stayed on its phone, not the company's servers.

Senator Mark Warner of Virginia pointed out that concerns about Huawei were not new, citing a 2012 House Intelligence Committee report on the " close relationships between the Chinese Communist Party and equipment makers like Huawei."

"I look forward to learning more about how Facebook ensured that information about their users was not sent to Chinese servers," Mr. Warner said.

"All Facebook's integrations with Huawei, Lenovo, Oppo and TCL were controlled from the get-go — and Facebook approved everything that was built," said Francisco Varela, a Facebook vice president. "Given the interest from Congress, we wanted to make clear that all the information from these integrations with Huawei was stored on the device, not on Huawei's servers."

Huawei did not immediately respond to requests for comment.

The company was the recipient of billions of dollars in lines of credit from China's massive state-owned policy banks, helping to fuel its overseas expansion in Africa, Europe and Latin America. Its founder, Ren Zhengfei, is a former engineer in the People's Liberation Army.

By one measure it is now the world's biggest telecom equipment maker, not only selling phones but also key pieces of cellphone infrastructure. .

Lawmakers in the United States have been wary of the company for years, and have recommended that American carriers avoid buying its network gear.

In January, The Times reported that AT&T had decided not to sell Huawei's newest smartphone, the Mate 10.

The Trump administration has taken aim at Huawei and its rival, ZTE, in recent weeks, and in April the Federal Communications Commission advanced a plan to bar federally subsidized telecommunications companies from using suppliers that are considered national security threats.