SafetyNet API is developed by Google, is designed to check whether a device has been tampered with–whether it’s been rooted by a user, is running a custom ROM, or has been infected with low-level malware.
SafetyNet Checker uses SafetyNet API for checking device integrity.