At all risk levels, the simplest way to protect your privacy is to limit how much data you carry across the border.
EFF advises leaving devices you don’t need at home. You may consider selectively deleting sensitive or extraneous data or moving it to the cloud to re-download once you’ve cleared the border (or on a different device if yours is confiscated). You should also log out of apps and browsers that give access to cloud-based data and online accounts—including social media—and remove any stored credentials, or uninstall apps temporarily.
Alternatively, you could get a separate phone or computer that contains only what you need while traveling, although this may not be realistic for some due to the cost or logistics of carrying additional devices. Further, using a blank burner phone that has no data at all may raise suspicion in a search.
You should also back up your data and encrypt your device using full-disk storage encryption secured by a strong password. Turn off biometrics and lock your device with a password instead, and power your devices down before arriving at the border to block high-tech attacks. The Intercept has a helpful guide to encrypting your devices as well as other digital privacy best practices.
If you do comply with a search and need to enter a password, do it yourself rather than supplying it to an agent, and be sure to change it as soon as your device is returned.
Finally, while tempting, wiping your device completely may raise suspicion if you are searched, and attempting to hide data may be interpreted as lying to border agents, which can be a crime.
Read More at Lifehacker.