question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v32: Not allowed to set the device owner

See original GitHub issue

After manually sideloading update v28, the command adb shell dpm set-device-owner com.bos.oculess/.DevAdminReceiver returns the following error log. No multi accounts being used, it worked fine in v27.

Error: Command failed: “C:\Users\gulop\AppData\Roaming\SideQuest\platform-tools\adb.exe” -s ********* shell dpm set-device-owner com.bos.oculess/.DevAdminReceiver java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device at android.os.Parcel.createException(Parcel.java:2079) at android.os.Parcel.readException(Parcel.java:2039) at android.os.Parcel.readException(Parcel.java:1987) at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:8392) at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:203) at com.android.commands.dpm.Dpm.onRun(Dpm.java:115) at com.android.internal.os.BaseCommand.run(BaseCommand.java:65) at com.android.internal.os.BaseCommand.run(BaseCommand.java:49) at com.android.commands.dpm.Dpm.main(Dpm.java:41) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:338) Caused by: android.os.RemoteException: Remote stack trace: at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:8652) at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:7821) at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:3270) at android.os.Binder.execTransactInternal(Binder.java:1021) at android.os.Binder.execTransact(Binder.java:994)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
basti564commented, Oct 3, 2021

Fixed in release v1.2 just use the REMOVE ACCOUNTS function first and remove all accounts before entering the command 😃

0reactions
Althexiacommented, Mar 2, 2022

I’m getting the same issue on v37.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not allowed to set the device owner because there are ...
After that connect your phone to the computer and run the command adb shell dpm set-device-owner sdg.example.kiosk_mode/.AdminReceiver .
Read more >
Device Owner already set - XDA Forums
IllegalStateException : Not allowed to set the device owner because there are already some accounts on the device at android.os.Parcel.
Read more >
Oculess ADB Command not working to disable telementry
IllegalStateException : Not allowed to set the device owner because there are already some accounts on the device at android.os.Parcel.
Read more >
Download Intel Drivers and Software
Download new and previously released drivers including support software, bios, utilities, firmware and patches for Intel products.
Read more >
About "kiosk":Not allowed to set the device owner - B4X
I want to test this example in my phone:https://www.b4x.com/android/forum/threads/device-owner-tasklock-kiosk-apps-2017.81765/#content But ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found