The Play Integrity API helps protect your apps and games from potentially risky and fraudulent interactions, such as cheating and unauthorized access, allowing you to respond with appropriate actions to reduce attacks and abuse such as fraud, cheating, and unauthorized access.
Determine whether you're interacting with an unmodified binary that's recognized by Google Play.
Determines whether the current user account has acquired the app or game legitimately, such as by installing or paying for it from Google Play.
Determine whether your app is running on a known, unmodified Android device powered by Google Play services.

When the user performs an app or game-defined transaction, your server instructs the client-side code to invoke the Play Integrity API request with its ID. The Play server returns an encrypted response containing that ID along with an integrity verdict. Your app then forwards that response to your server for verification. Your server can decide what your app or game should do next.