Work in Background

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.

There a few APIs to configure the Harmony App Protect behavior in the background. By default, the Harmony App Protect receives events from the OS when an app is installed, updated or removed and initiates a scan to check if the risk was changed on the device. In addition, it performs scheduled scans that keep the device up to date. To control this behavior, use these APIs and decide whether it should trigger scans in the background.

Copy
/** 
    * Set the detection settings for apps detection type. Default is running in the
    * background and handle new/updated/removed apps events. Also run periodic scans
    * for malware. 
    * @param settings com.sandblast.sdk.{@link SBMDetectionSettings} 
    */
    public void setAppsDetectionSettings(@SBMDetectionSettings.Settings int settings)
                             
    /** 
    * Set the detection settings for device settings detection type. Default is 
    * performing periodic scans. 
    * @param settings com.sandblast.sdk.{@link SBMDetectionSettings} 
    */
    public void setDeviceDetectionSettings(@SBMDetectionSettings.Settings int settings)

 

SBMDetectionSettings - Contains various settings for the Harmony App Protect such as running in the background.

  • BACKGROUND_ALL – Default, run scans in background.

  • BACKGROUND_OFF – Do not run periodic scans and do not trigger a scan when an app is installed, updated or removed.

  • BACKGROUND_SCHEDULED – Run periodic scans in the background and do not listen to app installation events or network changes.

  • BACKGROUND_EVENTS – Do not run scheduled scans. Run a scan only when something changes, such as app installation or network change.