Until you enter the US you are in a weird constitutional grey area. This is why it’s legal for them to search phones in immigration in the US, even if you’re a citizen. As for photography, there’s signs all over the airport I clear immigration at (JFK) saying photography is prohibited in the immigration and customs halls.