SANTA CLARA, Calif. – A late fourth-down stop by the 49ers kept Friday night’s preseason game with the Packers tied at 7 at halftime at Levi’s Stadium.

The Packers tied the score on the first play of the second quarter. QB Aaron Rodgers threw a quick hitch to WR Randall Cobb, who cut inside and dove across the goal line for a 6-yard TD. K Mason Crosby’s extra point hit the left upright but caromed through.

Green Bay’s defense responded by allowing new 49ers QB Colin Kaepernick just one first down on his initial series. LB Nick Perry and CB Sam Shields each deflected passes to force San Francisco to punt.

QB Joe Callahan replaced Rodgers on Green Bay’s next series and was promptly sacked on first down, leading to a three-and-out. S Chris Banjo injured his hamstring covering the punt and did not return to the game.

The Packers’ defense thwarted Kaepernick again, as DE Datone Jones tackled the QB for a 3-yard loss on a read-option run, Perry deflected his second pass of the game, and CB Quinten Rollins brought down Kaepernick on a third-down scramble to force another punt.

Green Bay’s offense couldn’t sustain any momentum, though, after TE Jared Cook had a 13-yard reception for a first down. Cook and Callahan subsequently ran into each other in the backfield on a running play, and Callahan had to recover his own fumble, setting up a third-and-long the Packers couldn’t convert.

Another three-and-out by the Packers’ defense deep in San Francisco territory allowed the offense to take over near midfield. A 10-yard pass to Cook converted on third down, and then Callahan nearly had a 38-yard TD pass to WR Davante Adams, but Adams couldn’t haul it in with a leaping attempt at the goal line.

Three plays later, Callahan hit Cook for 12 yards on a slant to convert on fourth-and-5. Adams then atoned with a fourth-and-5 conversion of his own on an 8-yard grab to make it first-and-goal in the final minute of the half. The fourth-down magic ran out, though, as Callahan threw incomplete on fourth-and-goal from the 5 on the final play of the half.