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 kioskPackage = "uk.nktnet.webviewkiosk"
val dpm = context.getSystemService(Context.DEVICE_POLICY_SERVICE) as DevicePolicyManager
val adminName = getComponentName(context)
dpm.setLockTaskPackages(adminName, arrayOf(kioskPackage))

Docs:

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nktnet1
Comment options

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