A judge in Washington on Friday temporarily lifted US trade restrictions against Chinese smartphone maker Xiaomi.

The US Department of Defense blacklisted Xiaomi in January for allegedly having ties to the Chinese military.

As a result, American investors were no longer allowed to invest in the manufacturer.

Xiaomi has always denied that it has any ties with the Chinese military.

The company filed a lawsuit against the decision.

According to the technology company, that was unconstitutional and harmful.

The judge ruled that insufficient evidence has been given that Xiaomi is blacklisted and that the company poses a threat to the national security of the United States.

The trade restrictions would take effect next week.

Xiaomi now wants to be permanently removed from the blacklist.