Back to top

Congratulations! You have now implemented the Knox SDK in an app. This section covers how to compile and run the app.

Compile the app

Android Studio provides two ways to compile and test your app:

  1. On an Android Virtual Device (AVD)
  2. On a physical Samsung device

The Knox SDK must be tested on a physical Knox supported device, as the Android Studio emulator does not support Knox features.

  1. Plug your Samsung device into your computer.
  2. On your device, navigate to Settings > About device, then tap Build Number seven times to enable Developer options.
  3. Tap Settings > Developer options > USB debugging to turn USB debugging on.
  4. In Android Studio, with your project open, click Run > Run ‘app’ (or Shift + F10).
  5. Under Connected Devices, choose your test device.

choose your test device

Use the app

  1. When the app launches, tap ACTIVATE ADMIN

    appLayout

    appLayoutBCK

  2. In the pop-up prompt, tap Activate.

  3. Tap ACTIVATE LICENSE. Agree to the Samsung Knox EULA.

  4. Tap ACTIVATE BACKWARDS COMPATIBLE KEY if needed.

  5. Now tap on ENTER DEFAULT KIOSK MODE to set the device on Kiosk Mode.

  6. To exit from Kiosk Mode, tap the shortcut on the home screen and tap LEAVE DEFAULT KIOSK MODE.

  7. To enter into custom Kiosk Mode, tap ENTER CUSTOM KIOSK MODE. Now check the settings with you want to apply in Kiosk Mode.

    customSettingsMenu

  8. To exit from custom Kiosk Mode press the shortcut on home screen and tap LEAVE CUSTOM KIOSK MODE.

    kioskMode

    exitCustomSettings

Uninstall the app

To uninstall an app with device administrator status, you must first deactivate its device admin privileges.

To deactivate device administrator for the app, tap DEACTIVATE ADMIN. The app can now be uninstalled normally.

Tutorial progress

Congratulations! You’ve completed the tutorial.

Is this page helpful?