Play Protect Status
Google Play Protect is a built-in malware protection for devices that is a part of the Google Play ecosystem. When turned on, it automatically checks apps before they are installed and scans the device periodically to detect, disable, and/or remove potentially harmful apps.
Google Play Protect can be turned off and users often do so, despite general recommendations to keep this protection on.
In-App Protection SDK for Android is able to verify whether Google Play Protect is turned on or off.
Triggering a Manual Check
Google Play Protect verification can be triggered manually in RaspManager by calling the isPlayProtectEnabled() method. A simple boolean answer is given.
// Always run on a background thread
val isPlayProtectEnabled: Boolean = raspManager.isPlayProtectEnabled()
More information on general RASP feature configuration and usage can be found in this overview.