General Motors (GM) has agreed to pay about $12.75 million to resolve claims by California Attorney General Rob Bonta and other law enforcement agencies that the automaker illegally sold California drivers’ personal information. According to the state, GM collected data through its OnStar system and then sold “names, contact information, geolocation data, and driving behavior data” of hundreds of thousands of Californians to data brokers Verisk Analytics and LexisNexis Risk Solutions. The attorney general says the sale occurred without drivers’ knowledge or consent, despite prior statements that reassured drivers it would not share that information.

Multiple outlets report that the settlement reflects violations of California’s Consumer Privacy Act. The state says GM made roughly $20 million from the data sales nationwide. The agreements also include requirements for GM to stop selling driving data to consumer reporting agencies for five years, delete retained driver data within 180 days unless it gets consent, and ask Lexis and Verisk to delete the data.

The attorney general also states that the data was not shown to have increased insurance prices in California, noting that state insurance rules restrict insurers from using driving data to set rates.