it depends on where you are, if you get pulled over and there is something that gives a cop probable couse to search you and your car, for example, him seeing illegal drugs in your backseat, that would give him probable cause, so he could take your phone and search along with everything else in your possesion at the time.