Menu

Support library for Knox VPN providers

About the new namespace

With the Samsung Knox SDK v3.0 release, all Samsung Knox SDK packages, intents, and permissions use a single namespace: com.samsung.android.knox. Previously, there were multiple namespaces, including one in the Google domain (android.app.enterprise). Unifying the namespace simplified coding, troubleshooting, and support, and removed the possibility of future overlaps with Google. As of Knox SDK v3.3, the Knox VPN SDK used by VPN providers is now part of the Knox SDK and uses this new namespace.

About the support libraries

The support libraries let you run an app that uses the new Samsung Knox SDK on a device that is running Knox v2.7 or earlier. This is for backwards compatibility, as earlier Knox platforms don't support the new Samsung Knox SDK. The libraries declare the new namespace API methods, and translate them to the old namespaces if a device is running an older Knox version that doesn’t support the new namespace. There are two libraries:

  • supportlib.jar — Translates the Knox SDK APIs to the old namespace. You can download this library from the Knox SDK landing page.
  • knoxvpn_support.aar — Translates only the APIs that were in the Knox VPN SDK. As this SDK is used only by VPN providers, you download this separately (in ZIP format) from the tools page.

To migrate from the Knox VPN SDK to Knox SDK

If you want apps using the now-deprecated Knox VPN SDK to run on devices using any Knox platform version, you must compile it with the main Knox SDK library, knoxsdk.jar, as well as the two support libraries.

For more information, see:

For:

Getting Started

ENROLL TO DOWNLOAD

Already enrolled?

DOWNLOAD ZIP

Setup

To use the Knox SDK, you need to get its license key, then provide it through your app as follows:

  • If you do not yet have a license, go to License Keys for the Knox SDK. For details about the different license types, see Knox licences.
    Note: To see these linked web pages, you need to log into a Knox Partner Program account that has a developer role. If you have not yet registered as a developer, go to Knox Partner Program Enrollment.
  • In the app source code, edit the file Constants.java.
  • Search for the string variable LICENSE_KEY and assign it your license key value.
  • Compile the source code, deploy the APK package to a device, and install the package.