The U.S. government has charged Samuel Tunick with allegedly typing in a passcode to wipe his phone before officers could search it. “I hope people understand that the charges against me are meant to intimidate people,” he said.
Just another example of the Trump admin trying to intimidate protestors using whatever the fuck they can to bring up whatever charges they can.
Technically, no.
They can't force you to give a password because of court precedent around the 5th amendment. Courts ruled that being forced to give a password counted as being forced to divulge information and was thus a violation of your 5th amendment right to remain silent and not incriminate yourself.
That's why they're still allowed to force you to give biometrics to unlock a device, though. Different court cases have ruled that being forced to put your finger on a fingerprint reader or show your face to a face scanner does not count as being forced to divulge information -- since it's action, not information -- so law enforcement is still allowed to force you to do those things.
(Which means, if you're about to be arrested or you're crossing a border or something and you don't want your device searched, you should disable any biometric unlocking features first. I'm not familiar with Android, but in iphones, you can do this by restarting/powering off the phone (always requires pin/password on first boot) or by pressing the lock button repeatedly while already locked.)
Android also requires you to enter a password on first boot. So rebooting also works there.