简体   繁体   English

在同一设备上使用NFC激活设备所有者

[英]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!). 我正在尝试使用@Randy在GitHub中提供的示例应用程序激活应用程序的设备所有者(谢谢,Randy!)。 I can get the DeviceOwnerCheck sample app to become the device owner using the adb shell dam commands described by Florent here . 我可以使用Florent 在这里描述的adb shell dam命令将DeviceOwnerCheck示例应用程序变为设备所有者。 However, since this is only good for development and cannot be used in production, I needed to use NFC. 但是,由于这只对开发有利,不能用于生产,我需要使用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? 我试图使用其他示例应用程序(NFCProvisioner)进行NFC配置,但看起来我需要2台设备才能完成此任务? 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? 有没有办法可以使用NFC(或其他东西)在同一设备上配置应用程序作为设备所有者?

Since Android 5.0 there are several methods of provisioning the Device Owner application. 从Android 5.0开始,有几种方法可以配置设备所有者应用程序。

+---------------------+-------------------+---------------------+-----+----------+
| 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 如果您使用的是Android 6.0版,则可以使用激活码方法 ,但Android版本不再支持此功能

Newly in Android 6.0 you can provision the device using Google Account authentication via server using the Google Play EMM API . Android 6.0中,您可以使用Google Play EMM API通过服务器使用Google帐户身份验证来配置设备。 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. 但这是更加以企业为中心的方法,因为您必须首先注册EMM社区才能访问API并使用所需的服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM