If the police try to search you, for example by taking your phone to look at it, or ask to see inside your bag or pockets, even if you choose to go along with their instructions for your own safety, you might consider saying politely “I do not consent to being searched.” This should make it clear that police do not have your consent to search you. But please also use your best judgment to keep yourself safe.