Android Studio Instructions

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.

To integrate Harmony App Protect into your application, you must add Check Point's repository. The repository is password protected. Contact Check Point for credentials.

Google repository is required as the Harmony App Protect uses the Android architecture library.

Add this to your module build.gradle:

Repository

Copy
repositories {
            …
            maven {
                url “https://us-artifactory01.locsec.net/artifactory/sand-blast-mobile-sdk”
                credentials {
                    username <YOUR_USER>
                    password <YOUR_PASSWORD>
                }
            }
        }
            

Dependencies

Copy
implementation("com.checkpoint.sbm.sdk:sbm:<LATEST_VERSION>@aar") {    transitive = true}
            

Network Security Configuration

Instructions for apps targeting Android Pie (API level 28) or higher:

(see HTTP Traffic Requirements in Prerequisites):

  1. AndroidManifest.xml:

    Copy
    <application
                            ...
                            android:networkSecurityConfig="@xml/network_security_config">
                            ...
                        </application>
  2. res/xml/network_security_config.xml – one of the following:

    • Allow HTTP traffic to a specific domain (bosko.locsec.net):

      Copy
      <?xml version="1.0" encoding="utf-8"?>
                  <network-security-config>
                  <domain-config cleartextTrafficPermitted="true">
                  <domain includeSubdomains="false">bosko.locsec.net</domain>
                  …
                  </domain-config>
                  …
                  </network-security-config>
    • Allow all HTTP traffic:

      Copy
      <?xml version="1.0" encoding="utf-8"?>
                  <network-security-config>
                  <base-config cleartextTrafficPermitted="true">
                  <trust-anchors>
                  <certificates src="system" />
                  </trust-anchors>
                  ...
                  </base-config>
                  ...
                  </network-security-config>