【问题标题】:How do you un-provision a device in order to set the Device Owner?您如何取消配置设备以设置设备所有者?
【发布时间】:2015-07-27 15:25:47
【问题描述】:

正在尝试使用可从 developer.android.com 下载的示例应用设置设备所有者

https://developer.android.com/samples/NfcProvisioning/index.html https://developer.android.com/samples/DeviceOwner/index.html

但是当我通过 NFC 轻按设备的 logcat 中的设备时,我正在尝试设置设备所有者,我看到了这个:

/? E/ManagedProvisioning﹕ Device already provisioned.

但是,我在尝试配置之前进行了出厂重置,那么如何使设备进入未配置状态?

【问题讨论】:

  • 恢复出厂设置应该是可行的方法。恢复出厂设置后,它会以某种方式开始设置您的设备的设置过程?

标签: android-5.0-lollipop device-admin device-policy-manager google-provisioning-api device-owner


【解决方案1】:

我看到不同的模型有不同的行为。

通常从设备中删除所有帐户就足够了,但当您真正需要将其恢复出厂设置时,这种情况并不少见。

在任何一种情况下,都不要在上面设置任何帐户。恢复出厂设置后,尽可能在设备上启用 USB 调试,安装您想要启用 DeviceOwner 的应用程序 - 而不是通过 Play 商店,因为您需要设置一个帐户。

adb shell dpm set-device-owner app.package/.DeviceAdminReceiver

【讨论】:

    【解决方案2】:

    您可以在 Google 帐户设置、三点菜单中使用 nfc 或激活码设置设备所有者。

    无论哪种方式,都不能在开始 DO 设置之前完成设置向导。在设置向导中执行 NFC 光束。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-16
      • 2019-07-17
      • 2016-04-03
      相关资源
      最近更新 更多