a Python library that verify apps and games from potentially risky and fraudulent interactions. based on Play Integrity API
Works for Apps that are exclusively distributed outside Google Play
- Google cloud project
- Play Integrity API enabled in APIs and services
- a Service account: Create a service account within the Google Cloud project that's linked to your app. and grant your service account the roles of Service Account User and Service Usage Consumer.
pip install play-integrityMake sure that GOOGLE_APPLICATION_CREDENTIALS is set
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/config.jsoneg:
from play_integrity import Attestation
attest = Attestation("integrity_token", "package_name")
passed = attest.verify_online("nonce")Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request