Add device admin capability for real kiosk mode #33
-
|
Enable device admin function to fix app on screen without a way for users to exit it |
Beta Was this translation helpful? Give feedback.
Answered by
nktnet1
Oct 14, 2025
Replies: 1 comment
-
|
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.webmIf 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: UPDATE - Dhizuku supportAs of v0.24.35+, support for Dhizuku has been added. For context, Dhizuku is
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nktnet1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Docs: