Detection
|
|
Important Update - Harmony App Protect End of Support
Check Point’s Harmony App Protect will be end of support soon. For more information on key actions and timelines, see Harmony App Protect End-of-Life - Check Point CheckMates. |
When the Harmony App Protect is authorized and ready, it runs background detections and monitors changes, such as when a new app is installed, to inform the hosting app of any supported risk. You can query the SBMClient at any time for the current status of the device risk or to perform a scan for a specific detection type.
When the Harmony App Protect completes the first-time scan of the device, it broadcasts an ACTION_FIRST_SCAN action so the hosting app can rely on the results. Afterward, whenever the Harmony App Protect finds any risk changes, it broadcasts ACTION_STATUS_CHANGED to inform the hosting app about the changes. When the hosting app receives any of these broadcasts, it must ask the Harmony App Protect for the new status and decide what to do.
/** * Get all the threats that were found on the device aggregated into groups. * * @return Current device risk status aggregated into groups with summaries.
* If the first scan was not completed, this result is not fully reliable. * You should wait for the first scan to complete or to run scan on the
* detections you need. * Only after the detection finished, query the status using this method. * @throws IllegalStateException If tried to be executed before the client
* is authorized */
public Map<String,String> getCurrentStatus() throws IllegalStateException;
getCurrentStatus returns the current risk assessment of the device. The returned Map object contains the relevant aggregated group names as keys and additional text information of why it was found as values. The additional information should NOT be used by the developer for any reason except for logging.
|
Copy
|
getDetails is similar to the getCurrentStatus but returns additional details on the actual threat.
|
Copy
|
setForegroundServiceRunning is used to run in the foreground. Needed in Android O and higher.
|
Copy
|
getDeviceId returns the client identifier, a random UUID
Universal Unique Identifier. A UUID is a 128-bit value used to uniquely identify an object or entity on the internet. for this device used in the Harmony App Protect. This is the only identifier used to identify Harmony App Protect in the Harmony App Protect server backend. We recommend that the hosting app save or print this identifier to include it when you report issues with the Harmony App Protect.
|
Copy
|
getVersion returns the Harmony App Protect version number. For example, 3.4.0.266.