Interesting to see this in AP, since it's a report on real violations to one's device privacy. Beware what you give up willingly to state coersion.
In a basic search, an officer scrolls through your phone’s photos, emails, apps and files. No suspicion of wrongdoing is needed to conduct this type of search.
In an advanced search, the contents of your device could be copied for analysis. But a senior manager needs to sign off and there needs to be “reasonable suspicion” of a legal violation, except if there’s any concern for national security, according to the Electronic Frontier Foundation (EFF).
[...] Basic searches “can be for no reason at all, totally random, or based on a mere hunch about someone – maybe based on how they look or an answer they gave to a preliminary question,” said Cope.