Daniel Jones, a parolee, is charged with attempted murder in the Monday night shooting on Chicago's West Side.
The two officers and another witness identified the suspect in a lineup.
Prosecutors allege the officers witnessed a drug transaction while on regular parole. When confronting the suspect, Jones allegedly struggled with one officer then pulled a gun. Both officers were hit and attempted to chase the suspect until they could no more.
While the officers survived, but both are still in pain. One officer has a bullet lodged in his head; the other has a bullet in his arm.
Cook County State's Attorney Anita Alvarez stood with Chicago Police Superintendent Garry McCarthy to comment on the shooting.
"These officers came within inches, probably less than that, from sustaining more serious if not fatal wounds," Alvarez said. .
"There's something going on. There's wanton disregard for the law and the fact is our officers are in these confrontations every single day and doing an exceptional job," McCarthy said.
In the last two and a half years, six Chicago police officers have been shot and killed. Earlier this week, Chicago police commemorated the service of Officer Michael Bailey. He was killed last summer while in uniform. No one has been charged in that case, but the state's attorney said they are continuing to follow leads in Bailey's death.
"It's unfortunate what we're seeing that police officers in uniform...criminals are still shooting and, unfortunately, we've seen far too much of it in the last two years," said Alvarez.
"We have a lot of work to do. Is it better today than it was yesterday? Is it better than two weeks ago? Yes. Is it better than two years ago? Yes. But we have a long way to go," McCarthy said.
Jones has five drug convictions and a conviction for firing a weapon. He is due back in court August 9.