简体   繁体   English

不允许设置设备所有者

[英]Not allowed to set the device owner

I know question has been asked but i can't get device ownership. 我知道问题已被问到,但我无法获得设备所有权。

I'm with a samsung xcover 4 with android 7.0. 我用的是带有android 7.0的三星xcover 4。

I launch this command : 我启动此命令:

C:\Users\xxx\AppData\Local\Android\Sdk\platform-tools>adb shell dpm set-device-owner org.wso2.iot.system.service/.ServiceDeviceAdminReceiver

I get this error : 我收到此错误:

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)

factory reset done. 工厂重置完成。 I also disable and uninstall all applications but still no luck. 我也禁用和卸载所有应用程序,但仍然没有运气。 Any solution? 有解决方案吗 Thanks. 谢谢。

As the error states 正如错误所述

because there are already some accounts on the device 因为设备上已有一些帐户

Go to Settings -> Accounts and remove all accounts (like Gmail, Facebook, ...). 转到设置 - >帐户并删除所有帐户(如Gmail,Facebook,...)。 When there are no more accounts, try again. 如果没有其他帐户,请重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM