OAKLAND -- A 16-year-old suspected in the shooting of a California Highway Patrol cruiser in July was charged Thursday an adult with numerous felony counts including attempted murder of a police officer, carjacking and assault with a deadly weapon.

The officer was not injured.

Kenyon Thomas, of Oakland, was either the shooter or with the shooter who fired shots at a CHP cruiser about 8:30 p.m. July 21, prosecutors said. The shooting came during a pursuit that began when an officer tried to make a traffic stop on a van near the 800 block of 50th Avenue in Oakland.

Thomas was arrested on a warrant while leaving a friend's home in the 1400 block of Bay Street in East Palo Alto at 11 a.m. Wednesday, police said.

During the pursuit, suspects in a second car rammed the CHP officer's cruiser while he chased the van. Someone inside the car fired several rounds at the officer as the chase went into the 800 block of 42nd Avenue. The suspects in both the van and car eventually got out of their vehicles and ran away.

Police arrested David Gonzalez, 23, and Samiuela Sina, 18, both of Oakland, soon after the chase. A third man, Joseph Gonzalez, the 18-year-old brother of David, was arrested two days later after a standoff outside a home in the 2400 block of East 24th Street in Oakland.

Thomas was thought to be at the home but escaped again.

The three men are believed to be members of an Oakland gang and all face gang enhancement charges along with the felony crimes alleged against them. The teen also faces gang enhancements. Thomas and the three men are scheduled to be arraigned Friday.

The charging of the teen comes just two days after a CHP officer was shot in the head on Interstate 680 near Alamo on Tuesday morning while conducting a traffic stop. The suspect, identified by police as Christopher Boone Lacy, 36, was shot and killed by a CHP patrolman after Lacy shot CHP Officer Kenyon Youngstrom during a stop for an obstructed license plate. Youngstrom, 37, was pronounced dead Wednesday night at John Muir Medical Center in Walnut Creek.

"What happened July 21 and (Tuesday) are examples of the dangers all law enforcement officers face," Oakland Police Chief Howard Jordan said Wednesday. "Anyone who shoots at a police officer is a really, really dangerous person."

Staff writer Harry Harris contributed to this report. Reach Paul T. Rosynsky at prosynsky@bayareanewsgroup.com and Kristin J. Bender at kbender@bayareanewsgroup.com. Follow her at Twitter.com/kjbender.