Provisioning completes at 100% but device shows "Waiting for device admin or owner rights": remove pre-installed ODM account to resolve
Android
If your device provisioning completes at 100% but displays the error "Waiting for device admin or owner rights," a pre-installed vendor account on the device is likely blocking Esper from claiming Device Owner rights. This guide walks you through identifying and removing these accounts so your device can fully enroll.
Before you begin
You'll need:
- A computer with ADB (Android Debug Bridge) installed and configured
- A USB cable to connect your device to the computer
- USB debugging enabled on your device
How to identify pre-installed accounts
- Connect your device to your computer via USB.
- Open a terminal or command prompt and run:
adb shell dumpsys account - Review the output and look for the
Accounts:section under the Owner user (labeled asUserInfo{0:Owner:...}). - If you see any accounts listed (for example,
{name=MyGalaxy, type=com.mygalaxy.account.manager.demo}), these must be removed before provisioning can succeed.
How to remove pre-installed accounts
For most devices
- On your device, open Settings → Accounts.
- Select each account and tap Remove or Delete.
- If an account does not appear in the UI but showed up in your ADB output, contact your device manufacturer for an account removal procedure.
- After removing all accounts, perform a factory reset:
- Open Settings → System → Reset options → Erase all data (factory reset) (path may vary by manufacturer)
- After the factory reset completes, verify account removal by running:
adb shell dumpsys account - Confirm that
Accounts: 0is shown for the Owner user.
For Xiaomi or Redmi devices
Before removing accounts or re-provisioning, enable the required developer options:
- Open Settings → About Phone and tap MIUI version repeatedly until you see a "You are now a developer" pop-up.
- Open Settings → Additional Settings → Developer Options and enable USB debugging. Confirm the prompt on your device.
- In Settings → Additional Settings → Developer Options, enable Install via USB (this requires a SIM card to be inserted and you to be signed in to your MI account).
- Then proceed with the account removal steps above.
How to re-provision your device
- Verify that your
adb shell dumpsys accountoutput showsAccounts: 0for the Owner user. - Run the Esper provisioner again.
- After provisioning completes, check the Esper Console to confirm the device shows as Active.
Still need help?
If your device continues to display the "Waiting for device admin or owner rights" error after removing all accounts, or if pre-installed accounts cannot be removed through the Settings UI or ADB, contact Esper Support. include:
- The full output of
adb shell dumpsys account - Your device make and model
- Your Android version
- Your Esper Esper Agent version
0
Please sign in to leave a comment.
Comments
0 comments