Updated

A Sri Lankan man has been charged with endangering the safety of an aircraft and making false threats after he threatened to detonate a bomb and attempted to enter the cockpit of a Malaysian Airline plane flying out of Australia.

Manodh Marks appeared in court on Thursday and faces a potential 10-year prison sentence on each charge.

His lawyer Tess Dunsford told the magistrate Marks suffered from a psychiatric illness and would not apply for bail. He did not enter pleas.

Police said 25-year-old had been discharged from a Melbourne psychiatric hospital on Wednesday before buying a ticket on the flight to Kuala Lumpur, Malaysia. Marks was tackled and tied up by passengers after making the threat and the flight returned to Australia.

Marks did not have a bomb.