Also in other jurisdictions people have the right to not incriminate themselves by refusing to answer questions.
If I am allowed to refuse giving my pin code for unlocking the phone, it would be interesting whether the police is allowed to use your fingerprint to unlock your phone.