_java.lang.IllegalStateException: Trying to set device owner but device is already provisioned.

GitHub | pliska87 | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 2#246684010

    GitHub | 7 months ago | pliska87
    _java.lang.IllegalStateException: Trying to set device owner but device is already provisioned.

    Root Cause Analysis

    1. _java.lang.IllegalStateException

      Trying to set device owner but device is already provisioned.

      at android.os.Parcel.readException()
    2. Android Platform
      IDevicePolicyManager$Stub$Proxy.setDeviceOwner
      1. android.os.Parcel.readException(Parcel.java:1554)
      2. android.os.Parcel.readException(Parcel.java:1499)
      3. android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:3212)
      3 frames
    3. com.android.commands
      Dpm.onRun
      1. com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:114)
      2. com.android.commands.dpm.Dpm.onRun(Dpm.java:82)
      2 frames
    4. Android
      BaseCommand.run
      1. com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
      1 frame
    5. com.android.commands
      Dpm.main
      1. com.android.commands.dpm.Dpm.main(Dpm.java:38)
      1 frame
    6. Android
      RuntimeInit.nativeFinishInit
      1. com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
      1 frame