Donald trump has given his blessing to bytedances deal with oracle to keep tiktok operating in the us, after the us president had threatened to ban the chinese companys popular video app.

I have given the deal my blessing, if they get it done thats great, if they dont thats fine too, the us president told reporters on saturday. i approved the deal in concept.

The us presidents backing of the deal comes after intense negotiations between bytedance and the trump administration to address concerns that the chinese companys app posed a serious threat to national security. any deal will also need approval from china.

Under the terms of the agreement approved by mr trump, bytedance will spin-off tiktoks global business into a new us-headquartered company, which will continue to be majority owned by the chinese tech group, as first reported by the financial times.

Oracle together with us retailer walmart will own about 20 per cent of the new company, according to people briefed about the matter. doug mcmillon,chief executive of walmart, is expected to get a seat on tiktoks board.

Mr trump had previously requested that bytedance sell its entire us operations of tiktok. at the time us national security officials argued such a move was the only way to guarantee that china would not try to use backdoors into the app to spy on american citizens.

The us commerce department on friday ordered apple and google to remove tiktok from their app stores from midnight on sunday as bytedance and oracle continued to negotiate with the trump administration.

One person familiar with the latest developments said the commerce department would push back that order by one week, meaning that tiktok would not immediately be removed from the app stores. that move gives the companies more time to finalise the details following the tentative approval on saturday.

Under the deal, bytedance will keep control of the algorithm, which picks which videos to show each user, under the current agreement. however, mr trump said that china would have no influence on tiktok.

It will have nothing to do with china, itll be totally secure, thatll be part of the deal, mr trump said. all of the control is walmart and oracle, two great american companies.

Larry ellison, co-founder and chairman of oracle, is a supporter of mr trump and has held at least one fundraiser to help get the president re-elected in 2020.

Oracles decision to reach a deal with bytedance, which was first revealed by the ft, is set to be hugely lucrative for the us tech giant, which is expected to be paid hundreds of million of dollars annually to safely manage the apps data.

The chinese company will also donate $5bn to an educational fund, which the us president said would address his earlier promise that bytedance would pay the us government a fee for the transaction.

Theyre going to be setting up a very large fund, mr trump said. thats their contribution that ive been asking for.

Mr trump said that tiktok will create at least 25,000 jobs, predominantly in the republican-controlled state of texas, which would make it one of the largest employers in america among social media companies.

Bytedance had to make a series of concessions to win the us presidents support for its deal with oracle and walmart.

Tiktoks board will be composed exclusively of american citizen and it will include a security committee led by a person with government security clearances, said people briefed about the matter.

The us administration would have to approve both the board members and the head of the security committee.

Kevin systrom, the founder of instagram, has emerged as a candidate to run tiktok. the company has held preliminary talks with mr systrom about the chief executive role following the unexpected departure of kevin mayer last month.

Bytedance and oracle could not be immediately reached for comment.