Skip to Content
WLWebview Kiosk

MDM/EMM/DPC

Allowlist the kiosk using an existing management app.

1. MDM/EMM

If your organisation already manages the device using an MDM (Mobile Device Management) or EMM (Enterprise Mobility Management) platform, ask your IT administrator to add Webview Kiosk to the allowlist for Lock Task Packages.

The package name to allowlist is visible in Settings → About. Typically, it is:

uk.nktnet.webviewkiosk

Below are documentation links for configuring Android lock task mode and kiosk applications with common MDM/EMM providers.

2. DPC - Standalone Apps

Below are two popular local DPC applications that can add Webview Kiosk to the allowlist for Lock Task Packages:

  1. Test DPC (maintained by Google/Android)

    • Go to Lock Task -> Manage lock task list
  2. OwnDroid (maintained by BinTianqi)

    • Go to System -> Lock Task Mode -> Applications

3. DPC - Custom Apps

If you are writing your own DPC, the kotlin code to achieve this would be:

val APP_PACKAGES = arrayOf(
  // Choose one depending on your installation method:
  "uk.nktnet.webviewkiosk",       // GitHub, F-Droid, IzzyOnDroid, etc
  "com.nktnet.webview_kiosk",     // Aurora Store, Google Play Store
  "uk.nktnet.webviewkiosk.debug", // Debug APK
)

val dpm = context.getSystemService(Context.DEVICE_POLICY_SERVICE) as DevicePolicyManager
val adminName = getComponentName(context)
// Android 8+ (API 26+): preserve packages already allowed by the DPC.
val packages = (dpm.getLockTaskPackages(adminName).toList() + APP_PACKAGES).distinct()
dpm.setLockTaskPackages(adminName, packages.toTypedArray())

For more information, see Android's official documentation.

Last updated on

On this page