Not in US, but had my phone seized by authorities and was asked to unlock it. I'm walking free, but I think what really saved me is that I genuinely complied with investigation and the only place where I drew the line was me giving away my password.
If I used my right to remain silent AND not give away the password, I'd probably be charged with something. I'm sure its very similar in many countries, including US.
From CBP themselves:
"If a traveler being admitted as a U.S. citizen does not present their device in a condition that allows for examination, the U.S. citizen traveler will not be denied entry into the United States based on CBP’s inability to complete an inspection of their device. However, as noted above, their device may be subject to exclusion, detention, or other appropriate action or disposition."
Worst case would be losing the phone, which is a tradeoff I'm willing to make.
You will find "temporary" can be long enough to make your life extremely unpleasant, that they can do unpleasant things to your body (another lady at my point of entry was raped, sued, and lost, -- the raping was done to "probe for drugs" and held to be justified), that they can run up debt in your name (what they did to me is just travel around to different ER and tell them an emergency, then bill it to my name, and to multiple hospitals to rack up the debt), that they can put you on a list so that you have no hope of making any airport connections for many years. I don't even bother scheduling same-day international connections anymore, and I have to plan on family members and animals being taken care of for at least 72 hours in advance before I cross the US border.
You later contact a lawyer, several lawyers in fact, only to find out they've handled many of these cases, always lost, and reluctant to bother trying again.
Respectfully, you don't realize how horribly naïve you are. You are not dealing with people that follow the law, rather genuinely evil people that will do whatever they can get away with because they can get away with it and find supreme satisfaction in sadism.
Anyway, there’s wide gulf between not giving up the passcode to my life and not answering basic questions.
Except CBP harassment instead of a bobcat. Only 1-in-30 people will ever know there's a serious problem.
You may not be convicted for obstruction in the end but wow they will make things horrible for you right up until the court case is dropped at the last minute.
From that point on, every further interaction you have with any officer or official is another high-stakes situation for you where they will be looking to build up a case against you. Every word you say, every slip of the tongue in the interrogation room, the prison van, the holding cell at the station, your complaint at the cuffs being too tight, about needing to go to the bathroom, etc it's all being recorded and used by THEM to paint a picture of THEIR CHOOSING about YOU and build a case against YOU. They are actively trying to trip you up and get you to say/admit/confess to anything and they are professionals who are highly practiced at this and I assume - with respect - that you are not trained to withstand hostile interrogation and incarceration, even for short periods of time while they "straighten things out down at the station".
If you are in that situation I highly recommend you REFUSE to saying a single thing to anyone without legal representation (assuming that is even an option in the country where you decide to be a jerk) because they're out to get you for something, even if not the original thing they took you in for. Be extremely careful about what you say without legal representation.
Good luck on your next flight. Remember that there are different counties at both ends of an international flight and the laws are different in different countries - the laws you are used to at home don't apply elsewhere.
Not sure what it is about Canadian border guards...
Only in theory. Yes you have "rights", but they have power.
If you're referring to the power to do illegal things, do you apply this everywhere? If a cop asks to enter my home, should I let them because they can illegally shoot me? If a beggar asks for money, should I give it to them because they might become violent?
There is also a huge space between "obeying the laws and policies in the most conservative sense" (which is what you described) and being "illegal".
> do you apply this everywhere
In fact I do.
> should I let them because they can illegally shoot me
I'm not suggesting what you should do. That's up to you. I'm just saying the government can do a lot more than you think and get away with it, including "illegally" shooting you in circumstances. It's always a balance of risks. For me personally, If a normal cop ask to enter I'll refuse. But if it's ICE? That's suddenly a much harder choice.
Actually no I'll probably die either way. Who cares.