Do you have any references for that?
From what I can see on programmes like Border Security, they do catch a lot of people this way, and they do always have reasonable grounds for the search.
Also, how does that law allow random searches at airports (which are presumably legal)? Is there another law which permits those?
Random searches are not legal in Canada. Border guards take advantage of the fact that nobody wants to look guilty by refusing to be searched. They exploit the public's ignorance of the law and use intimidation.
I don't think this would allow them to search your phone. However that may be permitted if they have reasonable suspicion.
When a Canadian enters Canada it's acceptable for the government to say, "Show me all of your apples." It can even say, "Give me the bill of sale for those apples." That's inspecting goods.
It's not acceptable for the government to say, "Show me all of your text messages, emails, pictures, and personal journals." That's a warrantless search.
It is illegal, and it should remain illegal regardless of what good deeds a government bureaucrat might be able to do with that information.
If the government wants to conduct a search like that, it needs to accuse you of a specific crime and set out the reasons why it believes getting those items will prove it. Any just government must assign different people who act at arms length from each other to make the request and to decide if the request is justified. (eg. Police, Prosecutor, and Judge) This is necessary in order to prevent any individual human agent acting with the power of the government from abusing that power.
Just governments do not search everyone because some of them might be guilty. Just governments don't say, "Show me your apples. OK, that's fine. Now give me your passwords because you might be a pedophile and I need to make sure I can't find any evidence that you are." Just governments don't say, "Show me your journals, emails, and pictures, then and then we'll see if we can charge you with a crime."
I wouldn't give up living under a just and fair government even if that meant we could catch all of the criminals... which of course we couldn't.
I can't stand those shows, I have to change the channel, they literally make me angry. Thinking that there are people out there who actually fall for it makes it worse.
If HN sold gold stars I'd buy you one.
Sadly, the propaganda is effective and enough people agree with cpncrunch: Being treated without dignity, like a prisoner, is totally worth it if maybe it catches a few evil boogeymen.