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

GitHub | pliska87 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 2#246684010

    GitHub | 6 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