I am building an Android application in which I will be consuming some of the Google APIs from the application itself. I have enabled billing and increased quota for some of the API's.
While creating the credentials I have selected Installed Application, Application type as Android and supplied the package name and SHA1 fingerprint. I just wanted to know how Google decides whether the request is getting originated from my own Android application.
Anybody who has my app installed on their device can get the APK by rooting the device and can get the SHA1 fingerprint and package name. Also by decompiling the code using some Dex tools one can extract the Client ID as well. As I have enabled billing for my account if anybody is able to get all these details they can start consuming API using my ID.
Please help me how this scheme avoids unauthorized application/system to consume API using my ID.