RRG
RRG

Reputation: 115

Activating Device Owner using NFC on the same device

I'm trying to activate device owner for an app using the sample apps @Randy has provided in GitHub (thank, Randy!). I can get the DeviceOwnerCheck sample app to become the device owner using the adb shell dam commands described by Florent here. However, since this is only good for development and cannot be used in production, I needed to use NFC. I was trying to use the other sample app (NFCProvisioner) to do NFC provisioning but it looks like I need 2 devices to accomplish this? Is there a way I can use NFC (or something else) to be able to provision an app as device owner on the same device?

Upvotes: 3

Views: 1051

Answers (1)

Martin Rončka
Martin Rončka

Reputation: 323

Since Android 5.0 there are several methods of provisioning the Device Owner application.

+---------------------+-------------------+---------------------+-----+----------+
| Deployment scenario | Mode of operation | Provisioning method | 6.0 | 5.0, 5.1 |
+---------------------+-------------------+---------------------+-----+----------+
| Corp-liable         | Device owner      | Google Account      | YES |          |
|                     |                   | NFC                 | YES | YES      |
|                     |                   | Activation code     |     | YES      |
+---------------------+-------------------+---------------------+-----+----------+

If you're using Android pre 6.0, you could use the Activation code method, but this is no longer supported in the the Android Version

Newly in Android 6.0 you can provision the device using Google Account authentication via server using the Google Play EMM API. But this is more corporate focused approach, since you would have to first register for the EMM Community in order to gain access to the API and use the required services.

Upvotes: 1

Related Questions