Why trust a phone you get from some random hire company? Just carry a spare phone and leave the primary at home. Do a factory reset before you go though customs.
“Sorry I can’t remember my 30 letter google password in the pressure of the situation” if they force you to sit down at another computer and sign into your google account.
Which by the way seem like a thing for them to start doing if they are doing this with people’s phones.
Might also pay to carry chromebook or similar and reset them before any borders.