Google is committed to advancing racial equity for Black communities. See how.

SafetyNetApi.HarmfulAppsResponse

public static class SafetyNetApi.HarmfulAppsResponse extends Response<SafetyNetApi.HarmfulAppsResult>

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.

public long getLastScanTimeMs ()