If you read Google's best practices for use account you'd see them warning against using SHA-1. They have even purposefully cracked it in 2017.
If that's the case, then why when you restrict google cloud API keys for android apps, you use a SHA-1 fingerprint of your android app? Seeing as how its trivial to fake a package name (the other required detail to identify your app) you're only left with a security method thats been already cracked.
Why would Google secure such an important thing as an API key with a hashing algorithm that they warn against?
I have searched an answer for this on the web, and while there are some answers that deal with this topic, none specifically deals with the dissonance google has shown.