I can't speak to U.S. policies. I can tell you that the CBSA policy is that officers are instructed as to what they can do and how they can do it. The fact that we need to ask the traveller for the password and have the ability to unlock the phone ourselves wouldn't be done without your knowledge that we're going through your cellphone.
On September 27th, 2017. See this statement in context.