A locked screen is not encryption at rest. On current Android and iPhone, most app data stays decryptable in memory after the first unlock of a boot, until the device reboots. A border search, a thief, or a forensic box that gets the device in that state is reading files, not breaking AES. The controls that matter are: do not unlock, get back to before-first-unlock, keep the USB data lines down, and do not leave a readable copy in a cloud account the search never has to touch.
It does not replace Hardware Wallet Guide for seed coercion, and it does not treat GrapheneOS duress as plausible deniability. That limit is a separate gap.
Summary
| Control | What it actually does | What it does not do |
|---|---|---|
| Screen lock, device still After First Unlock | Blocks casual use. Class A iOS files drop their key about 10 seconds after lock if the passcode is required immediately | Does not put Credential Encrypted storage or Class C files back at rest |
| Reboot / auto-reboot into Before First Unlock | Drops user file keys from memory. Guesses then hit the secure element or Weaver rate limit | Does not hide Device Encrypted / Direct Boot data, or cloud copies |
| GrapheneOS USB-C default (charging-only when locked) | Blocks new USB connections at the controller and in the kernel as soon as the device locks | Does not apply while powered off, in fastboot, recovery, charging mode, or fastbootd. Does not stop a manual search of an unlocked screen |
| Apple USB data restriction | After an hour locked, or three days since the last accessory data connection, a new wired data connection needs an unlock | A user or assistive-device setup can turn always-on data back on. Remembered accessories are allowed for 30 days during the first hour |
| Lockdown Mode | Shrinks remote exploit surface (Messages attachments, complex web, unsolicited FaceTime) | Does not encrypt an unlocked phone against a manual search |
| GrapheneOS duress PIN/password | Irreversible wipe of the device and installed eSIMs, including from the lock screen. Cannot be interrupted | Not a hidden volume. If it matches the real unlock, the real unlock wins and nothing is wiped. Does not delete cloud copies |
| Travel phone / power-off before the booth | Less data on the device that crosses, and a BFU state if it stays off | SIM/eSIM, tower registration, and any signed-in account still identify you. Unlocking at the booth ends BFU |
| iCloud Advanced Data Protection | Moves the backup, Photos, and Notes service keys off Apple's HSMs (14 end-to-end categories become 23) | Mail, Contacts, and Calendar stay readable by Apple. Checksums and some metadata stay with Apple. Not offered in every region |
| Google backup | Some device data is end-to-end encrypted with the screen lock | Photos, videos in Google Photos, and carrier MMS media are not encrypted with that screen lock. Copies remain in the account until deleted |
Before first unlock and after first unlock
The useful distinction is not locked versus unlocked. It is whether the user file keys are in memory.
Android
Devices that launch with Android 10 or higher must use file-based encryption. Each user has two stores:
- Credential Encrypted (CE) storage is the default. It is available only after that user unlocks.
voldwill not unwrap the CE key without the lock-screen knowledge factor (PIN, pattern, or password), a work-profile passcode-reset token, or both halves of a Resume-on-Reboot operation. Work-profile reset tokens are not a consumer backdoor. - Device Encrypted (DE) storage is available in Direct Boot, before any unlock, so alarms, accessibility, and the emergency dialer can run. A phone that has never been unlocked since boot is not an inert brick. Telephony and other direct-boot-aware apps can hold data that does not need the user's PIN.
The lock-screen secret is stretched with scrypt and then rate-limited. On devices with the Weaver HAL, the stretched secret maps to a high-entropy value in the secure element or TEE. Without Weaver, Gatekeeper provides the TEE rate limit. A seized BFU phone is a guessing problem against that limiter, not an offline dump of the CE key, unless the attacker has a separate bug.
Metadata encryption, present since Android 9 where the hardware supports it, is a different key. One key, available at boot and protected by KeyMint and Verified Boot, encrypts what file-based encryption does not: directory layout, file sizes, permissions, and timestamps. BFU does not make the filesystem look empty to someone who can use that boot key. AOSP's file-based encryption page was last updated 2026-10-30 UTC.
GrapheneOS describes its own features as improvements on top of AOSP 16, not as a replacement for this model. Official production support, as listed on the project FAQ on 2026-11-02, runs from the Pixel 6 through the Pixel 10a. The project recommends Pixel 8 and later, which have a seven-year update floor and hardware memory tagging. A travel phone that cannot install those builds does not get the USB-controller control or the auto-reboot implementation below.
iPhone and iPad
Apple Data Protection assigns each file a class. The class key, not the screen-lock animation, decides access:
- Class A (Complete Protection). The class key is wrapped by a key from the passcode and the device UID. If Require Passcode is Immediately, the decrypted class key is discarded about 10 seconds after lock. Those files are unavailable until the passcode, Face ID, Touch ID, or Optic ID unwraps them again.
- Class C (Protected Until First User Authentication). Same wrapping, but the decrypted class key stays in memory when the device locks. Apple describes this as similar to desktop full-volume encryption: it protects against attacks that involve a reboot. This is the default for third-party app data that the app does not place in another class. A locked iPhone that has been unlocked once since boot is still After First Unlock for that data.
- Class D (No Protection). The class key is protected only by the UID and kept in Effaceable Storage. The benefit Apple states is fast remote wipe, not secrecy from someone holding the device.
Sealed Key Protection, on A11 / S3 / M1 and later, is meant to make the key material unavailable off device and to break extraction that depends on rolling the OS version or weakening the security policy without user authorization. It sits in hardware registers below the Secure Enclave. It is not a substitute for staying in Before First Unlock. See Apple Secure Enclave.
Auto-reboot
Reboot is the state change that drops After First Unlock keys. Waiting for it, or forcing it, is the point of the timers.
GrapheneOS starts a countdown each time the device locks. If no profile is unlocked before the timer hits zero, the device reboots and user data is at rest. The default is 18 hours. The range is 10 minutes to 72 hours, or off. Unlocking any profile, not only the owner, cancels the timer. The timer does not run in Before First Unlock, so a powered-on BFU phone does not reboot in a loop. The implementation is in init: crashing system_server does not skip it, because an init crash panics the kernel and reboots anyway. GrapheneOS also zeroes freed memory in userspace and the kernel so remnants of the PIN and derived keys are cleared on lock, before the reboot wipes the rest of OS memory.
Apple Automatic Restart, documented for iOS 18.1 and iPadOS 18.1 and later, uses the Secure Enclave to watch unlocks. If the device stays locked for what Apple calls a prolonged period, it restarts, moves from After First Unlock to Before First Unlock, and purges sensitive keys and transient data from memory. The platform security page does not publish the interval. On supervised devices the feature is off by default. From iOS 18.4 / iPadOS 18.4, the IdleRebootAllowed restriction lets a device-management administrator turn it on or off. Apple notes that the restart can drop Wi-Fi, which matters for a managed fleet and is irrelevant to a personal travel phone except that a reboot also kills an in-progress network session.
Neither timer helps if the device is unlocked at the booth, or if a forensic agent already copied memory while it was After First Unlock. A short GrapheneOS timer (the floor is 10 minutes) trades convenience for a smaller window. An 18-hour default does not cover a secondary inspection that starts an hour after you locked the phone in the queue.
USB data and Lockdown Mode
These are different threats. USB restrictions target a box plugged into a seized phone. Lockdown Mode targets a remote exploit against a phone that is still yours.
GrapheneOS USB-C and pogo pins
The setting has five modes: Off, Charging-only, Charging-only when locked, Charging-only when locked except before first unlock, and On. The default is Charging-only when locked.
On lock, new USB connections are blocked immediately, both by configuring the USB controller and again in the kernel. Data lines are disabled at the hardware level once existing connections end, which is immediate if nothing is plugged in. USB-C alternate modes, including DisplayPort, are disabled at the OS and hardware level. The features page names the "except before first unlock" mode but, in the section read on 2026-11-02, does not define how that mode differs beyond grouping it with the other charging-only-when-locked mode as a two-phase implementation. This note does not invent that difference.
Off also disables charging, including USB-PD, while the OS is booted. The feature does not apply when the device is powered off or booted to firmware fastboot, the charging mode, recovery, or fastbootd, so a dead battery can still be charged by leaving the OS. Those modes are a different attack surface: they are not the booted OS, and they are where a physical attacker operates if they can force a reboot into the bootloader.
Stock Android's device-admin USB HAL toggle is weaker on GrapheneOS's own comparison. It disables high-level USB handling in the OS. It does not block new connections, does not cut the data lines in the controller, leaves the USB-C and pogo protocol handling enabled, and does not disable alternate modes.
Apple wired accessories
On iPhone, iPad, and portable Apple-silicon Macs, a new data connection over Thunderbolt, USB, Lightning, Smart Connector, or (macOS 13.3 and later) SDXC needs Face ID, Touch ID, or a passcode if no data connection was established recently.
If more than an hour has passed since the iPhone or iPad locked, or since an accessory's data connection ended, no new data connection is allowed until unlock. During that hour, only accessories that were previously connected while the device was unlocked are allowed, and those accessories are remembered for 30 days after they were last connected. An unknown accessory that tries to open a data connection during the hour disables all accessory data connections on those ports until unlock. If it has been more than three days since any accessory data connection, new data connections are refused immediately on lock. The same refusal applies whenever the device is in a state that requires the passcode before biometrics work again.
The user can turn always-on data connections back on in Settings. Setting up some assistive devices does that automatically. A travel phone that was paired to a car or a computer in the last 30 days, and that has been locked for less than an hour, is not in the strict state. Powering off is stricter than locking, because it is Before First Unlock regardless of the accessory timer.
Lockdown Mode
Lockdown Mode is optional and, in Apple's words, for people who may be personally targeted by sophisticated threats, including mercenary spyware. Most people are not. When it is on, the device does not behave normally, on purpose:
- Messages blocks most attachment types other than certain images, video, and audio. Links and link previews are unavailable.
- Safari blocks some complex web technologies. Web fonts may not load. Some images are replaced with a missing-image icon.
- Incoming FaceTime calls are blocked unless you called that contact in the past 30 days. SharePlay and Live Photos are unavailable.
- Incoming invitations for Apple services, such as a Home invitation, are blocked unless you previously invited that person.
- Phone calls and plain text messages still work. Emergency SOS is not affected. Incoming calls do not ring on a paired Apple Watch.
It is available from iOS 16, iPadOS 16, and macOS 13, with further protections from iOS 17 / macOS 14. The user-facing support article is the current description of those limits. The platform security page for Lockdown Mode was published 2024-05-07 and is thinner; where they differ, the support article is the one that lists the attachment and FaceTime rules above.
Lockdown Mode does not change Data Protection classes, does not reboot the phone into Before First Unlock, and does not stop an officer from reading an unlocked screen. It matters if the threat is infection before the seizure, not extraction after it.
Duress PIN is a wipe, not a second phone
GrapheneOS can set a duress PIN and a duress password that irreversibly wipe the device, including installed eSIMs, when entered anywhere the OS asks for device credentials: the lock screen, or a credential prompt in the OS. The wipe does not need a reboot and cannot be interrupted. Setup is Settings > Security & privacy > Device unlock > Duress Password, in the owner profile. A duress PIN is only for PIN entry. A duress password is only for password entry. Both are required, because profiles may use different unlock methods. The duress PIN also wipes the device if it is entered as the second factor after a fingerprint. It does not currently wipe when entered as the SIM PIN.
If the duress value is the same as the real unlock, the real unlock wins and there is no wipe.
This is not a hidden volume and not a decoy operating system. An observer who knows the feature exists learns that a wipe was requested, because the device erases itself instead of unlocking. It does nothing for data already copied, already in iCloud or Google backups, already on another device, or already visible because the phone was After First Unlock and searched before the wipe. Entering it destroys the user's own keys and eSIMs. In many jurisdictions, destroying material that is or may be evidence is itself an offence. This note describes the feature. It is not advice to use it against a lawful demand. The forensic limits of deniability schemes, including VeraCrypt hidden volumes, are a separate gap and are not established here.
What to carry, and what powering off changes
EFF's Surveillance Self-Defense module on the U.S. border, and the 2017 border whitepaper it points at, are the practical U.S. baseline. They are guidance, not a court order, and they are about the United States, not every frontier.
Before arrival, EFF's listed options are: back the device up somewhere that is not in the same bag as the laptop; reduce what you carry, including a separate travel laptop or a temporary phone; encrypt and use a passphrase rather than a biometric alone; log out of browsers and apps, remove saved passwords, and consider uninstalling sensitive apps so cached cloud content is not sitting on the device; power the device off shortly before the border so it is not left in a state that high-tech attacks against encryption can use. Dragging files to the trash is not deletion. At the booth: do not lie, be courteous, do not physically interfere with a search. Decide the response to a password demand before you arrive.
Those steps have hard limits:
- A travel phone with your usual SIM or eSIM is still your subscriber identity the moment it registers. GrapheneOS duress can wipe installed eSIMs on the device. It cannot unwind call-detail records the carrier already has.
- Unlocking the travel phone so an officer can look at it moves it to After First Unlock. The encryption story above then applies to whatever you left on it.
- Logging out does not delete files already on disk, and it does not delete the account. CBP's published policy says officers may not use the device to reach information that is stored only remotely, and that they disable network connections before a search. Cached and resident content is still on the device. Policy is not a technical control, and it does not bind a later warrant, a foreign agency, or a cloud provider.
- Do not carry the backup drive in the same bag as the machine it restores. EFF states that directly.
- A "clean" phone that you then sign into the same messengers, mail, and password manager is not clean.
U.S. Customs and Border Protection, on the page last modified 4 August 2026, says every person and every piece of merchandise crossing the border is subject to inspection, inbound and outbound. In FY 2025 CBP processed over 419 million travelers at ports of entry and searched the electronic devices of 55,318 of them, which CBP states is less than 0.01 percent. Of those searches, 50,922 (92 percent) were basic: an officer reviewing the device manually, without connecting external equipment to copy or analyze the contents. Secondary inspection is not the same thing. Of the 419 million, 11,612,366 (3 percent) were referred to secondary. Device searches were about 0.47 percent of secondary inspections. The quarterly table on that page, which CBP says can move as live numbers are finalized, shows the count rising: FY 2026 Q1 16,083 searches (1,508 advanced), Q2 16,266 (1,368 advanced), Q3 19,732 (1,688 advanced).
CBP distinguishes basic and advanced searches. An advanced search connects equipment, wired or wireless, to copy and/or analyze contents, and under CBP policy needs reasonable suspicion of a violation CBP enforces, or a national security concern, plus approval from a manager at Grade 14 or above. The same page says that using external equipment, including a CBP computer, merely to make contents available — including to bypass a password, overcome encryption, translate, view a disk that has no screen, or charge the device — is not an advanced search. That sentence is the policy. It means a password-bypass attempt can be classified as basic.
If encryption or a passcode prevents inspection, CBP says the device may be excluded, detained, or otherwise disposed of, and processing may take longer. A U.S. citizen is not denied entry solely because CBP could not inspect the device. A foreign national's refusal can be considered in the admissibility decision; CBP also says the inspection result alone does not determine admissibility. Passcodes the traveler provides "will be deleted or destroyed when no longer needed" to search that device, and may not be used to reach remote-only data. EFF's 2017 whitepaper records reports of passwords being kept for the next crossing; CBP's current page says they are destroyed when no longer needed. Those two statements are both in the record. The page is the agency's account of its own practice.
Copies CBP retains after a search go, on that page, into the Automated Targeting System for up to 15 years, or for the life of a linked lookout or investigation. The retention paragraph still links Directive 3340-049A. The notification and policy paragraphs link Directive 3340-049B, whose PDF on cbp.gov is dated 28 January 2026, with a distribution memo dated 2 February 2026. This note does not treat 049B as unread text. The public FAQ is what states the 15-year figure and the basic/advanced split as of 4 August 2026.
The search, under the published rule, is of information resident on the device. Officers are supposed to put the device in airplane mode or otherwise disable Bluetooth, Wi-Fi, and other network connections first, or ask the traveler to do it. They are not supposed to open remote accounts through the device. Anything already downloaded is resident.
Forensic extraction tools
Commercial mobile forensic platforms exist to copy a phone when someone has physical access. Cellebrite, an Israeli company, has sold the Universal Forensic Extraction Device to law enforcement, intelligence, and private examiners since 2007, and announced UFED Premium in 2019. Grayshift sells GrayKey, a box aimed at locked iPhones and, since a 2021 product line, Android devices; Wikipedia records a 2023 merger with Magnet Forensics and a 2022 company statement that GrayKey was in use by agencies in 30 countries. Those are product facts, not a compatibility matrix.
What the key hierarchy implies, and what a vendor press release does not settle:
- After First Unlock, USB data allowed. Class C keys and CE keys are in memory or unwrapable. A logical copy of most app data does not require breaking AES. It requires the keys the OS already unwrapped.
- Locked, but not rebooted. Class A iOS files should already have dropped their key if the passcode requirement is immediate. Class C and CE data may still be available. Apple's USB timer and GrapheneOS's controller-level block are the controls aimed at a box on the cable. They are bypassed if data connections were left always-on, if a remembered accessory is still inside Apple's hour-and-30-day window, or if the attacker is not using USB at all.
- Before First Unlock. User file keys are not in memory. Further access is a guess against Weaver, Gatekeeper, or the Secure Enclave, or a vulnerability that this note does not catalog and will not. Sealed Key Protection is Apple's published answer to extraction that tries to weaken the OS policy or take keys off device. It is present on A11 and later, not on older phones.
- No device needed. If the backup is available-after-authentication at Apple or Google, the search is a legal process against the account, not a cable.
Wikipedia's GrayKey article says that around 2019 Apple required the owner to authorize external connections after unlock, and that on newer iPhones "only unencrypted files and some metadata might be extracted." That sentence is tagged as undated. It is not a 2026 measurement. A March 2024 Grayshift announcement, as reported there, claimed support for iOS 17, the Galaxy S24, and Pixel 6 and 7. That is a vendor claim. This note does not confirm it and does not describe how any of those products work.
Amnesty International and Citizen Lab have documented Cellebrite use against journalists and activists, including cases where the phone was unlocked or the extraction happened after physical seizure. The defensive reading is narrow: physical access plus a tool is a routine investigative step in many countries, not an exotic capability. It is not a reason to believe every current GrapheneOS or current iOS version falls to a cable. It is a reason to treat After First Unlock and cloud copies as the exposed states, and Before First Unlock as the state that forces the attacker onto the rate limiter or an unpublished bug.
Cloud backups survive the seizure
CBP's remote-content rule does not delete the account. A factory reset after a sync, which EFF discussed in 2017 as a way to cross with an empty device, leaves the copy on the server. The officer who follows the airplane-mode rule does not see it. A later order to the provider can.
iCloud
Under standard data protection, the iCloud Backup service key is stored in Apple Hardware Security Modules and is available after authentication. The backup includes device settings, app data, Camera Roll photos and videos (unless iCloud Photos already holds them), and Messages conversations. Messages in iCloud is end-to-end encrypted only when iCloud Backup is off. When Backup is on, the backup holds a copy of the Messages key so Apple can restore messages without the user's other devices. The user's iCloud password is not the backup key. Changing the password does not invalidate existing backups.
Advanced Data Protection is optional. Turning it on deletes the available-after-authentication service keys from Apple's HSMs. End-to-end categories go from 14 to 23, and the list includes iCloud Backup, Photos, and Notes. Apple states it can no longer read data protected by those keys. Requirements include two-factor authentication, a passcode on trusted devices, software at or above iOS 16.2 / iPadOS 16.2 / macOS 13.1 / tvOS 16.2 / watchOS 9.2, and at least one recovery contact or a recovery key. If those recovery methods fail, Apple cannot restore the end-to-end data. The feature is not available in every country. Managed Apple Accounts and some child accounts are excluded. Web access at iCloud.com is turned off when Advanced Data Protection is enabled, because the web servers no longer have the keys; the user can turn web access back on and approve it from a trusted device, which temporarily uploads specific service keys.
Not covered, even with Advanced Data Protection: iCloud Mail, Contacts, and Calendar, because they interoperate with global systems. iWork collaboration and Shared Albums. Anything shared with "anyone with the link." Checksums used for de-duplication, and modification times, stay encrypted under keys Apple holds. The support article walking through the toggle was published 17 April 2026.
A seized, unlocked phone that is signed into iCloud is a session, not just a disk. Advanced Data Protection does not help if the search happens inside an unlocked session that can already display Photos and Messages. It helps against a later demand to Apple for the backup of a phone that was seized in Before First Unlock and never unlocked.
Google's Android backup help page says backups are uploaded to the Google Account. Some of that data is end-to-end encrypted with the screen-lock PIN, pattern, or password. Photos and videos in Google Photos, and MMS media from the carrier, are explicitly not encrypted with the screen lock. The backup includes apps and app data, call history, contacts, device settings, and SMS and MMS. RCS messages are included when Google Messages is the client. Google recommends a PIN, pattern, or password rather than a swipe or Smart Lock if you want that screen-lock encryption to apply.
Turning backup off stops new uploads. It does not, on that page, delete what is already stored. Deletion is a separate action in the Google Account dashboard, and "Delete all data" there also deletes WhatsApp backup data for the account. A travel reset that leaves Google Photos and the device backup in the account has not removed the exposure. It has moved it from the phone to the account.
Compelled disclosure is not one rule
This section is a map of published rules. It is not legal advice, and it is not a complete survey.
United States, at the border. CBP's published position is that the traveler must present the device and the information resident on it in a condition that allows inspection. Failure can mean detention of the device, longer processing, and, for a foreign national, a worse admissibility record. It does not, on CBP's page, mean a U.S. citizen is turned away for that reason alone. EFF's Surveillance Self-Defense module says a traveler does not have to comply with a passphrase demand and that only a judge can force disclosure, and that refusal can mean refused entry for a noncitizen or seizure and hours of detention for a citizen. Those are the two public texts. They are not the same claim. The agency describes a condition-of-inspection duty and device detention. EFF describes a limit on compelled speech and the practical cost of refusing. Which one a given traveler can rely on depends on citizenship, status, and a lawyer. This library does not pick a strategy.
United Kingdom. The Regulation of Investigatory Powers Act 2000, section 49, lets a person with the appropriate permission serve a notice requiring disclosure of a key to protected information, if they believe on reasonable grounds that a person has the key, that disclosure is necessary for national security, preventing or detecting crime, or the economic well-being of the United Kingdom (or for a statutory power), that it is proportionate, and that it is not reasonably practicable to get the information in intelligible form without the notice. Section 53 makes knowing failure an offence. If the person had the key at any time before the notice, they are taken to have kept it unless they show they did not have it between the notice and the deadline. The defence is that compliance in time was not reasonably practicable and disclosure was made as soon as it was. On indictment the maximum is two years, or five years in a national security case or a child-indecency case, or a fine, or both. legislation.gov.uk marked section 49 current as of 23 October 2026 and section 53 as of 24 October 2026. A duress wipe after a section 49 notice is not a technicality. It is a way to commit the offence the section already defines, and possibly others. This note does not advise that course.
Other countries have their own disclosure orders, border statutes, and penalties. Absence from this note is not absence of a rule.
Trade-offs
- Short auto-reboot versus usability. A 10-minute GrapheneOS timer makes a snatch or a secondary inspection land on a BFU device. It also means a phone left locked in a bag reboots and needs the real passphrase, not a fingerprint, and loses its network sessions. Apple's unpublished interval and the supervised-device default (off) show the other end of the same trade.
- USB charging-only versus accessories. CarPlay, cameras, and assistive devices need data. Apple's always-on override and the 30-day remembered-accessory window exist so those devices keep working. They are also the window a forensic box wants. GrapheneOS Off mode removes charging while the OS is booted, which is hostile to a traveler who needs to charge in the queue without dropping to the bootloader.
- Duress versus availability. The wipe cannot be interrupted and includes eSIMs. A mistyped PIN that collides with the duress value destroys the phone. A duress value equal to the real PIN does nothing. There is no decoy session to show an officer, so the feature does not buy a calm conversation. It buys destruction, of your data first.
- Travel phone versus identity. Less resident data is a real reduction. The SIM, the accounts you sign into on arrival, and the cloud backup you kept "just in case" put the data back. A travel phone you unlock at the booth is an After First Unlock phone with a smaller disk, not a different threat model.
- Advanced Data Protection versus recovery. Apple cannot restore those 23 categories if the recovery key and the recovery contact both fail. Mail, contacts, and calendar remain outside it. Shared links and iWork collaboration remain outside it. The feature is the right default for a backup that should survive a later provider order. It is the wrong assumption if you still need Apple to recover the account.
- Lockdown Mode versus a seizure. Turning it on before a trip reduces one threat (remote infection) and does not reduce the other (a manual search). Treating it as a border feature is a category error.
- Refusal versus device detention. At the U.S. border, CBP can keep the device even when a citizen is admitted. A phone you cannot afford to lose for months, or whose absence strands your keys, is a bad phone to argue with. The technical preparation (BFU, little resident data, no cloud copy) matters more if the device is detained than if it is handed back in five minutes.
Attack surface
| Vector | Condition | Result |
|---|---|---|
| Manual search of an unlocked phone | Screen unlocked, or passphrase entered at the booth | Resident apps, messages, photos, tokens, and cached cloud content. Encryption is not in the way |
| Logical extraction, AFU, USB data up | Keys in memory, cable accepted | Same data, copied. No AES break required |
| Locked but AFU, Class C / CE | Not rebooted since unlock | Third-party app data and CE files still decryptable. Class A iOS files should not be, after ~10 seconds, if the passcode is required immediately |
| BFU guessing | Rebooted or never unlocked since boot | CE / Class C keys not in memory. Weaver, Gatekeeper, or Secure Enclave rate-limits the PIN. Metadata encryption key is a boot key, not the user PIN |
| USB on stock Android | Device-admin toggle only | High-level USB off. Controller, data lines, and alternate modes can remain |
| USB on GrapheneOS default | OS booted and locked | New connections blocked at the controller and in the kernel. Not the policy in fastboot, recovery, or powered off |
| Apple USB window | Locked under an hour, or a 30-day remembered accessory, or always-on enabled | Data connection still possible without a fresh unlock |
| Bootloader / recovery | Forced reboot out of the OS | GrapheneOS USB control does not apply. A locked bootloader is a separate control; an unlocked one is a warning GrapheneOS shows in the setup wizard |
| Cloud backup, standard iCloud | Backup on, Advanced Data Protection off | Apple holds the backup service key. Messages key is in the backup if Messages in iCloud is on |
| Cloud backup, Google Photos and MMS | Any | Not wrapped by the screen-lock end-to-end key, per Google's backup page |
| Direct Boot / DE storage | BFU Android | Alarms, dialer, and other device-encrypted app data available without the PIN |
| Duress wipe | Duress credential entered, and it is not the real unlock | Device and installed eSIMs erased. Cloud, other devices, and prior copies remain. May be a crime if evidence is destroyed |
| Compelled disclosure, UK | Section 49 notice | Failure is an offence under section 53, with a possession presumption. Two years, or five in national-security and child-indecency cases |
| Compelled disclosure, U.S. border | CBP inspection | Device detention and, for noncitizens, admissibility consequences, on CBP's page. EFF states a separate limit on forced passphrase disclosure. Not resolved in this note |
| Lockdown Mode bypass | Unlocked handset, or a resident file | No effect. Lockdown Mode is a remote attack-surface reduction |
| Biometric unlock | Device AFU, biometrics accepted | Convenience unlock. EFF advises against relying on it at a border. GrapheneOS two-factor fingerprint still requires a second PIN; a wrong PIN counts toward the attempt limit |
Worst case that does not require a novel exploit: the phone is After First Unlock, USB data is allowed or the screen is unlocked, and the same accounts are backed up to iCloud or Google without end-to-end keys the user alone holds. The cable, the screen, and the provider are three copies of one failure. Before First Unlock on a current Pixel or iPhone raises the device copy to a rate-limited guess or an unpublished bug. It does nothing to the provider copy.
Evidence at a glance
| Claim | Source | Date | What it supports |
|---|---|---|---|
| CE storage needs the lock-screen secret, a work-profile reset token, or Resume-on-Reboot; DE storage is available in Direct Boot; FBE required from Android 10 | AOSP file-based encryption | Page updated 2026-10-30 | BFU vs AFU on Android |
| Metadata encryption covers names, sizes, and timestamps with a boot-time KeyMint key | AOSP encryption overview | Fetched 2026-11-02 | BFU does not hide the directory layout |
| Class A key discarded ~10 seconds after lock; Class C survives lock until reboot; Class C is the third-party default | Apple Data Protection classes | Platform security guide, fetched 2026-11-02 | Locked iPhone is not BFU |
| Automatic Restart from iOS 18.1 moves AFU to BFU; interval not stated; off by default on supervised devices | Protecting user data in the face of attack | Fetched 2026-11-02 | Apple auto-reboot exists; duration is unpublished here |
| New wired data connections need unlock after 1 hour, or immediately after 3 days; accessories remembered 30 days | Activating data connections securely | Fetched 2026-11-02 | Apple USB restriction |
| Lockdown Mode limits Messages, web, FaceTime, invitations; calls and plain texts still work | About Lockdown Mode | Fetched 2026-11-02 | Lockdown Mode is not a seizure control |
| GrapheneOS auto-reboot default 18 hours, range 10 minutes to 72 hours; implemented in init; skipped in BFU | GrapheneOS features | Fetched 2026-11-02 | Auto-reboot behavior |
| Duress PIN/password wipes the device and eSIMs, cannot be interrupted; real unlock wins if values match; not a SIM PIN | GrapheneOS features, duress | Fetched 2026-11-02 | Duress is a wipe |
| USB default is charging-only when locked; new connections blocked in the controller and the kernel; Off also disables charging while the OS is booted | GrapheneOS features, USB-C | Fetched 2026-11-02 | USB control and its bootloader gap |
| FY 2025: 55,318 device searches of over 419 million travelers; 50,922 basic; password-bypass equipment is not an "advanced" search; citizens not refused entry solely for a failed inspection | CBP border search of electronic devices | Page last modified 2026-08-04 | U.S. border practice and volume |
| Directive 3340-049B PDF dated 2026-01-28 | CBP directive page | Last modified 2026-02-02 | Current directive identifier |
| Power off before the border; do not rely on biometrics; encrypt; reduce what you carry; do not lie | EFF SSD, crossing the U.S. border | Fetched 2026-11-02 | Traveler baseline, attributed to EFF |
| Advanced Data Protection raises end-to-end categories from 14 to 23, including Backup, Photos, and Notes; Mail, Contacts, Calendar excluded | Apple Advanced Data Protection | Fetched 2026-11-02 | What a provider order can still reach |
| With iCloud Backup on and standard data protection, the Messages in iCloud key is in the backup | iCloud Backup security | Fetched 2026-11-02 | Backup defeats Messages E2EE |
| Some Android backup data is E2EE with the screen lock; Google Photos and carrier MMS media are not | Google, back up or restore Android data | Fetched 2026-11-02 | Google backup exposure |
| UFED sold to law enforcement since 2007; GrayKey is a commercial unlock box, Magnet merger 2023 | Cellebrite, Grayshift | Fetched 2026-11-02 | Tools exist. Success against a given OS version is not established here |
| UK section 49 notice and section 53 offence; 2 years, or 5 in national-security and child-indecency cases | RIPA s.49, s.53 | Site currency dates 2026-10-23 and 2026-10-24 | One published compelled-disclosure statute |
Primary sources
- Android Open Source Project — File-based encryption, updated 2026-10-30 UTC. Encryption overview.
- Apple Platform Security — Data Protection classes, Activating data connections securely, Protecting user data in the face of attack, Advanced Data Protection for iCloud, iCloud Backup security, Lockdown Mode.
- Apple Support — About Lockdown Mode. How to turn on Advanced Data Protection for iCloud, published 2026-04-17.
- GrapheneOS — Features overview (USB-C, auto-reboot, duress), fetched 2026-11-02. FAQ, supported devices.
- U.S. Customs and Border Protection — Border Search of Electronic Devices at Ports of Entry, last modified 2026-08-04. Directive 3340-049B document page, PDF dated 2026-01-28.
- Electronic Frontier Foundation — Things to Consider When Crossing the U.S. Border. Digital Privacy at the U.S. Border (2017).
- Google — Back up or restore data on your Android device.
- legislation.gov.uk — Regulation of Investigatory Powers Act 2000, s.49 and s.53.
- Wikipedia — Cellebrite, Grayshift / GrayKey. Secondary. Used only to identify the products, not to assert current extraction success.
Page history
- Updated
- 2026-11-02
- Origin
- Compiled from the ungovernable.tech research notes.
- Improve this page
- Suggest an edit — issues and pull requests are welcome.