LOS ANGELES — An earthquake with a magnitude of 5.2 rocked Southern California, awakening residents from deep slumber at about 1:05 am PT Friday.