A teenage boy charged over an alleged gang rape of a 14-year-old girl has been granted bail.
The 16-year-old boy handed himself in to Sydney police last week and was charged with one count of sexual intercourse without consent.
The girl was in a park in Doonside to buy drugs earlier this month when she was attacked.
Police said a man approached the girl in Bill Colbourne Park at 11pm, forced her to the ground and sexually assaulted her.
The man's five friends then allegedly took turns in an assault that lasted 30 minutes.
The accused teenager was given bail at Parramatta Children's Court on Friday after his barrister, Andrew Terracini, argued he had handed himself in and was helping police with their case.
He said his client would also change schools and had strong community ties.
"He has no history whatsoever," Mr Terracini said.
"There is a level of support for this young man in the community."
Though it was opposed by the prosecution, the magistrate allowed bail on the condition that he not be in a public place without his parents between 6pm and 7am, that he surrender his passport, report to the police daily and not approach the victim or any witnesses.
The teenager, who was born in Sudan, looked down while the bail application was made in court but occasionally looked toward his parents and baby sister in the public gallery.
The court also heard the alleged victim later clarified her version of events to say she was in the park with a friend to buy cannabis and that's why she lied when she originally said she had been walking home from a friend's house.
Police have now twice interviewed the alleged victim and she remains traumatised, the court heard.
African and Pacific Islander community leaders and police last week took part in a unity walk through Blacktown after remarks on social media sparked fears of reprisals.
The victim is a Pacific Islander, while all the alleged offenders are described as African in appearance.
Police are still looking for the five other alleged offenders.
The matter will return to court on April 18.
Police said they had laid an additional charge of aggravated sexual assault against the boy.
