In 2026, immigration and border officials (such as U.S. CBP or UK Border Force) have the legal authority to search your electronic devices without a warrant at the border. In January 2026, U.S. Customs and Border Protection updated Directive 3340-049B, which distinguishes between "Basic" and "Advanced" searches. A Basic Search allows an officer to manually scroll through your photos, messages, and social media apps stored directly on the device. An Advanced Search—which involves connecting the phone to external forensic software to copy data—requires "reasonable suspicion" and supervisory approval. Officials cannot intentionally access "cloud-only" data (like files stored only on iCloud or Google Drive), and they may ask you to put the phone in "Airplane Mode" to ensure only local data is searched. While travelers have the right to refuse to provide a passcode, doing so can lead to the device being detained for weeks or, for non-citizens, being denied entry into the country entirely based on a "lack of cooperation" with border protocols.