SAN FRANCISCO — Uber has gotten an early win in a lawsuit brought on behalf of Lyft drivers who claim that Uber violated various federal and California state privacy laws by tracking their driving for the rival ride-hailing platform.

A federal magistrate judge in San Francisco granted Uber’s motion to dismiss most of the claims in the lawsuit, finding that the plaintiffs hadn’t alleged that Uber had “eavesdropped” on drivers’ communications with Lyft or accessed the “content” of those communications.