On Thursday, Governor Brown signed SB 178, the California Electronic Communications Privacy Act (CalECPA).

The bill changes the law by requiring police get a warrant before they search your digital records, including e-mails and texts, or attempt to track your digital location. The protections cover both the information on your personal devices as well as the online services that store your data.

The bill was supported by the California Newspaper Publishers Association, the Electronic Frontier Foundation, and many California-based technology companies, including Google, Facebook, Twitter, and LinkedIn. Law enforcement agencies accepted the bill as a balance between safety and privacy.

The bipartisan bill’s co-sponsors, Senators Joel Anderson (R – Alpine) and Mark Leno (D – San Francisco), saw the bill as protecting Californian’s basic civil liberties, taking California out of the digital dark ages, and ensuring that law enforcement had the necessary tools to fight crime in the digital age.