enterprise-samples icon indicating copy to clipboard operation
enterprise-samples copied to clipboard

provision without nfc

Open codingjeremy opened this issue 6 years ago • 1 comments

Issue by vikas0 Tuesday Oct 10, 2017 at 11:44 GMT Originally opened as https://github.com/googlesamples/android-DeviceOwner/issues/4


the device i want to install device owner does not have nfc. i have tested with adb shell set device owner for test purpose, but how do i do it to set up unprovisioned device?

codingjeremy avatar Sep 10 '19 20:09 codingjeremy

Comment by adatoo Monday Oct 16, 2017 at 20:45 GMT


Not sure if this answers your query. The command to enable device owner is:

adb shell dpm set-device-owner com.example.android.deviceowner/.DeviceOwnerReceiver

You need to ideally do this on a device that has just been factory reset.

codingjeremy avatar Sep 10 '19 20:09 codingjeremy

I added a section on how to test Device Owner application on a device using adb, please reopen this if you still have problems.

pfmaggi avatar Nov 02 '22 11:11 pfmaggi