"Uber developed a software tool called "Greyball" to avoid giving rides to known law enforcement officers in areas where its service was illegal such as in Portland, Oregon"

says Wikipedia about the time when Uber operated illegally.