You can check your device integrity against Googles SafetyNet Attestation API.
Following parameters are tested:
• Hostname is attest.android.com
• Generated UUIDs of request and response are matching
• Package name of app is identical
• Response was received within given time
• APK certificates are matching
• Device profile is valid (CTS Profil)
• Integrity is given (BasicIntegrity)
In addition the apps shows you the advices from Google if check failed.
I also offer SafetyNet implementations with backend for you or your company.