The California State Legislature passed a bill Thursday to create a state emergency response system for the first time in decades.
The emergency notification system will be made available to the public by Aug. 31, the first day of classes at California colleges.
The state will be able to send out an email and text message alerting people to an impending quake.
The bill also requires the state to provide a toll-free telephone number to emergency responders.
The earthquake has caused damage and widespread evacuations across the U.S.
The Associated Press contributed to this report.