A 115,000-square-foot retail and office condominium by City Hall at...

Octavia Moore being handcuffed after she assaulted a photographer with her phone.

Octavia Moore about to throw her phone.

A hostile witness headed into court to testify in an alleged wrongful-conviction case balked at taking the stand Tuesday — and later angrily swatted and chucked her phone at a Post photographer.

Octavia Moore was set to testify in Brooklyn Supreme Court in the case of Sundhe Moses, who is seeking to have his 1995 murder conviction overturned.

Moore had identified Moses as the person who shot dead Shamone Johnson, 4.

Moses spent 18 years behind bars before his 2013 release. He has claimed that scandal-scarred ex-NYPD cop Louis Scarcella beat him into confessing.

Outside court, Moore attacked freelance photographer R. Umar Abbasi, who was on assignment for The Post.

She was issued a ticket for disorderly conduct.