API Documentation

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.

Harmony App Protect continuously monitors the device risks to ensure that threat detection is as accurate as possible. It uses broadcasts to inform the hosting app of any change in status.

You can access the Harmony App Protect API through a SBMClient class. You must obtain an instance of SBMClient on your application's onCreate method. Yo can do the initialization can be done later.

Copy
public class MyApplication extends Application {
 
    private SBMClient sandbladClient;
 
    @Override
    public void onCreate() {
        super.onCreate();
        sandbladClient = new SBMClient.Builder(
        this, "my-api-key").setAuthorizationCallback(myCallback).build();
    }

The instance exposes several methods:

Copy
// Broadcast constants
public static final String ACTION_FIRST_SCAN;
public static final String ACTION_STATUS_CHANGED;
public static final String ACTION_APP_INSTALLATION_CHANGE;
 
public boolean isFirstScanCompleted()
 
public void initialize()
 
public Map<String, String> getCurrentStatus()
 
public JSONArray getDetails()
 
public void scan(SBMScanCallback callback, int timeout, @Nullable TimeUnit timeUnit, @SBMDetectionType.DetectionType int... detectionTypes)
 
public void scanFile(@NonNull SBMFileScanCallback callback, @NonNull String path)
 
public void setForegroundServiceRunning(boolean running)
 
public String getDeviceId()
 
public String getVersion()

void enableScreenCaptureProtection(boolean enabled);
void enableClipboardProtection(boolean enabled);
void enableClipboardProtection(@NonNull Dialog dialog);