And YES it's legal. The 4th amendment doesnt extend to the border.
Three days later, they returned from another trip to Canada and were stopped again by CBP."One of the officers calls out to me and says, 'Hey, give me your phone,'" recalled Shibly. "And I said, 'No, because I already went through this.'"
The officer asked a second time..
Within seconds, he was surrounded: one man held his legs, another squeezed his throat from behind. A third reached into his pocket, pulling out his phone. McCormick watched her boyfriend's face turn red as the officer's chokehold tightened.
Then they asked McCormick for her phone.
"I was not about to get tackled," she said. She handed it over.
Shibly and McCormick's experience is not unique. In 25 cases examined by NBC News, American citizens said that CBP officers at airports and border crossings demanded that they hand over their phones and their passwords, or unlock them.
The travelers came from across the nation, and were both naturalized citizens and people born and raised on American soil. They traveled by plane and by car at different times through different states. Businessmen, couples, senior citizens, and families with young kids, questioned, searched, and detained for hours when they tried to enter or leave the U.S. None were on terror watchlists. One had a speeding ticket. Some were asked about their religion and their ethnic origins, and had the validity of their U.S. citizenship questioned.
What most of them have in common — 23 of the 25 — is that they are Muslim, like Shibly, whose parents are from Syria.