【发布时间】:2018-04-16 01:38:42
【问题描述】:
我知道有人提出了问题,但我无法获得设备所有权。
我使用的是带有 android 7.0 的三星 xcover 4。
我启动这个命令:
C:\Users\xxx\AppData\Local\Android\Sdk\platform-tools>adb shell dpm set-device-owner org.wso2.iot.system.service/.ServiceDeviceAdminReceiver
我收到此错误:
java.lang.IllegalStateException: Not allowed to set the device owner because the
re are already some accounts on the device
at android.os.Parcel.readException(Parcel.java:1701)
at android.os.Parcel.readException(Parcel.java:1646)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDev
icePolicyManager.java:6067)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:148)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:96)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
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:316)
恢复出厂设置。 我还禁用并卸载了所有应用程序,但仍然没有运气。有什么解决办法吗? 谢谢。
【问题讨论】:
-
我在 XCover4 上遇到了同样的问题,我猜三星设置在初始设置期间在手机上创建了某种帐户,而这些帐户在帐户中是不可见的。你找到解决办法了吗?
-
有类似的问题。最后,我找到了解决方法。您可以使用 QR 码来配置设备。 developer.google.com/android/work/prov-devices#qr_code_method