Just days ago, the Alameda County DA’s office had planned to dismiss all but one charge against the OPD detective.