“The traditional justification for letting government agents freely access people’s luggage isn’t really appropriate for looking at digital data,” EFF’s Sophia Cope told KQED. “But the courts haven’t been fully convinced of that argument.”
https://www.kqed.org/news/12038914/what-can-you-do-if-cbp-asks-to-see-your-phone