Skip to content
Discussion options

You must be logged in to vote

Device Owner support is available as of v0.23.0.

Below is a quick demo, using Shizuku and Termux to set device owner:

app-device-owner-demo.webm

If you have a different DPC that you control, you could also use allowlist Webview Kiosk:

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
)

val dpm = context.getSystemService(Context.DEVICE_POLICY_SERVICE) as DevicePolicyManager
val adminName = getComponentName(context)
dpm.setLockTaskPackages(adminName, APP_PACKAGES)

Docs:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nktnet1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
2 participants