Rasheed Scrugs pleaded guilty to first-degree murder on Thursday.
Scrugs, 35, is accused of shooting Philadelphia police officer John Pawlowski on February 13, 2009.
Prosecutors say that Scrugs assaulted a cab driver outside of a SEPTA transit station at Broad and Olney. When officers arrived after the cab driver contacted them, Scrugs allegedly opened fire with a gun that was hidden in his pocket.
Officer Pawlowski was struck just above his bulletproof vest.
Opening statements were set to begin on Thursday. After the jury left the courtroom, Scrugs told the judge that he wanted to change his plea to guilty.
Scrugs pleaded guilty to first-degree murder, attempted murder, assault with a deadly weapon, carrying a firearm without a license, possession of a firearm and possession of drug paraphernalia.
Scrugs also told the judge that he was fully conscious of mind when he committed the crime. His defense had said earlier that he was high on drugs when he shot Pawlowski.
Fan, follow and download: Get the latest from NBCPhiladelphia.com anytime, anywhere. Follow us on Twitter, Facebook and NBC Philadelphia. Sign up for our breaking news newsletter. And, get breaking news delivered right to your mobile phone -- just text PHIBREAKING to 639710 to sign up. (Message and data rates may apply.)