IANAL but this seems to be pretty common all across the world. The usual recommendation is to put your phone in "lockdown" mode if there's any suspicion you may get arrested. This prevents the phone from being unlocked with biometrics and require pin.
You can do this either by restarting or turning off your phone, or a button combination (power + volume up on my android) and selecting lockdown.