I'm leaving the US for good, anything I should do before I leave?
Since this wasn't apparent the last time I asked... no, I'm actually not a US citizen or green card holder (permanent resident). Just happened to be in this country for a long time due to career reasons.
Buy some non US-based cloud storage and copy all your sensitive data to it, and delete said data from personal devices before leaving the country, so you can safely allow customs access to devices if required.
Retrieve data from the cloud when you arrive in the destination country.
Has anyone seen customs ever actually search an electronic device before? I travel internationally nearly every month and have never seen this before, even in China.
According to CBP's own stats they conducted 42725 basic and 4322 advanced searches of electronic devices at US ports of entry last year (so before any new policies of the current administration took effect)
"Under a basic search, a border agent physically inspects your phone and reviews what they can, while an advanced search means the agent can potentially download all of your files using an external device."