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

后端 未结 2 461
陌清茗
陌清茗 2021-01-22 15:24

\'m trying to set up Device Owner using the sample apps downloadable from developer.android.com

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

2条回答
  •  感情败类
    2021-01-22 15:46

    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

提交回复
热议问题