ADB
Assign Device Owner or full-user Profile Owner using a computer.
Requirements
This activation method requires your device to not have multiple users or any accounts registered.
For Android 12+, you can avoid removing users/accounts and freezing apps by following this XDA guide. Alternatively, consider the automated Shizuku Activation Method (recommended).
1. Prepare the device
Install Webview Kiosk from your chosen download source.
Install Android Platform Tools on your computer and enable USB debugging on the device.
Connect by USB, allow the debugging prompt, and run adb devices to confirm
the connection.
Identify the full user you want to manage. Its ID is typically 0 on most
devices. The Profile Owner examples below use --user 0. Replace 0 with
the intended full user's ID if it is different. Device Owner enrollment must
follow your device's supported user and provisioning requirements.
adb shell pm list users2. Choose the role and installed app
Run one of the two owner commands in the tab matching your installation. Choose Profile Owner (Full User) if you also want to use a work profile. Choose Device Owner for a dedicated kiosk.
Device Owner:
adb shell dpm set-device-owner --user 0 uk.nktnet.webviewkiosk/.WebviewKioskAdminReceiverProfile Owner:
adb shell dpm set-profile-owner --user 0 uk.nktnet.webviewkiosk/.WebviewKioskAdminReceiver3. Check activation
Open Settings → Device → Device Policies. Confirm the expected owner role, full-user scope, and available policies.
4. Troubleshooting
If you encounter activation issues regarding existing accounts, proceed with the following steps:
Remove all additional users on your device. You can view existing users using the command:
adb shell dumpsys user | grep 'UserInfo{.*}'The goal is to only have a single full user:
UserInfo{0:null:4c13} serialNo=0 isPrimary=trueFind all accounts on your device, e.g. in your device settings or using an application like AndroidAccounts. To also detect accounts in disabled applications, it's recommended that you run the command:
adb shell dumpsys account listOur goal is to have the following in the output:
User UserInfo{0:User:4c13}:
Accounts: 0
...
Active Sessions: 0Remove the listed accounts using your device settings. If an account belongs to a disabled app, temporarily re-enable that app so you can remove its account.
If apps keep re-creating accounts, temporarily disable those apps (for
example, using Hail).
Do not disable essential system apps. Run adb shell dumpsys account list
again and confirm it reports no accounts. Re-enable any apps you disabled
after activation.
Attempt to set Webview Kiosk as the device owner or profile owner again.
It is also worth taking a look at the Dhizuku activation guide, which includes other helpful debugging steps when setting up a device owner application.
Last updated on