How do you un-provision a device in order to set the Device Owner?

末鹿安然 提交于 2019-12-02 02:02:15

I've seen different behaviours depending on models.

Usually removing all accounts from a device is enough, but it is not rare when you actually need to factory reset it.

In either case, don't setup any accounts on it. After factory reset, do the least you can on the device to enable USB debugging, install the app you want to enable DeviceOwner for - not through Play Store as you will need to setup an account.

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

You can set up a Device Owner using nfc or an activation code in Google account setup, three dot menu.

Either way, the setup wizard must not be completed before starting the DO setup. Perform the NFC beam while in setup wizard.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!