In Germany every piece of data you collect has to specifiy as narrow as possible what it is being collected for
before you collect it. Using pandemic related data for policing is a data privacy violation.
Of course that didn't stop police from still going into some places and demanding the data. But doing so was a clear breach of law.
Every piece of personal data you collect creates a pull factor for various actors to abuse said data, which is why you shouldn't collect more than you need, you should delete (or anon/pseudonymize) it once it is not needed anymore or you should collect it in such a way ot wouldn't be useful for state actors.
I am amazed how the German Corona-Warn-App was designed with these principles in mind. They managed to allow people to register into locations while only storing the data locally on your phone. Your phone then downloads the data from the servers in an non-revealing way and queries it for warnings/positive cases that have been issued in these locations at that time. If yes, you get a warning and you can decide how to proceed with this without having any other actor knowing of this.
This software is a piece of art from a privacy standpoint.