Manassas City police said Thursday they would not serve a search warrant seeking to take photos of a 17-year-old boy charged with “sexting” an explicit video to his 15-year-old girlfriend earlier this year.

The teen is facing felony counts of manufacturing and distributing child pornography. As the case was headed to trial last week, Manassas City police and Prince William County prosecutors said in juvenile court that they had obtained a warrant to photograph the teen’s erect penis, in order to compare with the video he allegedly sent in January, according to the teen’s lawyers. When defense lawyer Jessica Harbeson Foster asked how they would obtain a photo of her client while aroused, she said police told her they would take him to a hospital and inject him with a drug to force an erection.

On Thursday, Prince William authorities decided to drop that plan. Lt. Brian Larkin of the Manassas City police said, “We are not going to pursue it.” He said the police planned to allow the search warrant, obtained last week, to expire. He would not say why the decision had been made to abandon the warrant or discuss the reasons for the search.

Larkin referred further questions to Prince William Commonwealth’s Attorney Paul B. Ebert. Ebert did not immediately return a call seeking comment.

Foster was not immediately available for comment.

The Post’s story on the case from Wednesday is here.

A press release from the Manassas City police on Wednesday night, prior to the decision Thursday, is here.