The parents of Freddie Gray reached a tentative $6.4 million settlement with the city of Baltimore, nearly five months after their 25-year-old son was critically injured in police custody, sparking days of protests and rioting.

The deal, announced Tuesday, appeared to be among the largest settlements in police death cases in recent years and happened just days before a judge is set to decide whether to move a trial for six officers charged in Gray's death.

Gray's spine was injured April 12 in the back of a prisoner transport van after he was arrested. Gray, a 25-year-old black man, died at the hospital a week later. In the aftermath, Gray became a symbol of the contentious relationship between the police and the public in Baltimore, as well as the treatment of black men by police in America.

The settlement still needs the approval of a board that oversees city spending. That board will meet Wednesday morning.

"The proposed settlement agreement going before the Board of Estimates should not be interpreted as a judgment on the guilt or innocence of the officers facing trial," Mayor Stephanie Rawlings-Blake said in a news release. "This settlement is being proposed solely because it is in the best interest of the city, and avoids costly and protracted litigation that would only make it more difficult for our city to heal and potentially cost taxpayers many millions more in damages."

Rawlings-Blake refused to comment further on Tuesday at an unrelated news conference.

The settlement does not resolve any factual disputes, and expressly does not constitute an admission of liability on the part of the city, its police department or any of the officers. The settlement has nothing whatsoever to do with the criminal proceedings, the press release said.

In July, New York City settled for $5.9 million with the family of Eric Garner, an unarmed black man who died after being put in a white police officer's chokehold. The city of Chicago settled in 2001 a wrongful death lawsuit by the family of LaTanya Haggerty, who was shot to death by police, for $18 million.

The proposed payment in the Gray case is more than the $5.7 million the city of Baltimore paid in total for 102 court judgments and settlements for alleged police misconduct between 2011 and last fall, according to an investigation by The Baltimore Sun. The city paid another $5.8 million for legal fees to outside lawyers who represented officers, the newspaper reported.

Detective Donny Moses, a Baltimore Police Department spokesman, said the agency's public affairs staff was under direct orders Tuesday not to comment. Billy Murphy, an attorney for the Gray family, also declined comment.

All six officers, including Edward Nero and Garrett Miller, are charged with second-degree assault, misconduct in office and reckless endangerment. Lt. Brian Rice, Sgt. Alicia White and Officer William Porter also face a manslaughter charge, while Officer Caesar Goodson faces the most serious charge of all: second-degree "depraved-heart" murder.

Three of the officers are black and three are white. Their attorneys have asked the judge in the case to move their trials out of the city. The hearing is set for Thursday.