Similar to the question here, I am trying to set the device owner using adb on a Samsung XCover4
Not allowed to set the device owner
Although there are no accounts on the device after a factory reset, the call to
adb shell dpm set-device-owner
Still fails with the Not allowed to set the device owner because there are already some accounts on the device
error.
This works fine on other 'pure android' devices I have tried, so I'm guessing that the Samsung sets the owner during setup in some way.
Is there a way to avoid this?