OAKLAND -- On the first day of his murder trial, an East Oakland man pleaded no contest to fatally shooting his 17-year-old girlfriend in 2011.

Adrian Blocker will be sentenced to 40 years to life in prison on May 8 for fatally shooting Onika Jones twice in the back of the head execution-style on June 18, 2011, and then hiding her body for eight months in an abandoned house near his own home at 98th Avenue and C Street.

Prosecutor Tim Wagstaffe had presented five witnesses before Blocker, 23, asked Judge Thomas Reardon on Thursday if he could take a plea deal. In addition to murder, Blocker pleaded no contest to assault with a firearm for shooting Onika in the foot in May 2011, and to burglary for stealing the gun he used to shoot her.

Coincidentally, the same neighbor whose gun was stolen is the same person who reported a foul smell that led to police discovering the teen's body in February 2012, according to Wagstaffe.

Contact Malaika Fraley at 925-234-1684. Follow her at Twitter.com/malaikafraley.