Police have revealed what sparked an alleged attack on-board an international flight that landed a foreign national in court.