A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hello,
The most effective and Google-recommended approach is to use the Google Play Integrity API.
- It provides a secure verdict directly from Google's servers about the integrity of the device.
- Unlike client-side checks that can be manipulated, the server-side verification is much more difficult to fool.
For enhanced security, you can combine the Play Integrity API's verdict with a few client-side checks (like looking for common rooting apps or suspicious system properties) to create a risk score. However, the Play Integrity API should be your primary method for detection.
I hope this helps you with your issue.