Earlier quoted context omitted.
There are 2 cases routine inspections and targeted investigations. If it's a routine inspection, being uncooperative will probably lead them to escalate. You generally want to keep things routine and boring. If they want to access your device you have to weigh the costs, just log out of everything before you fly and throw away your device after they have had access to it, it's now compromised. If you are targeted you…
> just log out of everything before you fly and throw away your device after they have had access to it, it's now compromised. I get what you are saying, but this is incredibly expensive and not really practical for most people.
Evaluate your threat model and the chance that a wipe and reinstall of the OS will be insufficient protection.
If you were targeted, you may have some tough choices. Might as well think about them ahead of time.