Cop as NO RIGHT to search your car unless you give him permission. Unless you break the visibility rule (paraphanalia weed whatever out in the open), smell, or your visibly intoxicated.

Also he has to have a reason to pull you over. Eye contact is bullshit. You may have been subject to an illegal search AND stop. WE need more details if you want help. Very specific details.