you can however install Private Lock from f-droid (or directly from github if that's your jam), which does that stuff automatically when the phone gets shaked/dropped:
https://f-droid.org/en/packages/com.wesaphzt.privatelock/
Still not as good but at least it's automatic, and afaik in many jurisdictions cops can only force you to unlock it with biometrics, and absolute worst case it makes things slighly more annoying for them so they might give up.
i mean, that quite clearly doesn't apply to sunglasses