Menu

Knox Container

With Knox 3.4, Knox containers are now deprecated and replaced by Android work profiles. See instead the sample app: Knox and Android Work Profiles.

This sample app remains for those supporting devices with older Knox versions. It shows how to create three Knox container types:

  • Regular containers
  • COM containers
  • Lightweight containers

The app can also retrieve all of the current containers and remove containers.

For:

Getting Started

ENROLL TO DOWNLOAD

Already enrolled?

DOWNLOAD ZIP

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.

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.
Share it: