There is some established case law that says that one cannot be compelled to give up a Password, Pin or Pattern Unlock, as a violation of the 4th and 5th Amendment.
Those Amendments are key to a person's rights to be SECURE. Which is the key word here. He SECURED his rights, under duress, by refusing to comply.
THIS is separate from the police chasing him as a possible criminal for crimes I may or may not like.
Rights work by being the STARTING POINT, not an afterthought or worse, something the state can simply ignore in an attempt to prosecute people for potential criminal activity.
The state has legal remedies they ought to seek if they want access to secured personal property. We all know what that is. GET A WARRANT, which is almost always a rubber stamp (very easy bar to jump over). They couldn't even be bothered with that.
Everyone ought to understand, if we do not defend our rights, the state certainly won't.