Page Summary
-
SafetyNetApi.HarmfulAppsResponse is a response returned from listHarmfulApps() and extends the Response class.
-
It includes public methods to retrieve a list of harmful apps, the hours since the last harmful app scan, and the last scan time in milliseconds.
A Response
returned from listHarmfulApps().
Public Constructor Summary
Public Method Summary
| List<HarmfulAppsData> |
getHarmfulAppsList()
Returns a list of
HarmfulAppsData
that contains information on potentially harmful apps installed.
|
| int |
getHoursSinceLastScanWithHarmfulApp()
Gets the number of hours since the last scan on other profiles that detected a
harmful app.
|
| long |
Inherited Method Summary
Public Constructors
public SafetyNetApi.HarmfulAppsResponse ()
Public Methods
public List<HarmfulAppsData> getHarmfulAppsList ()
Returns a list of HarmfulAppsData
that contains information on potentially harmful apps installed.
If there are no known potentially harmful apps installed, the List returned is
empty.
public int getHoursSinceLastScanWithHarmfulApp ()
Gets the number of hours since the last scan on other profiles that detected a harmful app.
This is meant to be called by apps that are typically installed in the work profile and are concerned of harmful apps installed in other profiles. If the calling app is not in the work profile, -1 is always returned. If called from the work profile, and no harmful apps (that could pose a potential threat to the work profile) were detected in other profiles, -1 is returned.