...except at border crossings (which may be at a US border crossing or at an international port of entry like an airport gate where US customs has a checkpoint).
U.S. Customs and Border Protection (CBP) may search any electronic devices without probable cause at these points.