iamr0s / Dhizuku

A Android Application for share DeviceOwner
GNU General Public License v3.0
989 stars 42 forks source link

Exception occurred while executing 'set-device-owner' #34

Open kaorlol opened 8 months ago

kaorlol commented 8 months ago

Exception occurred while executing 'set-device-owner': java.lang.IllegalStateException: Trying to set the device owner (com.rosan.dhizuku/.server.DhizukuDAReceiver), but the user already has a profile owner (com.google.android.gms/.kids.account.receiver.ProfileOwnerReceiver). at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:10687) at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:9364) at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.runSetDeviceOwner(DevicePolicyManagerServiceShellCommand.java:264) at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.onCommand(DevicePolicyManagerServiceShellCommand.java:87) at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97) at android.os.ShellCommand.exec(ShellCommand.java:38) at com.android.server.devicepolicy.DevicePolicyManagerService.onShellCommand(DevicePolicyManagerService.java:11119) at android.os.Binder.shellCommand(Binder.java:1094) at android.os.Binder.onTransact(Binder.java:911) at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:6328) at android.os.Binder.execTransactInternal(Binder.java:1362) at android.os.Binder.execTransact(Binder.java:1301)

How can I fix this?